Mercurial > pidgin.yaz
annotate plugins/perl/common/Account.xs @ 7289:ab2085024a29
[gaim-migrate @ 7870]
Let new MSN users with empty buddy lists sign on. This fixes a lot of bug
numbers.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 17 Oct 2003 15:03:27 +0000 |
parents | 57478df4faf8 |
children | 518455386538 |
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 | |
118 MODULE = Gaim::Account PACKAGE = Gaim::Accounts PREFIX = gaim_accounts_ | |
119 | |
120 void | |
121 gaim_accounts_add(account) | |
122 Gaim::Account account | |
123 | |
124 void | |
125 gaim_accounts_remove(account) | |
126 Gaim::Account account | |
127 | |
6595
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
128 Gaim::Account |
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
129 find(name, protocol_id) |
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
130 const char *name |
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
131 const char *protocol_id |
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
132 CODE: |
7176 | 133 RETVAL = gaim_accounts_find(name, protocol_id); |
6595
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
134 OUTPUT: |
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
135 RETVAL |
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
136 |
6551
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
137 void * |
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
138 handle() |
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
139 CODE: |
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
140 RETVAL = gaim_accounts_get_handle(); |
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
141 OUTPUT: |
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
142 RETVAL |
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
143 |
6508 | 144 |
145 MODULE = Gaim::Account PACKAGE = Gaim | |
146 | |
147 void | |
148 accounts() | |
149 PREINIT: | |
150 GList *l; | |
151 PPCODE: | |
152 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) | |
153 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Account"))); | |
154 |