gir: patch ostree_repo_finder_avahi_new

Should be fixed in the next upstream release

Ref: https://github.com/ostreedev/ostree/pull/2051
This commit is contained in:
Felix Krull authored and Colin Walters committed 2022-05-06 12:53:55 -04:00
1 parent c38d832dfc
commit 05e86a6b42
6 files changed
+39 -7

No files matched your search

+4
View File
@@ -33,8 +33,11 @@ pub use self::repo_finder::{RepoFinder, NONE_REPO_FINDER};
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use self::repo_finder::RepoFinderExt;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
mod repo_finder_avahi;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use self::repo_finder_avahi::{RepoFinderAvahi, RepoFinderAvahiClass, NONE_REPO_FINDER_AVAHI};
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use self::repo_finder_avahi::RepoFinderAvahiExt;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
@@ -160,6 +163,7 @@ pub mod traits {
pub use super::RepoFileExt;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use super::RepoFinderExt;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use super::RepoFinderAvahiExt;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use super::RepoFinderMountExt;
@@ -2,6 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
#[cfg(any(feature = "v2018_6", feature = "dox"))]
use glib;
use glib::object::IsA;
use glib::translate::*;
@@ -20,7 +21,8 @@ glib_wrapper! {
}
impl RepoFinderAvahi {
pub fn new(context: &glib::MainContext) -> RepoFinderAvahi {
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub fn new(context: Option<&glib::MainContext>) -> RepoFinderAvahi {
unsafe {
from_glib_full(ostree_sys::ostree_repo_finder_avahi_new(context.to_glib_none().0))
}
+1 -1
View File
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 60cbef05)
from gir-files (https://github.com/gtk-rs/gir-files @ e51adaf)
from gir-files (https://github.com/gtk-rs/gir-files @ 2495460+)