From ee713f22dd253cf6e757f3ffb4ec839dad91bf31 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 20 Aug 2009 14:26:56 -0500 Subject: More of a basis for the black list stuff. Some functions and an interface. --- src/messages-service.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'src') diff --git a/src/messages-service.c b/src/messages-service.c index 9879e3a..1ff97ca 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -160,9 +160,41 @@ launcherList_sort (gconstpointer a, gconstpointer b) * Black List */ +static GHashTable * blacklist = NULL; + +/* Initialize the black list and start to setup + handlers for it. */ +static void +blacklist_init (gpointer data) +{ + + return; +} + +/* Add a definition file into the black list and eclipse + and launchers that have the same file. */ +static void +blacklist_add (const gchar * definition_file) +{ + + return; +} + +/* Remove a black list item based on the definition file + and uneclipse those launchers blocked by it. */ +static void +blacklist_remove (const gchar * definition_file) +{ + + return; +} + +/* Check to see if a particular desktop file is + in the blacklist. */ static gboolean blacklist_check (const gchar * desktop_file) { + if (blacklist == NULL) return FALSE; return FALSE; } -- cgit v1.2.3