Mercurial > pidgin.yaz
annotate plugins/perl/common/Account.xs @ 6523:d7e04709be96
[gaim-migrate @ 7040]
Fixed a perl function call, and changed gaim_account_set_user_info to
update the server when called from a perl script.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 20 Aug 2003 10:38:41 +0000 |
parents | cbd24b37350d |
children | 12343e2aaab1 |
rev | line source |
---|---|
6508 | 1 #include "module.h" |
2 | |
3 MODULE = Gaim::Account PACKAGE = Gaim::Account PREFIX = gaim_account_ | |
4 PROTOTYPES: ENABLE | |
5 | |
6 Gaim::Connection | |
7 gaim_account_connect(account) | |
8 Gaim::Account account | |
9 | |
10 void | |
11 gaim_account_disconnect(account) | |
12 Gaim::Account account | |
13 | |
14 void | |
15 gaim_account_set_username(account, username) | |
16 Gaim::Account account | |
17 const char *username | |
18 | |
19 void | |
20 gaim_account_set_password(account, password) | |
21 Gaim::Account account | |
22 const char *password | |
23 | |
24 void | |
25 gaim_account_set_alias(account, alias) | |
26 Gaim::Account account | |
27 const char *alias | |
28 | |
29 void | |
30 gaim_account_set_user_info(account, user_info) | |
31 Gaim::Account account | |
32 const char *user_info | |
6523
d7e04709be96
[gaim-migrate @ 7040]
Christian Hammond <chipx86@chipx86.com>
parents:
6508
diff
changeset
|
33 CODE: |
d7e04709be96
[gaim-migrate @ 7040]
Christian Hammond <chipx86@chipx86.com>
parents:
6508
diff
changeset
|
34 gaim_account_set_user_info(account, user_info); |
d7e04709be96
[gaim-migrate @ 7040]
Christian Hammond <chipx86@chipx86.com>
parents:
6508
diff
changeset
|
35 serv_set_info(gaim_account_get_connection(account), user_info); |
6508 | 36 |
37 void | |
38 gaim_account_set_buddy_icon(account, buddy_icon) | |
39 Gaim::Account account | |
40 const char *buddy_icon | |
41 | |
42 void | |
43 gaim_account_set_protocol_id(account, protocol_id) | |
44 Gaim::Account account | |
45 const char *protocol_id | |
46 | |
47 void | |
48 gaim_account_set_remember_password(account, value) | |
49 Gaim::Account account | |
50 gboolean value | |
51 | |
52 void | |
53 gaim_account_set_check_mail(account, value) | |
54 Gaim::Account account | |
55 gboolean value | |
56 | |
57 void | |
58 gaim_account_set_auto_login(account, ui, value) | |
59 Gaim::Account account | |
60 const char *ui | |
61 gboolean value | |
62 | |
63 void | |
64 gaim_account_set_public_ip(account, ip) | |
65 Gaim::Account account | |
66 const char *ip | |
67 | |
68 gboolean | |
69 gaim_account_is_connected(account) | |
70 Gaim::Account account | |
71 | |
72 const char * | |
73 gaim_account_get_username(account) | |
74 Gaim::Account account | |
75 | |
76 const char * | |
77 gaim_account_get_password(account) | |
78 Gaim::Account account | |
79 | |
80 const char * | |
81 gaim_account_get_alias(account) | |
82 Gaim::Account account | |
83 | |
84 const char * | |
85 gaim_account_get_user_info(account) | |
86 Gaim::Account account | |
87 | |
88 const char * | |
89 gaim_account_get_buddy_icon(account) | |
90 Gaim::Account account | |
91 | |
92 const char * | |
93 gaim_account_get_protocol_id(account) | |
94 Gaim::Account account | |
95 | |
96 Gaim::Connection | |
97 gaim_account_get_connection(account) | |
98 Gaim::Account account | |
99 | |
100 gboolean | |
101 gaim_account_get_remember_password(account) | |
102 Gaim::Account account | |
103 | |
104 gboolean | |
105 gaim_account_get_check_mail(account) | |
106 Gaim::Account account | |
107 | |
108 gboolean | |
109 gaim_account_get_auto_login(account, ui) | |
110 Gaim::Account account | |
111 const char *ui | |
112 | |
113 const char * | |
114 gaim_account_get_public_ip(account) | |
115 Gaim::Account account | |
116 | |
117 void * | |
118 handle() | |
119 CODE: | |
120 RETVAL = gaim_accounts_get_handle(); | |
121 OUTPUT: | |
122 RETVAL | |
123 | |
124 | |
125 MODULE = Gaim::Account PACKAGE = Gaim::Accounts PREFIX = gaim_accounts_ | |
126 | |
127 void | |
128 gaim_accounts_add(account) | |
129 Gaim::Account account | |
130 | |
131 void | |
132 gaim_accounts_remove(account) | |
133 Gaim::Account account | |
134 | |
135 | |
136 MODULE = Gaim::Account PACKAGE = Gaim | |
137 | |
138 void | |
139 accounts() | |
140 PREINIT: | |
141 GList *l; | |
142 PPCODE: | |
143 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) | |
144 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Account"))); | |
145 | |
146 Gaim::Account | |
147 account_find(name, protocol_id) | |
148 const char *name | |
149 const char *protocol_id | |
150 CODE: | |
151 RETVAL = gaim_accounts_find_with_prpl_id(name, protocol_id); | |
152 OUTPUT: | |
153 RETVAL | |
154 |