diff options
Diffstat (limited to 'libindicate/indicator.c')
-rw-r--r-- | libindicate/indicator.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/libindicate/indicator.c b/libindicate/indicator.c index f98c368..e2455a2 100644 --- a/libindicate/indicator.c +++ b/libindicate/indicator.c @@ -3,5 +3,54 @@ #include "indicator.h" #include "indicate.h" +/* Signals */ +enum { + USER_DISPLAY, + LAST_SIGNAL +}; +guint signals[LAST_SIGNAL] = { 0 }; + +G_DEFINE_TYPE (IndicateIndicator, indicate_indicator, G_TYPE_OBJECT); + +static void indicate_indicator_finalize (GObject * object); + + +/* Functions */ +static void +indicate_indicator_class_init (IndicateIndicatorClass * class) +{ + GObjectClass * gobj; + gobj = G_OBJECT_CLASS(class); + + gobj->finalize = indicate_indicator_finalize; + + signals[USER_DISPLAY] = g_signal_new(INDICATE_INDICATOR_SIGNAL_DISPLAY, + G_TYPE_FROM_CLASS(class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(IndicateIndicatorClass, user_display), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, 0); + + return; +} + +static void +indicate_indicator_init (IndicateIndicator * indicator) +{ + id = 0; + + /* TODO: Need to connect to a server here */ + + return; +} + +static void +indicate_indicator_finalize (GObject * obj) +{ + /* TODO: Need to disconnect from server here */ + + return; +} |