lib/remote: Box OstreeRemote if experimental-api
To avoid an introspection warning. Otherwise, don't box it. Closes: #858 Approved by: pwithnall
This commit is contained in:
parent
05d0ee5cbe
commit
a5eef45deb
|
|
@ -142,3 +142,9 @@ ostree_remote_unref (OstreeRemote *remote)
|
||||||
g_slice_free (OstreeRemote, remote);
|
g_slice_free (OstreeRemote, remote);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef OSTREE_ENABLE_EXPERIMENTAL_API
|
||||||
|
G_DEFINE_BOXED_TYPE(OstreeRemote, ostree_remote,
|
||||||
|
ostree_remote_ref,
|
||||||
|
ostree_remote_unref);
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,16 @@ G_BEGIN_DECLS
|
||||||
typedef struct OstreeRemote OstreeRemote;
|
typedef struct OstreeRemote OstreeRemote;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef OSTREE_ENABLE_EXPERIMENTAL_API
|
||||||
|
_OSTREE_PUBLIC
|
||||||
|
GType ostree_remote_get_type (void) G_GNUC_CONST;
|
||||||
|
#else
|
||||||
|
#ifndef __GI_SCANNER__
|
||||||
_OSTREE_PUBLIC
|
_OSTREE_PUBLIC
|
||||||
OstreeRemote *ostree_remote_ref (OstreeRemote *remote);
|
OstreeRemote *ostree_remote_ref (OstreeRemote *remote);
|
||||||
_OSTREE_PUBLIC
|
_OSTREE_PUBLIC
|
||||||
void ostree_remote_unref (OstreeRemote *remote);
|
void ostree_remote_unref (OstreeRemote *remote);
|
||||||
|
#endif /* GI_SCANNER */
|
||||||
|
#endif
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue