From f4bfa1ff71ef925907901dc0c438328891daca1c Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 10 Apr 2009 14:32:37 -0500 Subject: Create the virtual function for checking interest. --- libindicate/server.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libindicate/server.c') 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) -- cgit v1.2.3