Mercurial > pidgin
annotate plugins/perl/common/Account.xs @ 11221:5ed33bb06a84
[gaim-migrate @ 13353]
These changes must have been unintentionally reverted
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 09 Aug 2005 12:12:14 +0000 |
parents | 3f3bc7f1b6bf |
children | b284c703d398 |
rev | line source |
---|---|
11118 | 1 |
6508 | 2 #include "module.h" |
3 | |
11118 | 4 /* TODO |
5 | |
6 Gaim::Presence | |
7 gaim_account_get_presence(account) | |
8 Gaim::Account account | |
9 | |
10 void | |
11 gaim_account_set_presence(account, presence) | |
12 Gaim::Account account | |
13 Gaim::Presence presence | |
14 | |
15 */ | |
16 | |
17 /**********************XS Code for Account.xs*********************************/ | |
6508 | 18 MODULE = Gaim::Account PACKAGE = Gaim::Account PREFIX = gaim_account_ |
19 PROTOTYPES: ENABLE | |
20 | |
11118 | 21 Gaim::Account |
22 gaim_account_new(username, protocol_id) | |
23 const char * username | |
24 const char * protocol_id | |
25 | |
26 void | |
27 gaim_account_destroy(account) | |
28 Gaim::Account account | |
29 | |
30 void | |
10437 | 31 gaim_account_connect(account) |
32 Gaim::Account account | |
33 | |
11118 | 34 void |
35 gaim_account_register(account) | |
36 Gaim::Account account | |
37 | |
38 void | |
6508 | 39 gaim_account_disconnect(account) |
40 Gaim::Account account | |
41 | |
11118 | 42 void |
43 gaim_account_request_change_password(account) | |
44 Gaim::Account account | |
45 | |
46 void | |
47 gaim_account_request_change_user_info(account) | |
48 Gaim::Account account | |
49 | |
50 void | |
6508 | 51 gaim_account_set_username(account, username) |
52 Gaim::Account account | |
11118 | 53 const char * username |
6508 | 54 |
11118 | 55 void |
6508 | 56 gaim_account_set_password(account, password) |
57 Gaim::Account account | |
11118 | 58 const char * password |
6508 | 59 |
11118 | 60 void |
6508 | 61 gaim_account_set_alias(account, alias) |
62 Gaim::Account account | |
11118 | 63 const char * alias |
6508 | 64 |
11118 | 65 void |
6508 | 66 gaim_account_set_user_info(account, user_info) |
67 Gaim::Account account | |
68 const char *user_info | |
69 | |
11118 | 70 void |
71 gaim_account_set_buddy_icon(account, icon) | |
6508 | 72 Gaim::Account account |
11118 | 73 const char *icon |
6508 | 74 |
11118 | 75 void |
76 gaim_account_set_connection(account, gc) | |
6508 | 77 Gaim::Account account |
11118 | 78 Gaim::Connection gc |
6508 | 79 |
11118 | 80 void |
6508 | 81 gaim_account_set_remember_password(account, value) |
82 Gaim::Account account | |
83 gboolean value | |
84 | |
11118 | 85 void |
6508 | 86 gaim_account_set_check_mail(account, value) |
87 Gaim::Account account | |
88 gboolean value | |
89 | |
11118 | 90 void |
91 gaim_account_set_proxy_info(account, info) | |
92 Gaim::Account account | |
93 Gaim::ProxyInfo info | |
94 | |
10504 | 95 void |
11118 | 96 gaim_account_set_status(account, status_id, active) |
97 Gaim::Account account | |
98 const char *status_id | |
99 gboolean active | |
100 CODE: | |
101 gaim_account_set_status(account, status_id, active); | |
102 | |
103 | |
104 void | |
105 gaim_account_set_status_types(account, status_types) | |
10504 | 106 Gaim::Account account |
11118 | 107 SV * status_types |
108 PREINIT: | |
109 GList *t_GL; | |
110 int i, t_len; | |
111 PPCODE: | |
112 t_GL = NULL; | |
113 t_len = av_len((AV *)SvRV(status_types)); | |
10504 | 114 |
11118 | 115 for (i = 0; i < t_len; i++) { |
116 STRLEN t_sl; | |
117 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(status_types), i, 0), t_sl)); | |
118 } | |
119 gaim_account_set_status_types(account, t_GL); | |
120 | |
121 | |
122 void | |
123 gaim_account_clear_settings(account) | |
124 Gaim::Account account | |
125 | |
126 void | |
127 gaim_account_set_int(account, name, value) | |
128 Gaim::Account account | |
129 const char *name | |
130 int value | |
131 | |
132 gboolean | |
6508 | 133 gaim_account_is_connected(account) |
134 Gaim::Account account | |
135 | |
136 const char * | |
137 gaim_account_get_username(account) | |
138 Gaim::Account account | |
139 | |
140 const char * | |
141 gaim_account_get_password(account) | |
142 Gaim::Account account | |
143 | |
144 const char * | |
145 gaim_account_get_alias(account) | |
146 Gaim::Account account | |
147 | |
148 const char * | |
149 gaim_account_get_user_info(account) | |
150 Gaim::Account account | |
151 | |
152 const char * | |
153 gaim_account_get_buddy_icon(account) | |
154 Gaim::Account account | |
155 | |
156 const char * | |
157 gaim_account_get_protocol_id(account) | |
158 Gaim::Account account | |
159 | |
11118 | 160 const char * |
161 gaim_account_get_protocol_name(account) | |
162 Gaim::Account account | |
163 | |
6508 | 164 Gaim::Connection |
165 gaim_account_get_connection(account) | |
166 Gaim::Account account | |
167 | |
11118 | 168 gboolean |
6508 | 169 gaim_account_get_remember_password(account) |
170 Gaim::Account account | |
171 | |
11118 | 172 gboolean |
6508 | 173 gaim_account_get_check_mail(account) |
174 Gaim::Account account | |
175 | |
11118 | 176 Gaim::ProxyInfo |
177 gaim_account_get_proxy_info(account) | |
178 Gaim::Account account | |
179 | |
180 Gaim::Status | |
181 gaim_account_get_active_status(account) | |
182 Gaim::Account account | |
183 | |
184 void | |
185 gaim_account_get_status_types(account) | |
10504 | 186 Gaim::Account account |
11118 | 187 PREINIT: |
11130 | 188 const GList *l; |
11118 | 189 PPCODE: |
190 for (l = gaim_account_get_status_types(account); l != NULL; l = l->next) { | |
191 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Status::Type"))); | |
192 } | |
193 | |
194 Gaim::Log | |
195 gaim_account_get_log(account) | |
196 Gaim::Account account | |
197 | |
198 void | |
199 gaim_account_destroy_log(account) | |
200 Gaim::Account account | |
201 | |
202 | |
10504 | 203 |
6508 | 204 |
205 MODULE = Gaim::Account PACKAGE = Gaim::Accounts PREFIX = gaim_accounts_ | |
11118 | 206 PROTOTYPES: ENABLE |
6508 | 207 |
11118 | 208 void |
6508 | 209 gaim_accounts_add(account) |
210 Gaim::Account account | |
211 | |
11118 | 212 void |
6508 | 213 gaim_accounts_remove(account) |
214 Gaim::Account account | |
215 | |
11118 | 216 void |
217 gaim_accounts_delete(account) | |
218 Gaim::Account account | |
6595
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
219 |
11118 | 220 void |
221 gaim_accounts_reorder(account, new_index) | |
222 Gaim::Account account | |
223 size_t new_index | |
6508 | 224 |
225 void | |
11118 | 226 gaim_accounts_get_all() |
227 PREINIT: | |
228 GList *l; | |
229 PPCODE: | |
230 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) { | |
231 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Account"))); | |
232 } | |
233 | |
234 void | |
235 gaim_accounts_get_all_active() | |
6508 | 236 PREINIT: |
237 GList *l; | |
238 PPCODE: | |
11118 | 239 for (l = gaim_accounts_get_all_active(); l != NULL; l = l->next) { |
6508 | 240 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Account"))); |
11118 | 241 } |
6508 | 242 |
11118 | 243 Gaim::Account |
244 gaim_accounts_find(name, protocol) | |
245 const char * name | |
246 const char * protocol | |
247 | |
248 void | |
249 gaim_accounts_set_ui_ops(ops) | |
250 Gaim::Account::UiOps ops | |
251 | |
252 Gaim::Account::UiOps | |
253 gaim_accounts_get_ui_ops() | |
254 | |
255 void | |
256 gaim_accounts_get_handle() | |
257 | |
258 void | |
259 gaim_accounts_init() | |
260 | |
261 void | |
262 gaim_accounts_uninit() |