diff src/prefs.h @ 10087:9fdbfe832fac

[gaim-migrate @ 11098] gaim_prefs_connect_callback() now takes a handle that can be used to disconnect the callbacks later on. The callback id's remain, so people can still use those if they want, although I'm not sure if there's any need for them any more. I also switched the order for initializing the prefs subsystem and statically compiled protocol plugins so that prpl prefs can work for statically compiled prpls. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 12 Oct 2004 00:49:19 +0000
parents af06746954de
children b6ca0e1b19d0
line wrap: on
line diff
--- a/src/prefs.h	Sun Oct 10 16:47:56 2004 +0000
+++ b/src/prefs.h	Tue Oct 12 00:49:19 2004 +0000
@@ -225,7 +225,7 @@
 /**
  * Add a callback to a pref (and its children)
  */
-guint gaim_prefs_connect_callback(const char *name, GaimPrefCallback cb,
+guint gaim_prefs_connect_callback(void *handle, const char *name, GaimPrefCallback cb,
 		gpointer data);
 
 /**
@@ -234,6 +234,11 @@
 void gaim_prefs_disconnect_callback(guint callback_id);
 
 /**
+ * Remove all pref callbacks by handle
+ */
+void gaim_prefs_disconnect_by_handle(void *handle);
+
+/**
  * Trigger callbacks as if the pref changed
  */
 void gaim_prefs_trigger_callback(const char *name);