From f8ca55562f8b06ac5358cc54ffd1b272db7110de Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 9 Jan 2009 16:12:45 -0600 Subject: Fleshing out the server some in adding function and prototypes. --- libindicate/server.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libindicate/server.h') diff --git a/libindicate/server.h b/libindicate/server.h index 28529dd..19a92a4 100644 --- a/libindicate/server.h +++ b/libindicate/server.h @@ -5,6 +5,8 @@ #include #include +#include "indicator.h" + /* Boilerplate */ #define INDICATE_TYPE_SERVER (indicate_server_get_type ()) #define INDICATE_SERVER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), INDICATE_TYPE_SERVER, IndicateServer)) @@ -17,6 +19,8 @@ typedef struct _IndicateServer IndicateServer; struct _IndicateServer { GObject parent; + gchar * path; + GSList * indicators; }; typedef struct _IndicateServerClass IndicateServerClass; @@ -51,6 +55,9 @@ void indicate_server_set_desktop_file (const gchar * path); void indicate_server_show (IndicateServer * server); void indicate_server_hide (IndicateServer * server); +void indicator_server_add_indicator (IndicateServer * server, IndicateIndicator * indicator); +void indicator_server_remove_indicator (IndicateServer * server, IndicateIndicator * indicator); + /* DBus API */ gboolean indicate_server_get_desktop (IndicateServer * server, gchar ** desktop_path, GError **error); gboolean indicate_server_get_indicator_count (IndicateServer * server, guint * count, GError **error); -- cgit v1.2.3