From ed242cdd3b4ca22c531e9fad6c9144ba50b925b1 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Thu, 9 Nov 2017 05:47:15 -0800 Subject: [PATCH] lib: Include OstreeRemote and OstreeCollectionRef in GIR Now that g-ir-scanner is being told about ENABLE_EXPERIMENTAL_API, it can include these types correctly. Drop the __GI_SCANNER__ guards in the header files so that all the declarations are found. After this, you can actually construct the types normally: >>> OSTree.CollectionRef.new('com.example.Foo', 'bar') Closes: #1337 Approved by: pwithnall --- src/libostree/ostree-ref.h | 2 -- src/libostree/ostree-remote.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/libostree/ostree-ref.h b/src/libostree/ostree-ref.h index 3cf63ed4..e91fe854 100644 --- a/src/libostree/ostree-ref.h +++ b/src/libostree/ostree-ref.h @@ -48,7 +48,6 @@ typedef struct gchar *ref_name; /* (not nullable) */ } OstreeCollectionRef; -#ifndef __GI_SCANNER__ _OSTREE_PUBLIC GType ostree_collection_ref_get_type (void); @@ -59,7 +58,6 @@ _OSTREE_PUBLIC OstreeCollectionRef *ostree_collection_ref_dup (const OstreeCollectionRef *ref); _OSTREE_PUBLIC void ostree_collection_ref_free (OstreeCollectionRef *ref); -#endif _OSTREE_PUBLIC guint ostree_collection_ref_hash (gconstpointer ref); diff --git a/src/libostree/ostree-remote.h b/src/libostree/ostree-remote.h index 23ee21bc..322fb96e 100644 --- a/src/libostree/ostree-remote.h +++ b/src/libostree/ostree-remote.h @@ -47,14 +47,12 @@ G_BEGIN_DECLS typedef struct OstreeRemote OstreeRemote; #endif -#ifndef __GI_SCANNER__ _OSTREE_PUBLIC GType ostree_remote_get_type (void) G_GNUC_CONST; _OSTREE_PUBLIC OstreeRemote *ostree_remote_ref (OstreeRemote *remote); _OSTREE_PUBLIC void ostree_remote_unref (OstreeRemote *remote); -#endif /* GI_SCANNER */ _OSTREE_PUBLIC const gchar *ostree_remote_get_name (OstreeRemote *remote);