diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/status-provider-pidgin.c | 6 | ||||
-rw-r--r-- | src/status-provider-pidgin.h | 1 | ||||
-rw-r--r-- | src/status-service.c | 9 |
3 files changed, 16 insertions, 0 deletions
diff --git a/src/status-provider-pidgin.c b/src/status-provider-pidgin.c index a0a2ba1..ef2bc63 100644 --- a/src/status-provider-pidgin.c +++ b/src/status-provider-pidgin.c @@ -65,6 +65,12 @@ status_provider_pidgin_finalize (GObject *object) return; } +StatusProvider * +status_provider_pidgin_new (void) +{ + return STATUS_PROVIDER(g_object_new(STATUS_PROVIDER_PIDGIN_TYPE, NULL)); +} + static void set_status (StatusProvider * sp, StatusProviderStatus status) { diff --git a/src/status-provider-pidgin.h b/src/status-provider-pidgin.h index 5d4459c..85077e8 100644 --- a/src/status-provider-pidgin.h +++ b/src/status-provider-pidgin.h @@ -27,6 +27,7 @@ struct _StatusProviderPidgin { }; GType status_provider_pidgin_get_type (void); +StatusProvider * status_provider_pidgin_new (void); G_END_DECLS diff --git a/src/status-service.c b/src/status-service.c index e839b16..901f46b 100644 --- a/src/status-service.c +++ b/src/status-service.c @@ -10,6 +10,15 @@ #include "dbus-shared-names.h" #include "status-provider.h" +#include "status-provider-pidgin.h" + +typedef StatusProvider * (*newfunc) (void); +#define STATUS_PROVIDER_CNT 1 +newfunc status_provider_newfuncs[STATUS_PROVIDER_CNT] = { + status_provider_pidgin_new +}; + +StatusProvider * status_providers[STATUS_PROVIDER_CNT] = { 0 }; static const gchar * status_strings [STATUS_PROVIDER_STATUS_LAST] = { /* STATUS_PROVIDER_STATUS_ONLINE, */ N_("Available"), |