aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-10 14:32:37 -0500
committerTed Gould <ted@canonical.com>2009-04-10 14:32:37 -0500
commitf4bfa1ff71ef925907901dc0c438328891daca1c (patch)
tree8aab0a6eca3fc2a8a33f8e2697867f9a4e1b147c /libindicate
parent28e006b96d738e589225ab45f13f7a358ac7642d (diff)
downloadlibayatana-indicator-f4bfa1ff71ef925907901dc0c438328891daca1c.tar.gz
libayatana-indicator-f4bfa1ff71ef925907901dc0c438328891daca1c.tar.bz2
libayatana-indicator-f4bfa1ff71ef925907901dc0c438328891daca1c.zip
Create the virtual function for checking interest.
Diffstat (limited to 'libindicate')
-rw-r--r--libindicate/server.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libindicate/server.c b/libindicate/server.c
index 9e33516..1378a0d 100644
--- a/libindicate/server.c
+++ b/libindicate/server.c
@@ -1202,6 +1202,19 @@ _indicate_server_remove_interest (IndicateServer * server, gchar * interest, DBu
return FALSE;
}
+gboolean
+indicate_server_check_interest (IndicateServer * server, IndicateInterests interest)
+{
+ IndicateServerClass * class = INDICATE_SERVER_GET_CLASS(server);
+
+ if (class != NULL && class->check_interest != NULL) {
+ return class->check_interest (server, interest);
+ }
+
+ g_warning("check_interest function not implemented in this server class: %s", G_OBJECT_TYPE_NAME(server));
+ return FALSE;
+}
+
/* Signal emission functions for sub-classes of the server */
void
indicate_server_emit_indicator_added (IndicateServer *server, guint id, const gchar *type)