From 27a71bbaac3902093a9c1d1fecfadf670c3f2fb8 Mon Sep 17 00:00:00 2001 From: Robert Carr Date: Tue, 13 Jan 2009 06:43:38 -0500 Subject: Use G_BEGIN/END_DECLS, and put the GOBject *_get_type functions in the header file (needed by introspection, but also the normal GLib style). --- libindicate/indicator.h | 5 +++++ libindicate/server.h | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'libindicate') diff --git a/libindicate/indicator.h b/libindicate/indicator.h index 3c8efc8..2a15e3b 100644 --- a/libindicate/indicator.h +++ b/libindicate/indicator.h @@ -5,6 +5,8 @@ #include #include +G_BEGIN_DECLS + /* Boilerplate */ #define INDICATE_TYPE_INDICATOR (indicate_indicator_get_type ()) #define INDICATE_INDICATOR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), INDICATE_TYPE_INDICATOR, IndicateIndicator)) @@ -43,6 +45,8 @@ struct _IndicateIndicatorClass { const gchar * (*get_type) (IndicateIndicator * indicator); }; +GType indicate_indicator_get_type(void) G_GNUC_CONST; + IndicateIndicator * indicate_indicator_new (void); /* Should these just be GObject properties? */ @@ -61,6 +65,7 @@ guint indicate_indicator_get_id (IndicateIndicator * indicator); * subclass and exported through this pretty function */ const gchar * indicate_indicator_get_indicator_type (IndicateIndicator * indicator); +G_END_DECLS #endif /* INDICATE_INDICATOR_H_INCLUDED__ */ diff --git a/libindicate/server.h b/libindicate/server.h index 486252c..ef00846 100644 --- a/libindicate/server.h +++ b/libindicate/server.h @@ -5,6 +5,8 @@ #include #include +G_BEGIN_DECLS + /* Boilerplate */ #define INDICATE_TYPE_SERVER (indicate_server_get_type ()) #define INDICATE_SERVER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), INDICATE_TYPE_SERVER, IndicateServer)) @@ -48,6 +50,8 @@ struct _IndicateServerClass { gboolean (*show_indicator_to_user) (IndicateServer * server, guint id, GError ** error); }; +GType indicate_server_get_type (void) G_GNUC_CONST; + /* Create a new server */ IndicateServer * indicate_server_new (void); @@ -82,6 +86,7 @@ gboolean indicate_server_get_indicator_property_group (IndicateServer * server, gboolean indicate_server_get_indicator_properties (IndicateServer * server, guint id, gchar *** properties, GError **error); gboolean indicate_server_show_indicator_to_user (IndicateServer * server, guint id, GError ** error); +G_END_DECLS #endif /* INDICATE_INDICATOR_H_INCLUDED__ */ -- cgit v1.2.3