aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-20 14:26:56 -0500
committerTed Gould <ted@canonical.com>2009-08-20 14:26:56 -0500
commitee713f22dd253cf6e757f3ffb4ec839dad91bf31 (patch)
treef78e0624ddf9d05dc768b3b2131f6d5dedeb5f56 /src
parent754694356af4079753531d5a090c0d7ed9eee828 (diff)
downloadayatana-indicator-messages-ee713f22dd253cf6e757f3ffb4ec839dad91bf31.tar.gz
ayatana-indicator-messages-ee713f22dd253cf6e757f3ffb4ec839dad91bf31.tar.bz2
ayatana-indicator-messages-ee713f22dd253cf6e757f3ffb4ec839dad91bf31.zip
More of a basis for the black list stuff. Some functions and an interface.
Diffstat (limited to 'src')
-rw-r--r--src/messages-service.c32
1 files changed, 32 insertions, 0 deletions
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;
}