| 1 #include "module.h" |
|
| 2 |
|
| 3 MODULE = Gaim::Prefs PACKAGE = Gaim::Prefs PREFIX = gaim_prefs_ |
|
| 4 PROTOTYPES: ENABLE |
|
| 5 |
|
| 6 void |
|
| 7 gaim_prefs_add_bool(name, value) |
|
| 8 const char *name |
|
| 9 gboolean value |
|
| 10 |
|
| 11 void |
|
| 12 gaim_prefs_add_int(name, value) |
|
| 13 const char *name |
|
| 14 int value |
|
| 15 |
|
| 16 void |
|
| 17 gaim_prefs_add_none(name) |
|
| 18 const char *name |
|
| 19 |
|
| 20 void |
|
| 21 gaim_prefs_add_string(name, value) |
|
| 22 const char *name |
|
| 23 const char *value |
|
| 24 |
|
| 25 void |
|
| 26 gaim_prefs_add_string_list(name, value) |
|
| 27 const char *name |
|
| 28 SV *value |
|
| 29 PREINIT: |
|
| 30 GList *t_GL; |
|
| 31 int i, t_len; |
|
| 32 PPCODE: |
|
| 33 t_GL = NULL; |
|
| 34 t_len = av_len((AV *)SvRV(value)); |
|
| 35 |
|
| 36 for (i = 0; i < t_len; i++) { |
|
| 37 STRLEN t_sl; |
|
| 38 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(value), i, 0), t_sl)); |
|
| 39 } |
|
| 40 gaim_prefs_add_string_list(name, t_GL); |
|
| 41 |
|
| 42 void |
|
| 43 gaim_prefs_destroy() |
|
| 44 |
|
| 45 void |
|
| 46 gaim_prefs_disconnect_by_handle(handle) |
|
| 47 void * handle |
|
| 48 |
|
| 49 void |
|
| 50 gaim_prefs_disconnect_callback(callback_id) |
|
| 51 guint callback_id |
|
| 52 |
|
| 53 gboolean |
|
| 54 gaim_prefs_exists(name) |
|
| 55 const char *name |
|
| 56 |
|
| 57 gboolean |
|
| 58 gaim_prefs_get_bool(name) |
|
| 59 const char *name |
|
| 60 |
|
| 61 void * |
|
| 62 gaim_prefs_get_handle() |
|
| 63 |
|
| 64 int |
|
| 65 gaim_prefs_get_int(name) |
|
| 66 const char *name |
|
| 67 |
|
| 68 const char * |
|
| 69 gaim_prefs_get_string(name) |
|
| 70 const char *name |
|
| 71 |
|
| 72 void |
|
| 73 gaim_prefs_get_string_list(name) |
|
| 74 const char *name |
|
| 75 PREINIT: |
|
| 76 GList *l; |
|
| 77 PPCODE: |
|
| 78 for (l = gaim_prefs_get_string_list(name); l != NULL; l = l->next) { |
|
| 79 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::PrefValue"))); |
|
| 80 } |
|
| 81 |
|
| 82 Gaim::PrefType |
|
| 83 gaim_prefs_get_type(name) |
|
| 84 const char *name |
|
| 85 |
|
| 86 void |
|
| 87 gaim_prefs_init() |
|
| 88 |
|
| 89 gboolean |
|
| 90 gaim_prefs_load() |
|
| 91 |
|
| 92 void |
|
| 93 gaim_prefs_remove(name) |
|
| 94 const char *name |
|
| 95 |
|
| 96 void |
|
| 97 gaim_prefs_rename(oldname, newname) |
|
| 98 const char *oldname |
|
| 99 const char *newname |
|
| 100 |
|
| 101 void |
|
| 102 gaim_prefs_rename_boolean_toggle(oldname, newname) |
|
| 103 const char *oldname |
|
| 104 const char *newname |
|
| 105 |
|
| 106 void |
|
| 107 gaim_prefs_set_bool(name, value) |
|
| 108 const char *name |
|
| 109 gboolean value |
|
| 110 |
|
| 111 void |
|
| 112 gaim_prefs_set_generic(name, value) |
|
| 113 const char *name |
|
| 114 gpointer value |
|
| 115 |
|
| 116 void |
|
| 117 gaim_prefs_set_int(name, value) |
|
| 118 const char *name |
|
| 119 int value |
|
| 120 |
|
| 121 void |
|
| 122 gaim_prefs_set_string(name, value) |
|
| 123 const char *name |
|
| 124 const char *value |
|
| 125 |
|
| 126 void |
|
| 127 gaim_prefs_set_string_list(name, value) |
|
| 128 const char *name |
|
| 129 SV *value |
|
| 130 PREINIT: |
|
| 131 GList *t_GL; |
|
| 132 int i, t_len; |
|
| 133 PPCODE: |
|
| 134 t_GL = NULL; |
|
| 135 t_len = av_len((AV *)SvRV(value)); |
|
| 136 |
|
| 137 for (i = 0; i < t_len; i++) { |
|
| 138 STRLEN t_sl; |
|
| 139 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(value), i, 0), t_sl)); |
|
| 140 } |
|
| 141 gaim_prefs_set_string_list(name, t_GL); |
|
| 142 |
|
| 143 void |
|
| 144 gaim_prefs_trigger_callback(name) |
|
| 145 const char *name |
|
| 146 |
|
| 147 void |
|
| 148 gaim_prefs_uninit() |
|
| 149 |
|
| 150 void |
|
| 151 gaim_prefs_update_old() |
|