summaryrefslogtreecommitdiff
path: root/mate-session/gsm-store.h
diff options
context:
space:
mode:
Diffstat (limited to 'mate-session/gsm-store.h')
-rw-r--r--mate-session/gsm-store.h29
1 files changed, 6 insertions, 23 deletions
diff --git a/mate-session/gsm-store.h b/mate-session/gsm-store.h
index c7b1c85..5a7f408 100644
--- a/mate-session/gsm-store.h
+++ b/mate-session/gsm-store.h
@@ -24,26 +24,12 @@
#include <glib-object.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
+G_BEGIN_DECLS
#define GSM_TYPE_STORE (gsm_store_get_type ())
-#define GSM_STORE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GSM_TYPE_STORE, GsmStore))
-#define GSM_STORE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GSM_TYPE_STORE, GsmStoreClass))
-#define GSM_IS_STORE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSM_TYPE_STORE))
-#define GSM_IS_STORE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GSM_TYPE_STORE))
-#define GSM_STORE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GSM_TYPE_STORE, GsmStoreClass))
+G_DECLARE_DERIVABLE_TYPE (GsmStore, gsm_store, GSM, STORE, GObject)
-typedef struct GsmStorePrivate GsmStorePrivate;
-
-typedef struct
-{
- GObject parent;
- GsmStorePrivate *priv;
-} GsmStore;
-
-typedef struct
+struct _GsmStoreClass
{
GObjectClass parent_class;
@@ -51,7 +37,7 @@ typedef struct
const char *id);
void (* removed) (GsmStore *store,
const char *id);
-} GsmStoreClass;
+};
typedef enum
{
@@ -65,7 +51,7 @@ typedef gboolean (*GsmStoreFunc) (const char *id,
gpointer user_data);
GQuark gsm_store_error_quark (void);
-GType gsm_store_get_type (void);
+GType gsm_store_get_type (void) G_GNUC_CONST;
GsmStore * gsm_store_new (void);
@@ -93,9 +79,6 @@ GObject * gsm_store_find (GsmStore *store,
GObject * gsm_store_lookup (GsmStore *store,
const char *id);
-
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
#endif /* __GSM_STORE_H */