[gjs] libgjs-private: Export _get_type()'s for introspection



commit 980b9cb1e3c6678d948f57b49b7518b0a3652d3c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Feb 1 14:07:22 2017 +0800

    libgjs-private: Export _get_type()'s for introspection
    
    The building of GjsPrivate-1.0.gir requires gjs_locale_category_get_type()
    and gjs_dbus_implementation_get_type() be exported, so decorate them as
    well for export, and include gjs/macros.h.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=775868

 libgjs-private/gjs-gdbus-wrapper.h |    3 +++
 libgjs-private/gjs-util.h          |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libgjs-private/gjs-gdbus-wrapper.h b/libgjs-private/gjs-gdbus-wrapper.h
index 949ab0e..3430e52 100644
--- a/libgjs-private/gjs-gdbus-wrapper.h
+++ b/libgjs-private/gjs-gdbus-wrapper.h
@@ -27,6 +27,8 @@
 #include <glib-object.h>
 #include <gio/gio.h>
 
+#include <gjs/macros.h>
+
 G_BEGIN_DECLS
 
 typedef struct _GjsDBusImplementation        GjsDBusImplementation;
@@ -50,6 +52,7 @@ struct _GjsDBusImplementationClass {
     GDBusInterfaceSkeletonClass parent_class;
 };
 
+GJS_EXPORT
 GType                  gjs_dbus_implementation_get_type (void);
 
 void                   gjs_dbus_implementation_emit_property_changed (GjsDBusImplementation *self, gchar 
*property, GVariant *newvalue);
diff --git a/libgjs-private/gjs-util.h b/libgjs-private/gjs-util.h
index 9b82efa..ef9ed5e 100644
--- a/libgjs-private/gjs-util.h
+++ b/libgjs-private/gjs-util.h
@@ -27,6 +27,8 @@
 #include <glib.h>
 #include <glib-object.h>
 
+#include <gjs/macros.h>
+
 G_BEGIN_DECLS
 
 /* For imports.format */
@@ -49,6 +51,7 @@ const char *gjs_setlocale                (GjsLocaleCategory category,
 void        gjs_textdomain               (const char *domain);
 void        gjs_bindtextdomain           (const char *domain,
                                           const char *location);
+GJS_EXPORT
 GType       gjs_locale_category_get_type (void) G_GNUC_CONST;
 
 /* For imports.overrides.GObject */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]