Mercurial > pidgin
diff libpurple/prefs.h @ 15822:32c366eeeb99
sed -ie 's/gaim/purple/g'
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Mon, 19 Mar 2007 07:01:17 +0000 |
| parents | 5fe8042783c1 |
| children | 69e0551deebe 8af9ebae439c 0e30dfac1f46 |
line wrap: on
line diff
--- a/libpurple/prefs.h Mon Mar 19 06:11:46 2007 +0000 +++ b/libpurple/prefs.h Mon Mar 19 07:01:17 2007 +0000 @@ -2,9 +2,9 @@ * @file prefs.h Prefs API * @ingroup core * - * gaim + * purple * - * Gaim is the legal property of its developers, whose names are too numerous + * Purple is the legal property of its developers, whose names are too numerous * to list here. Please refer to the COPYRIGHT file distributed with this * source distribution. * @@ -23,31 +23,31 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ -#ifndef _GAIM_PREFS_H_ -#define _GAIM_PREFS_H_ +#ifndef _PURPLE_PREFS_H_ +#define _PURPLE_PREFS_H_ #include <glib.h> /** * Pref data types. */ -typedef enum _GaimPrefType +typedef enum _PurplePrefType { - GAIM_PREF_NONE, - GAIM_PREF_BOOLEAN, - GAIM_PREF_INT, - GAIM_PREF_STRING, - GAIM_PREF_STRING_LIST, - GAIM_PREF_PATH, - GAIM_PREF_PATH_LIST + PURPLE_PREF_NONE, + PURPLE_PREF_BOOLEAN, + PURPLE_PREF_INT, + PURPLE_PREF_STRING, + PURPLE_PREF_STRING_LIST, + PURPLE_PREF_PATH, + PURPLE_PREF_PATH_LIST -} GaimPrefType; +} PurplePrefType; /** * Pref change callback type */ -typedef void (*GaimPrefCallback) (const char *name, GaimPrefType type, +typedef void (*PurplePrefCallback) (const char *name, PurplePrefType type, gconstpointer val, gpointer data); #ifdef __cplusplus @@ -64,24 +64,24 @@ * * @return The prefs subsystem handle. */ -void *gaim_prefs_get_handle(void); +void *purple_prefs_get_handle(void); /** * Initialize core prefs */ -void gaim_prefs_init(void); +void purple_prefs_init(void); /** * Uninitializes the prefs subsystem. */ -void gaim_prefs_uninit(void); +void purple_prefs_uninit(void); /** * Add a new typeless pref. * * @param name The name of the pref */ -void gaim_prefs_add_none(const char *name); +void purple_prefs_add_none(const char *name); /** * Add a new boolean pref. @@ -89,7 +89,7 @@ * @param name The name of the pref * @param value The initial value to set */ -void gaim_prefs_add_bool(const char *name, gboolean value); +void purple_prefs_add_bool(const char *name, gboolean value); /** * Add a new integer pref. @@ -97,7 +97,7 @@ * @param name The name of the pref * @param value The initial value to set */ -void gaim_prefs_add_int(const char *name, int value); +void purple_prefs_add_int(const char *name, int value); /** * Add a new string pref. @@ -105,7 +105,7 @@ * @param name The name of the pref * @param value The initial value to set */ -void gaim_prefs_add_string(const char *name, const char *value); +void purple_prefs_add_string(const char *name, const char *value); /** * Add a new string list pref. @@ -113,7 +113,7 @@ * @param name The name of the pref * @param value The initial value to set */ -void gaim_prefs_add_string_list(const char *name, GList *value); +void purple_prefs_add_string_list(const char *name, GList *value); /** * Add a new path pref. @@ -121,7 +121,7 @@ * @param name The name of the pref * @param value The initial value to set */ -void gaim_prefs_add_path(const char *name, const char *value); +void purple_prefs_add_path(const char *name, const char *value); /** * Add a new path list pref. @@ -129,7 +129,7 @@ * @param name The name of the pref * @param value The initial value to set */ -void gaim_prefs_add_path_list(const char *name, GList *value); +void purple_prefs_add_path_list(const char *name, GList *value); /** @@ -137,7 +137,7 @@ * * @param name The name of the pref */ -void gaim_prefs_remove(const char *name); +void purple_prefs_remove(const char *name); /** * Rename a pref @@ -145,7 +145,7 @@ * @param oldname The old name of the pref * @param newname The new name for the pref */ -void gaim_prefs_rename(const char *oldname, const char *newname); +void purple_prefs_rename(const char *oldname, const char *newname); /** * Rename a boolean pref, toggling it's value @@ -153,12 +153,12 @@ * @param oldname The old name of the pref * @param newname The new name for the pref */ -void gaim_prefs_rename_boolean_toggle(const char *oldname, const char *newname); +void purple_prefs_rename_boolean_toggle(const char *oldname, const char *newname); /** * Remove all prefs. */ -void gaim_prefs_destroy(void); +void purple_prefs_destroy(void); /** * Set raw pref value @@ -166,7 +166,7 @@ * @param name The name of the pref * @param value The value to set */ -void gaim_prefs_set_generic(const char *name, gpointer value); +void purple_prefs_set_generic(const char *name, gpointer value); /** * Set boolean pref value @@ -174,7 +174,7 @@ * @param name The name of the pref * @param value The value to set */ -void gaim_prefs_set_bool(const char *name, gboolean value); +void purple_prefs_set_bool(const char *name, gboolean value); /** * Set integer pref value @@ -182,7 +182,7 @@ * @param name The name of the pref * @param value The value to set */ -void gaim_prefs_set_int(const char *name, int value); +void purple_prefs_set_int(const char *name, int value); /** * Set string pref value @@ -190,7 +190,7 @@ * @param name The name of the pref * @param value The value to set */ -void gaim_prefs_set_string(const char *name, const char *value); +void purple_prefs_set_string(const char *name, const char *value); /** * Set string list pref value @@ -198,7 +198,7 @@ * @param name The name of the pref * @param value The value to set */ -void gaim_prefs_set_string_list(const char *name, GList *value); +void purple_prefs_set_string_list(const char *name, GList *value); /** * Set path pref value @@ -206,7 +206,7 @@ * @param name The name of the pref * @param value The value to set */ -void gaim_prefs_set_path(const char *name, const char *value); +void purple_prefs_set_path(const char *name, const char *value); /** * Set path list pref value @@ -214,7 +214,7 @@ * @param name The name of the pref * @param value The value to set */ -void gaim_prefs_set_path_list(const char *name, GList *value); +void purple_prefs_set_path_list(const char *name, GList *value); /** @@ -223,7 +223,7 @@ * @param name The name of the pref * @return TRUE if the pref exists. Otherwise FALSE. */ -gboolean gaim_prefs_exists(const char *name); +gboolean purple_prefs_exists(const char *name); /** * Get pref type @@ -231,7 +231,7 @@ * @param name The name of the pref * @return The type of the pref */ -GaimPrefType gaim_prefs_get_type(const char *name); +PurplePrefType purple_prefs_get_type(const char *name); /** * Get boolean pref value @@ -239,7 +239,7 @@ * @param name The name of the pref * @return The value of the pref */ -gboolean gaim_prefs_get_bool(const char *name); +gboolean purple_prefs_get_bool(const char *name); /** * Get integer pref value @@ -247,7 +247,7 @@ * @param name The name of the pref * @return The value of the pref */ -int gaim_prefs_get_int(const char *name); +int purple_prefs_get_int(const char *name); /** * Get string pref value @@ -255,7 +255,7 @@ * @param name The name of the pref * @return The value of the pref */ -const char *gaim_prefs_get_string(const char *name); +const char *purple_prefs_get_string(const char *name); /** * Get string list pref value @@ -263,7 +263,7 @@ * @param name The name of the pref * @return The value of the pref */ -GList *gaim_prefs_get_string_list(const char *name); +GList *purple_prefs_get_string_list(const char *name); /** * Get path pref value @@ -271,7 +271,7 @@ * @param name The name of the pref * @return The value of the pref */ -const char *gaim_prefs_get_path(const char *name); +const char *purple_prefs_get_path(const char *name); /** * Get path list pref value @@ -279,39 +279,39 @@ * @param name The name of the pref * @return The value of the pref */ -GList *gaim_prefs_get_path_list(const char *name); +GList *purple_prefs_get_path_list(const char *name); /** * Add a callback to a pref (and its children) */ -guint gaim_prefs_connect_callback(void *handle, const char *name, GaimPrefCallback cb, +guint purple_prefs_connect_callback(void *handle, const char *name, PurplePrefCallback cb, gpointer data); /** * Remove a callback to a pref */ -void gaim_prefs_disconnect_callback(guint callback_id); +void purple_prefs_disconnect_callback(guint callback_id); /** * Remove all pref callbacks by handle */ -void gaim_prefs_disconnect_by_handle(void *handle); +void purple_prefs_disconnect_by_handle(void *handle); /** * Trigger callbacks as if the pref changed */ -void gaim_prefs_trigger_callback(const char *name); +void purple_prefs_trigger_callback(const char *name); /** * Read preferences */ -gboolean gaim_prefs_load(void); +gboolean purple_prefs_load(void); /** * Rename legacy prefs and delete some that no longer exist. */ -void gaim_prefs_update_old(void); +void purple_prefs_update_old(void); /*@}*/ @@ -319,4 +319,4 @@ } #endif -#endif /* _GAIM_PREFS_H_ */ +#endif /* _PURPLE_PREFS_H_ */
