aboutsummaryrefslogtreecommitdiff
path: root/libindicate/server.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-12 10:45:34 -0600
committerTed Gould <ted@canonical.com>2009-01-12 10:45:34 -0600
commit245fdda86551e6e598cea84418f3bf0ae40d1fa1 (patch)
treeacfde6b393064be88c031e24f8c1686dd3240851 /libindicate/server.c
parentbea741f5b7ba5aaa28c353fd32c44032686719d5 (diff)
downloadlibayatana-indicator-245fdda86551e6e598cea84418f3bf0ae40d1fa1.tar.gz
libayatana-indicator-245fdda86551e6e598cea84418f3bf0ae40d1fa1.tar.bz2
libayatana-indicator-245fdda86551e6e598cea84418f3bf0ae40d1fa1.zip
Adding in the base functions with pointers and fun stuff like that
Diffstat (limited to 'libindicate/server.c')
-rw-r--r--libindicate/server.c91
1 files changed, 82 insertions, 9 deletions
diff --git a/libindicate/server.c b/libindicate/server.c
index 263df46..dd4513a 100644
--- a/libindicate/server.c
+++ b/libindicate/server.c
@@ -30,6 +30,15 @@ G_DEFINE_TYPE (IndicateServer, indicate_server, G_TYPE_OBJECT);
/* Prototypes */
static void indicate_server_finalize (GObject * obj);
+static gboolean get_desktop (IndicateServer * server, gchar ** desktop_path, GError **error);
+static gboolean get_indicator_count (IndicateServer * server, guint * count, GError **error);
+static gboolean get_indicator_count_by_type (IndicateServer * server, gchar * type, guint * count, GError **error);
+static gboolean get_indicator_list (IndicateServer * server, guint ** indicators, GError ** error);
+static gboolean get_indicator_list_by_type (IndicateServer * server, gchar * type, guint ** indicators, GError ** error);
+static gboolean get_indicator_property (IndicateServer * server, guint id, gchar * property, gchar ** value, GError **error);
+static gboolean get_indicator_property_group (IndicateServer * server, guint id, gchar ** properties, gchar *** value, GError **error);
+static gboolean get_indicator_properties (IndicateServer * server, guint id, gchar *** properties, GError **error);
+static gboolean show_indicator_to_user (IndicateServer * server, guint id, GError ** error);
/* Code */
static void
@@ -65,15 +74,15 @@ indicate_server_class_init (IndicateServerClass * class)
dbus_g_object_type_install_info(INDICATE_TYPE_SERVER,
&dbus_glib_indicate_server_object_info);
- class->get_desktop = NULL;
- class->get_indicator_count = NULL;
- class->get_indicator_count_by_type = NULL;
- class->get_indicator_list = NULL;
- class->get_indicator_list_by_type = NULL;
- class->get_indicator_property = NULL;
- class->get_indicator_property_group = NULL;
- class->get_indicator_properties = NULL;
- class->show_indicator_to_user = NULL;
+ class->get_desktop = get_desktop;
+ class->get_indicator_count = get_indicator_count;
+ class->get_indicator_count_by_type = get_indicator_count_by_type;
+ class->get_indicator_list = get_indicator_list;
+ class->get_indicator_list_by_type = get_indicator_list_by_type;
+ class->get_indicator_property = get_indicator_property;
+ class->get_indicator_property_group = get_indicator_property_group;
+ class->get_indicator_properties = get_indicator_properties;
+ class->show_indicator_to_user = show_indicator_to_user;
return;
}
@@ -172,6 +181,70 @@ indicate_server_set_default (IndicateServer * server)
return;
}
+static gboolean
+get_desktop (IndicateServer * server, gchar ** desktop_path, GError **error)
+{
+
+ return TRUE;
+}
+
+static gboolean
+get_indicator_count (IndicateServer * server, guint * count, GError **error)
+{
+
+ return TRUE;
+}
+
+static gboolean
+get_indicator_count_by_type (IndicateServer * server, gchar * type, guint * count, GError **error)
+{
+
+ return TRUE;
+}
+
+static gboolean
+get_indicator_list (IndicateServer * server, guint ** indicators, GError ** error)
+{
+
+ return TRUE;
+}
+
+static gboolean
+get_indicator_list_by_type (IndicateServer * server, gchar * type, guint ** indicators, GError ** error)
+{
+
+ return TRUE;
+}
+
+static gboolean
+get_indicator_property (IndicateServer * server, guint id, gchar * property, gchar ** value, GError **error)
+{
+
+ return TRUE;
+}
+
+static gboolean
+get_indicator_property_group (IndicateServer * server, guint id, gchar ** properties, gchar *** value, GError **error)
+{
+
+ return TRUE;
+}
+
+static gboolean
+get_indicator_properties (IndicateServer * server, guint id, gchar *** properties, GError **error)
+{
+
+ return TRUE;
+}
+
+static gboolean
+show_indicator_to_user (IndicateServer * server, guint id, GError ** error)
+{
+
+ return TRUE;
+}
+
+
/* Virtual Functions */
gboolean
indicate_server_get_desktop (IndicateServer * server, gchar ** desktop_path, GError **error)