aboutsummaryrefslogtreecommitdiff
path: root/libindicate/server.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-21 17:07:21 -0500
committerTed Gould <ted@canonical.com>2009-04-21 17:07:21 -0500
commitb630f123dd05ba928f13e03969cfac75e8b9189a (patch)
treecd1ffeeacd4645a5125e4b763a7ca9f050967b66 /libindicate/server.c
parent65381a4953acc7bbe1bfedf1f6155257ae60f8d3 (diff)
parent8c6656e5d6a05ad14fe41c12bc2d159c5b3e22ca (diff)
downloadlibayatana-indicator-b630f123dd05ba928f13e03969cfac75e8b9189a.tar.gz
libayatana-indicator-b630f123dd05ba928f13e03969cfac75e8b9189a.tar.bz2
libayatana-indicator-b630f123dd05ba928f13e03969cfac75e8b9189a.zip
Upstream snapshot
Diffstat (limited to 'libindicate/server.c')
-rw-r--r--libindicate/server.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libindicate/server.c b/libindicate/server.c
index e3d071c..d42fe61 100644
--- a/libindicate/server.c
+++ b/libindicate/server.c
@@ -1207,6 +1207,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)