Mercurial > pidgin
annotate plugins/perl/common/Account.xs @ 10437:446f5f28e8d0
[gaim-migrate @ 11694]
sf patch #1090744, from Balwinder Singh Dheeman
Adds back a thingy to the perl API
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 27 Dec 2004 20:48:41 +0000 |
parents | ce098e226486 |
children | 1a97d5e88d12 |
rev | line source |
---|---|
6508 | 1 #include "module.h" |
2 | |
3 MODULE = Gaim::Account PACKAGE = Gaim::Account PREFIX = gaim_account_ | |
4 PROTOTYPES: ENABLE | |
5 | |
10437 | 6 Gaim::Connection |
7 gaim_account_connect(account) | |
8 Gaim::Account account | |
9 CODE: | |
10 RETVAL = gaim_account_connect(account, | |
11 gaim_account_get_status(account, "online")); | |
12 OUTPUT: | |
13 RETVAL | |
14 | |
6508 | 15 void |
16 gaim_account_disconnect(account) | |
17 Gaim::Account account | |
18 | |
19 void | |
20 gaim_account_set_username(account, username) | |
21 Gaim::Account account | |
22 const char *username | |
23 | |
24 void | |
25 gaim_account_set_password(account, password) | |
26 Gaim::Account account | |
27 const char *password | |
28 | |
29 void | |
30 gaim_account_set_alias(account, alias) | |
31 Gaim::Account account | |
32 const char *alias | |
33 | |
34 void | |
35 gaim_account_set_user_info(account, user_info) | |
36 Gaim::Account account | |
37 const char *user_info | |
6523
d7e04709be96
[gaim-migrate @ 7040]
Christian Hammond <chipx86@chipx86.com>
parents:
6508
diff
changeset
|
38 CODE: |
d7e04709be96
[gaim-migrate @ 7040]
Christian Hammond <chipx86@chipx86.com>
parents:
6508
diff
changeset
|
39 gaim_account_set_user_info(account, user_info); |
d7e04709be96
[gaim-migrate @ 7040]
Christian Hammond <chipx86@chipx86.com>
parents:
6508
diff
changeset
|
40 serv_set_info(gaim_account_get_connection(account), user_info); |
6508 | 41 |
42 void | |
43 gaim_account_set_buddy_icon(account, buddy_icon) | |
44 Gaim::Account account | |
45 const char *buddy_icon | |
46 | |
47 void | |
48 gaim_account_set_protocol_id(account, protocol_id) | |
49 Gaim::Account account | |
50 const char *protocol_id | |
51 | |
52 void | |
53 gaim_account_set_remember_password(account, value) | |
54 Gaim::Account account | |
55 gboolean value | |
56 | |
57 void | |
58 gaim_account_set_check_mail(account, value) | |
59 Gaim::Account account | |
60 gboolean value | |
61 | |
62 gboolean | |
63 gaim_account_is_connected(account) | |
64 Gaim::Account account | |
65 | |
66 const char * | |
67 gaim_account_get_username(account) | |
68 Gaim::Account account | |
69 | |
70 const char * | |
71 gaim_account_get_password(account) | |
72 Gaim::Account account | |
73 | |
74 const char * | |
75 gaim_account_get_alias(account) | |
76 Gaim::Account account | |
77 | |
78 const char * | |
79 gaim_account_get_user_info(account) | |
80 Gaim::Account account | |
81 | |
82 const char * | |
83 gaim_account_get_buddy_icon(account) | |
84 Gaim::Account account | |
85 | |
86 const char * | |
87 gaim_account_get_protocol_id(account) | |
88 Gaim::Account account | |
89 | |
90 Gaim::Connection | |
91 gaim_account_get_connection(account) | |
92 Gaim::Account account | |
93 | |
94 gboolean | |
95 gaim_account_get_remember_password(account) | |
96 Gaim::Account account | |
97 | |
98 gboolean | |
99 gaim_account_get_check_mail(account) | |
100 Gaim::Account account | |
101 | |
102 | |
103 MODULE = Gaim::Account PACKAGE = Gaim::Accounts PREFIX = gaim_accounts_ | |
104 | |
105 void | |
106 gaim_accounts_add(account) | |
107 Gaim::Account account | |
108 | |
109 void | |
110 gaim_accounts_remove(account) | |
111 Gaim::Account account | |
112 | |
6595
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
113 Gaim::Account |
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
114 find(name, protocol_id) |
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
115 const char *name |
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
116 const char *protocol_id |
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
117 CODE: |
7176 | 118 RETVAL = gaim_accounts_find(name, protocol_id); |
6595
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
119 OUTPUT: |
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
120 RETVAL |
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
121 |
6551
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
122 void * |
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
123 handle() |
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
124 CODE: |
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
125 RETVAL = gaim_accounts_get_handle(); |
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
126 OUTPUT: |
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
127 RETVAL |
12343e2aaab1
[gaim-migrate @ 7073]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
128 |
6508 | 129 |
130 MODULE = Gaim::Account PACKAGE = Gaim | |
131 | |
132 void | |
133 accounts() | |
134 PREINIT: | |
135 GList *l; | |
136 PPCODE: | |
137 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) | |
138 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Account"))); | |
139 |