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:
parent
c38d832dfc
commit
05e86a6b42
|
|
@ -12310,15 +12310,40 @@ Pass the results to ostree_repo_pull_from_remotes_async() to pull the given
|
||||||
glib:type-name="OstreeRepoFinderAvahi"
|
glib:type-name="OstreeRepoFinderAvahi"
|
||||||
glib:get-type="ostree_repo_finder_avahi_get_type"
|
glib:get-type="ostree_repo_finder_avahi_get_type"
|
||||||
glib:type-struct="RepoFinderAvahiClass">
|
glib:type-struct="RepoFinderAvahiClass">
|
||||||
<source-position filename="ostree-repo-finder-avahi.h" line="47"/>
|
<source-position filename="ostree/src/libostree/ostree-repo-finder-avahi.h"
|
||||||
|
line="47"/>
|
||||||
<implements name="RepoFinder"/>
|
<implements name="RepoFinder"/>
|
||||||
<constructor name="new" c:identifier="ostree_repo_finder_avahi_new">
|
<constructor name="new"
|
||||||
<source-position filename="ostree-repo-finder-avahi.h" line="54"/>
|
c:identifier="ostree_repo_finder_avahi_new"
|
||||||
|
version="2018.6">
|
||||||
|
<doc xml:space="preserve"
|
||||||
|
filename="ostree/src/libostree/ostree-repo-finder-avahi.c"
|
||||||
|
line="1360">Create a new #OstreeRepoFinderAvahi instance. It is intended that one such
|
||||||
|
instance be created per process, and it be used to answer all resolution
|
||||||
|
requests from #OstreeRepos.
|
||||||
|
|
||||||
|
The calling code is responsible for ensuring that @context is iterated while
|
||||||
|
the #OstreeRepoFinderAvahi is running (after ostree_repo_finder_avahi_start()
|
||||||
|
is called). This may be done from any thread.
|
||||||
|
|
||||||
|
If @context is %NULL, the current thread-default #GMainContext is used.</doc>
|
||||||
|
<source-position filename="ostree/src/libostree/ostree-repo-finder-avahi.h"
|
||||||
|
line="54"/>
|
||||||
<return-value transfer-ownership="full">
|
<return-value transfer-ownership="full">
|
||||||
|
<doc xml:space="preserve"
|
||||||
|
filename="ostree/src/libostree/ostree-repo-finder-avahi.c"
|
||||||
|
line="1375">a new #OstreeRepoFinderAvahi</doc>
|
||||||
<type name="RepoFinderAvahi" c:type="OstreeRepoFinderAvahi*"/>
|
<type name="RepoFinderAvahi" c:type="OstreeRepoFinderAvahi*"/>
|
||||||
</return-value>
|
</return-value>
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter name="context" transfer-ownership="none">
|
<parameter name="context"
|
||||||
|
transfer-ownership="none"
|
||||||
|
nullable="1"
|
||||||
|
allow-none="1">
|
||||||
|
<doc xml:space="preserve"
|
||||||
|
filename="ostree/src/libostree/ostree-repo-finder-avahi.c"
|
||||||
|
line="1362">a #GMainContext for processing Avahi
|
||||||
|
events in, or %NULL to use the current thread-default</doc>
|
||||||
<type name="GLib.MainContext" c:type="GMainContext*"/>
|
<type name="GLib.MainContext" c:type="GMainContext*"/>
|
||||||
</parameter>
|
</parameter>
|
||||||
</parameters>
|
</parameters>
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,11 @@ pub use self::repo_finder::{RepoFinder, NONE_REPO_FINDER};
|
||||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||||
pub use self::repo_finder::RepoFinderExt;
|
pub use self::repo_finder::RepoFinderExt;
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||||
mod repo_finder_avahi;
|
mod repo_finder_avahi;
|
||||||
|
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||||
pub use self::repo_finder_avahi::{RepoFinderAvahi, RepoFinderAvahiClass, NONE_REPO_FINDER_AVAHI};
|
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;
|
pub use self::repo_finder_avahi::RepoFinderAvahiExt;
|
||||||
|
|
||||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||||
|
|
@ -160,6 +163,7 @@ pub mod traits {
|
||||||
pub use super::RepoFileExt;
|
pub use super::RepoFileExt;
|
||||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||||
pub use super::RepoFinderExt;
|
pub use super::RepoFinderExt;
|
||||||
|
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||||
pub use super::RepoFinderAvahiExt;
|
pub use super::RepoFinderAvahiExt;
|
||||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||||
pub use super::RepoFinderMountExt;
|
pub use super::RepoFinderMountExt;
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files)
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||||
use glib;
|
use glib;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
@ -20,7 +21,8 @@ glib_wrapper! {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl RepoFinderAvahi {
|
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 {
|
unsafe {
|
||||||
from_glib_full(ostree_sys::ostree_repo_finder_avahi_new(context.to_glib_none().0))
|
from_glib_full(ostree_sys::ostree_repo_finder_avahi_new(context.to_glib_none().0))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 60cbef05)
|
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+)
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 60cbef05)
|
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+)
|
||||||
|
|
|
||||||
|
|
@ -1377,6 +1377,7 @@ extern "C" {
|
||||||
// OstreeRepoFinderAvahi
|
// OstreeRepoFinderAvahi
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
pub fn ostree_repo_finder_avahi_get_type() -> GType;
|
pub fn ostree_repo_finder_avahi_get_type() -> GType;
|
||||||
|
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||||
pub fn ostree_repo_finder_avahi_new(context: *mut glib::GMainContext) -> *mut OstreeRepoFinderAvahi;
|
pub fn ostree_repo_finder_avahi_new(context: *mut glib::GMainContext) -> *mut OstreeRepoFinderAvahi;
|
||||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||||
pub fn ostree_repo_finder_avahi_start(self_: *mut OstreeRepoFinderAvahi, error: *mut *mut glib::GError);
|
pub fn ostree_repo_finder_avahi_start(self_: *mut OstreeRepoFinderAvahi, error: *mut *mut glib::GError);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue