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