[gjs/export.gjsprivate] NMake/libgjs-private: Export all the public symbols there
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/export.gjsprivate] NMake/libgjs-private: Export all the public symbols there
- Date: Tue, 5 Mar 2019 04:39:58 +0000 (UTC)
commit 2089d72410dd0210820c245e7c723108bf5aea2b
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Mar 5 12:34:56 2019 +0800
NMake/libgjs-private: Export all the public symbols there
It seems that since GjsPrivate-1.0.[gir|typelib] refers to APIs from
there, we ought to export those as well for the Visual Studio builds via
GJS_EXPORT, so that they can be loaded by the girepository DLL.
It turns out that this portion of the code used to be a DLL/.so of its own,
so it also makes sense to export these so that they are available from
gjs.lib as well.
libgjs-private/gjs-gdbus-wrapper.h | 2 ++
libgjs-private/gjs-gtk-util.h | 3 +++
libgjs-private/gjs-util.h | 8 ++++++++
3 files changed, 13 insertions(+)
---
diff --git a/libgjs-private/gjs-gdbus-wrapper.h b/libgjs-private/gjs-gdbus-wrapper.h
index 3430e529..33c59dc1 100644
--- a/libgjs-private/gjs-gdbus-wrapper.h
+++ b/libgjs-private/gjs-gdbus-wrapper.h
@@ -55,7 +55,9 @@ struct _GjsDBusImplementationClass {
GJS_EXPORT
GType gjs_dbus_implementation_get_type (void);
+GJS_EXPORT
void gjs_dbus_implementation_emit_property_changed (GjsDBusImplementation *self, gchar
*property, GVariant *newvalue);
+GJS_EXPORT
void gjs_dbus_implementation_emit_signal (GjsDBusImplementation *self, gchar
*signal_name, GVariant *parameters);
G_END_DECLS
diff --git a/libgjs-private/gjs-gtk-util.h b/libgjs-private/gjs-gtk-util.h
index 7ea2a158..a47c5172 100644
--- a/libgjs-private/gjs-gtk-util.h
+++ b/libgjs-private/gjs-gtk-util.h
@@ -29,8 +29,11 @@
#include <gtk/gtk.h>
+#include <gjs/macros.h>
+
G_BEGIN_DECLS
+GJS_EXPORT
void gjs_gtk_container_child_set_property (GtkContainer *container,
GtkWidget *child,
const gchar *property,
diff --git a/libgjs-private/gjs-util.h b/libgjs-private/gjs-util.h
index 0a337987..4d8bd990 100644
--- a/libgjs-private/gjs-util.h
+++ b/libgjs-private/gjs-util.h
@@ -32,6 +32,7 @@
G_BEGIN_DECLS
/* For imports.format */
+GJS_EXPORT
char * gjs_format_int_alternative_output (int n);
/* For imports.gettext */
@@ -46,20 +47,27 @@ typedef enum
GJS_LOCALE_CATEGORY_TIME = LC_TIME
} GjsLocaleCategory;
+GJS_EXPORT
const char *gjs_setlocale (GjsLocaleCategory category,
const char *locale);
+GJS_EXPORT
void gjs_textdomain (const char *domain);
+GJS_EXPORT
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 */
+GJS_EXPORT
GParamFlags gjs_param_spec_get_flags (GParamSpec *pspec);
+GJS_EXPORT
GType gjs_param_spec_get_value_type (GParamSpec *pspec);
+GJS_EXPORT
GType gjs_param_spec_get_owner_type (GParamSpec *pspec);
/* For tests */
+GJS_EXPORT
int gjs_open_bytes(GBytes* bytes, GError** error);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]