Sun, 12 May 2013 12:45:52 +0200
Request API: fix integer fields, add bounds to them
| 11118 | 1 | #include "module.h" |
| 2 | ||
| 11589 | 3 | /* This breaks on faceprint's amd64 box |
| 4 | void * | |
| 20692 | 5 | purple_request_action_varg(handle, title, primary, secondary, default_action, user_data, action_count, actions) |
| 11589 | 6 | void * handle |
| 7 | const char *title | |
| 8 | const char *primary | |
| 9 | const char *secondary | |
| 10 | unsigned int default_action | |
| 11 | void *user_data | |
| 12 | size_t action_count | |
| 13 | va_list actions | |
| 14 | */ | |
| 15 | ||
| 16 | ||
| 11170 | 17 | typedef struct { |
|
22839
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
18 | SV *ok_fun; |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
19 | SV *cancel_fun; |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
20 | } PurplePerlRequestData; |
| 11170 | 21 | |
|
22839
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
22 | static void |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
23 | purple_perl_request_data_free(PurplePerlRequestData *ppr) |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
24 | { |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
25 | if (ppr->ok_fun) |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
26 | SvREFCNT_dec(ppr->ok_fun); |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
27 | if (ppr->cancel_fun) |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
28 | SvREFCNT_dec(ppr->cancel_fun); |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
29 | g_free(ppr); |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
30 | } |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
31 | |
| 11170 | 32 | /********************************************************/ |
| 12808 | 33 | /* */ |
| 34 | /* Callback function that calls a perl subroutine */ | |
| 35 | /* */ | |
| 36 | /* The void * field data is being used as a way to hide */ | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
37 | /* the perl sub's name in a PurplePerlRequestData */ |
| 12808 | 38 | /* */ |
| 11170 | 39 | /********************************************************/ |
| 12808 | 40 | static void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
41 | purple_perl_request_ok_cb(void * data, PurpleRequestFields *fields) |
| 12808 | 42 | { |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
43 | PurplePerlRequestData *gpr = (PurplePerlRequestData *)data; |
| 11170 | 44 | |
| 45 | dSP; | |
| 46 | ENTER; | |
| 47 | SAVETMPS; | |
| 48 | PUSHMARK(sp); | |
| 12808 | 49 | |
|
23987
3d41ccd1f8bf
Remove various opaque UiOps functions from the perl loader as they aren't useable.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
50 | XPUSHs(sv_2mortal(purple_perl_bless_object(fields, "Purple::Request::Fields"))); |
| 11170 | 51 | PUTBACK; |
|
22839
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
52 | call_sv(gpr->ok_fun, G_EVAL | G_SCALAR); |
| 11170 | 53 | SPAGAIN; |
| 54 | ||
| 55 | PUTBACK; | |
| 56 | FREETMPS; | |
| 57 | LEAVE; | |
|
14426
8d4f164c4979
[gaim-migrate @ 17070]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
58 | |
|
22839
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
59 | purple_perl_request_data_free(gpr); |
| 11170 | 60 | } |
| 61 | ||
| 12808 | 62 | static void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
63 | purple_perl_request_cancel_cb(void * data, PurpleRequestFields *fields) |
| 12808 | 64 | { |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
65 | PurplePerlRequestData *gpr = (PurplePerlRequestData *)data; |
| 11170 | 66 | |
| 67 | dSP; | |
| 68 | ENTER; | |
| 69 | SAVETMPS; | |
| 70 | PUSHMARK(sp); | |
| 12808 | 71 | |
|
23987
3d41ccd1f8bf
Remove various opaque UiOps functions from the perl loader as they aren't useable.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
72 | XPUSHs(sv_2mortal(purple_perl_bless_object(fields, "Purple::Request::Fields"))); |
| 11170 | 73 | PUTBACK; |
|
22839
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
74 | call_sv(gpr->cancel_fun, G_EVAL | G_SCALAR); |
| 11170 | 75 | SPAGAIN; |
| 76 | ||
| 77 | PUTBACK; | |
| 78 | FREETMPS; | |
| 79 | LEAVE; | |
|
14426
8d4f164c4979
[gaim-migrate @ 17070]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
80 | |
|
22839
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
81 | purple_perl_request_data_free(gpr); |
| 11170 | 82 | } |
| 83 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
84 | MODULE = Purple::Request PACKAGE = Purple::Request PREFIX = purple_request_ |
| 11290 | 85 | PROTOTYPES: ENABLE |
| 11118 | 86 | |
|
16773
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
87 | BOOT: |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
88 | { |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
89 | HV *request_stash = gv_stashpv("Purple::RequestType", 1); |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
90 | HV *request_field_stash = gv_stashpv("Purple::RequestFieldType", 1); |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
91 | |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
92 | static const constiv *civ, request_const_iv[] = { |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
93 | #define const_iv(name) {#name, (IV)PURPLE_REQUEST_##name} |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
94 | const_iv(INPUT), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
95 | const_iv(CHOICE), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
96 | const_iv(ACTION), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
97 | const_iv(FIELDS), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
98 | const_iv(FILE), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
99 | const_iv(FOLDER), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
100 | }; |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
101 | static const constiv request_field_const_iv[] = { |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
102 | #undef const_iv |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
103 | #define const_iv(name) {#name, (IV)PURPLE_REQUEST_FIELD_##name} |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
104 | const_iv(NONE), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
105 | const_iv(STRING), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
106 | const_iv(INTEGER), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
107 | const_iv(BOOLEAN), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
108 | const_iv(CHOICE), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
109 | const_iv(LIST), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
110 | const_iv(LABEL), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
111 | const_iv(IMAGE), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
112 | const_iv(ACCOUNT), |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
113 | }; |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
114 | |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
115 | for (civ = request_const_iv + sizeof(request_const_iv) / sizeof(request_const_iv[0]); civ-- > request_const_iv; ) |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
116 | newCONSTSUB(request_stash, (char *)civ->name, newSViv(civ->iv)); |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
117 | |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
118 | for (civ = request_field_const_iv + sizeof(request_field_const_iv) / sizeof(request_field_const_iv[0]); civ-- > request_field_const_iv; ) |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
119 | newCONSTSUB(request_field_stash, (char *)civ->name, newSViv(civ->iv)); |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
120 | } |
|
e1171eb45f07
Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents:
16490
diff
changeset
|
121 | |
| 11118 | 122 | void * |
| 20692 | 123 | purple_request_input(handle, title, primary, secondary, default_value, multiline, masked, hint, ok_text, ok_cb, cancel_text, cancel_cb) |
| 124 | Purple::Plugin handle | |
| 125 | const char * title | |
| 126 | const char * primary | |
| 127 | const char * secondary | |
| 128 | const char * default_value | |
| 129 | gboolean multiline | |
| 130 | gboolean masked | |
| 131 | gchar * hint | |
| 132 | const char * ok_text | |
| 133 | SV * ok_cb | |
| 134 | const char * cancel_text | |
| 135 | SV * cancel_cb | |
| 136 | CODE: | |
| 137 | PurplePerlRequestData *gpr; | |
| 138 | char *basename; | |
| 139 | ||
| 140 | basename = g_path_get_basename(handle->path); | |
| 141 | purple_perl_normalize_script_name(basename); | |
| 142 | gpr = g_new(PurplePerlRequestData, 1); | |
|
22839
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
143 | gpr->ok_fun = purple_perl_sv_from_fun(handle, ok_cb); |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
144 | gpr->cancel_fun = purple_perl_sv_from_fun(handle, cancel_cb); |
| 20692 | 145 | g_free(basename); |
| 146 | ||
|
21653
621c47778132
merge of '73ae9aeda3c58fbf8437421da68d19d06f93e686'
Evan Schoenberg <evands@pidgin.im>
parents:
21236
diff
changeset
|
147 | RETVAL = purple_request_input(handle, title, primary, secondary, default_value, multiline, masked, hint, ok_text, G_CALLBACK(purple_perl_request_ok_cb), cancel_text, G_CALLBACK(purple_perl_request_cancel_cb), NULL, NULL, NULL, gpr); |
| 11290 | 148 | OUTPUT: |
| 149 | RETVAL | |
| 12808 | 150 | |
| 11118 | 151 | void * |
| 20692 | 152 | purple_request_file(handle, title, filename, savedialog, ok_cb, cancel_cb) |
| 153 | Purple::Plugin handle | |
| 154 | const char * title | |
| 155 | const char * filename | |
| 156 | gboolean savedialog | |
| 157 | SV * ok_cb | |
| 158 | SV * cancel_cb | |
| 159 | CODE: | |
| 160 | PurplePerlRequestData *gpr; | |
| 161 | char *basename; | |
| 162 | ||
| 163 | basename = g_path_get_basename(handle->path); | |
| 164 | purple_perl_normalize_script_name(basename); | |
| 165 | gpr = g_new(PurplePerlRequestData, 1); | |
|
22839
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
166 | gpr->ok_fun = purple_perl_sv_from_fun(handle, ok_cb); |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
167 | gpr->cancel_fun = purple_perl_sv_from_fun(handle, cancel_cb); |
| 20692 | 168 | g_free(basename); |
| 169 | ||
|
21653
621c47778132
merge of '73ae9aeda3c58fbf8437421da68d19d06f93e686'
Evan Schoenberg <evands@pidgin.im>
parents:
21236
diff
changeset
|
170 | RETVAL = purple_request_file(handle, title, filename, savedialog, G_CALLBACK(purple_perl_request_ok_cb), G_CALLBACK(purple_perl_request_cancel_cb), NULL, NULL, NULL, gpr); |
| 11290 | 171 | OUTPUT: |
| 172 | RETVAL | |
| 11118 | 173 | |
| 11170 | 174 | void * |
| 20692 | 175 | purple_request_fields(handle, title, primary, secondary, fields, ok_text, ok_cb, cancel_text, cancel_cb) |
| 176 | Purple::Plugin handle | |
| 177 | const char * title | |
| 178 | const char * primary | |
| 179 | const char * secondary | |
| 180 | Purple::Request::Fields fields | |
| 181 | const char * ok_text | |
| 182 | SV * ok_cb | |
| 183 | const char * cancel_text | |
| 184 | SV * cancel_cb | |
| 185 | CODE: | |
| 186 | PurplePerlRequestData *gpr; | |
| 187 | char *basename; | |
| 188 | ||
| 189 | basename = g_path_get_basename(handle->path); | |
| 190 | purple_perl_normalize_script_name(basename); | |
| 191 | gpr = g_new(PurplePerlRequestData, 1); | |
|
22839
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
192 | gpr->ok_fun = purple_perl_sv_from_fun(handle, ok_cb); |
|
3ee4247ebbbd
Use the same fix for Purple::Util::fetch_url (from 4b6378d5e) for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21653
diff
changeset
|
193 | gpr->cancel_fun = purple_perl_sv_from_fun(handle, cancel_cb); |
| 20692 | 194 | g_free(basename); |
| 195 | ||
|
21653
621c47778132
merge of '73ae9aeda3c58fbf8437421da68d19d06f93e686'
Evan Schoenberg <evands@pidgin.im>
parents:
21236
diff
changeset
|
196 | RETVAL = purple_request_fields(handle, title, primary, secondary, fields, ok_text, G_CALLBACK(purple_perl_request_ok_cb), cancel_text, G_CALLBACK(purple_perl_request_cancel_cb), NULL, NULL, NULL, gpr); |
| 11170 | 197 | OUTPUT: |
| 198 | RETVAL | |
| 199 | ||
| 11589 | 200 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
201 | purple_request_close(type, uihandle) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
202 | Purple::RequestType type |
| 11589 | 203 | void * uihandle |
| 11118 | 204 | |
| 11589 | 205 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
206 | purple_request_close_with_handle(handle) |
| 11589 | 207 | void * handle |
| 11118 | 208 | |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
209 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
210 | MODULE = Purple::Request PACKAGE = Purple::Request::Field PREFIX = purple_request_field_ |
| 12808 | 211 | PROTOTYPES: ENABLE |
| 212 | ||
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
213 | Purple::Request::Field |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
214 | purple_request_field_account_new(class, id, text, account = NULL) |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
215 | const char *id |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
216 | const char *text |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
217 | Purple::Account account |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
218 | C_ARGS: id, text, account |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
219 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
220 | Purple::Account |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
221 | purple_request_field_account_get_default_value(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
222 | Purple::Request::Field field |
| 11118 | 223 | |
| 11130 | 224 | IV |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
225 | purple_request_field_account_get_filter(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
226 | Purple::Request::Field field |
| 11130 | 227 | CODE: |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
228 | RETVAL = PTR2IV(purple_request_field_account_get_filter(field)); |
| 11130 | 229 | OUTPUT: |
| 230 | RETVAL | |
| 11118 | 231 | |
| 12808 | 232 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
233 | purple_request_field_account_get_show_all(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
234 | Purple::Request::Field field |
| 11118 | 235 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
236 | Purple::Account |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
237 | purple_request_field_account_get_value(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
238 | Purple::Request::Field field |
| 11118 | 239 | |
| 12808 | 240 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
241 | purple_request_field_account_set_default_value(field, default_value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
242 | Purple::Request::Field field |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
243 | Purple::Account default_value |
| 11118 | 244 | |
| 12808 | 245 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
246 | purple_request_field_account_set_show_all(field, show_all) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
247 | Purple::Request::Field field |
| 11118 | 248 | gboolean show_all |
| 249 | ||
| 12808 | 250 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
251 | purple_request_field_account_set_value(field, value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
252 | Purple::Request::Field field |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
253 | Purple::Account value |
| 11118 | 254 | |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
255 | MODULE = Purple::Request PACKAGE = Purple::Request::Field PREFIX = purple_request_field_ |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
256 | PROTOTYPES: ENABLE |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
257 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
258 | Purple::Request::Field |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
259 | purple_request_field_bool_new(class, id, text, default_value = TRUE) |
| 20695 | 260 | const char *id |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
261 | const char *text |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
262 | gboolean default_value |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
263 | C_ARGS: id, text, default_value |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
264 | |
| 12808 | 265 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
266 | purple_request_field_bool_get_default_value(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
267 | Purple::Request::Field field |
| 11118 | 268 | |
| 12808 | 269 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
270 | purple_request_field_bool_get_value(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
271 | Purple::Request::Field field |
| 11118 | 272 | |
| 12808 | 273 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
274 | purple_request_field_bool_set_default_value(field, default_value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
275 | Purple::Request::Field field |
| 11118 | 276 | gboolean default_value |
| 277 | ||
| 12808 | 278 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
279 | purple_request_field_bool_set_value(field, value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
280 | Purple::Request::Field field |
| 11118 | 281 | gboolean value |
| 282 | ||
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
283 | MODULE = Purple::Request PACKAGE = Purple::Request::Field PREFIX = purple_request_field_ |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
284 | PROTOTYPES: ENABLE |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
285 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
286 | Purple::Request::Field |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
287 | purple_request_field_choice_new(class, id, text, default_value = 0) |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
288 | const char *id |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
289 | const char *text |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
290 | int default_value |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
291 | C_ARGS: id, text, default_value |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
292 | |
| 12808 | 293 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
294 | purple_request_field_choice_add(field, label) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
295 | Purple::Request::Field field |
| 11118 | 296 | const char *label |
| 297 | ||
| 12808 | 298 | int |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
299 | purple_request_field_choice_get_default_value(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
300 | Purple::Request::Field field |
| 11118 | 301 | |
| 302 | void | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
303 | purple_request_field_choice_get_labels(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
304 | Purple::Request::Field field |
| 11118 | 305 | PREINIT: |
| 12808 | 306 | GList *l; |
| 11118 | 307 | PPCODE: |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
308 | for (l = purple_request_field_choice_get_labels(field); l != NULL; l = l->next) { |
| 12892 | 309 | XPUSHs(sv_2mortal(newSVpv(l->data, 0))); |
| 12808 | 310 | } |
| 11118 | 311 | |
| 12808 | 312 | int |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
313 | purple_request_field_choice_get_value(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
314 | Purple::Request::Field field |
| 11118 | 315 | |
| 12808 | 316 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
317 | purple_request_field_choice_set_default_value(field, default_value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
318 | Purple::Request::Field field |
| 11118 | 319 | int default_value |
| 320 | ||
| 12808 | 321 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
322 | purple_request_field_choice_set_value(field, value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
323 | Purple::Request::Field field |
| 11118 | 324 | int value |
| 325 | ||
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
326 | MODULE = Purple::Request PACKAGE = Purple::Request::Field PREFIX = purple_request_field_ |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
327 | PROTOTYPES: ENABLE |
| 11118 | 328 | |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
329 | Purple::Request::Field |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33873
diff
changeset
|
330 | purple_request_field_int_new(clas, id, text, default_value = 0, lower_bound = INT_MIN, upper_bound = INT_MAX) |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
331 | const char *id |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
332 | const char *text |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
333 | int default_value |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33873
diff
changeset
|
334 | int lower_bound |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33873
diff
changeset
|
335 | int upper_bound |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33873
diff
changeset
|
336 | C_ARGS: id, text, default_value, lower_bound, upper_bound |
| 11118 | 337 | |
| 12808 | 338 | int |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
339 | purple_request_field_int_get_default_value(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
340 | Purple::Request::Field field |
| 11118 | 341 | |
| 12808 | 342 | int |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
343 | purple_request_field_int_get_value(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
344 | Purple::Request::Field field |
| 11118 | 345 | |
| 12808 | 346 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
347 | purple_request_field_int_set_default_value(field, default_value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
348 | Purple::Request::Field field |
| 11118 | 349 | int default_value |
| 350 | ||
| 12808 | 351 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
352 | purple_request_field_int_set_value(field, value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
353 | Purple::Request::Field field |
| 11118 | 354 | int value |
| 355 | ||
| 12808 | 356 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
357 | purple_request_field_is_required(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
358 | Purple::Request::Field field |
| 11118 | 359 | |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
360 | MODULE = Purple::Request PACKAGE = Purple::Request::Field PREFIX = purple_request_field_ |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
361 | PROTOTYPES: ENABLE |
| 11118 | 362 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
363 | Purple::Request::Field |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
364 | purple_request_field_label_new(class, id, text) |
| 11118 | 365 | const char *id |
| 366 | const char *text | |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
367 | C_ARGS: id, text |
| 11118 | 368 | |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
369 | MODULE = Purple::Request PACKAGE = Purple::Request::Field PREFIX = purple_request_field_ |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
370 | PROTOTYPES: ENABLE |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
371 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
372 | Purple::Request::Field |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
373 | purple_request_field_list_new(class, id, text) |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
374 | const char *id |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
375 | const char *text |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
376 | C_ARGS: id, text |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
377 | |
| 12808 | 378 | void |
|
24900
a19d983918c2
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@pidgin.im>
parents:
23987
diff
changeset
|
379 | purple_request_field_list_add_icon(field, item, icon_path, data) |
|
a19d983918c2
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@pidgin.im>
parents:
23987
diff
changeset
|
380 | Purple::Request::Field field |
|
a19d983918c2
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@pidgin.im>
parents:
23987
diff
changeset
|
381 | const char *item |
|
a19d983918c2
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@pidgin.im>
parents:
23987
diff
changeset
|
382 | const char *icon_path |
|
a19d983918c2
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@pidgin.im>
parents:
23987
diff
changeset
|
383 | void * data |
|
a19d983918c2
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@pidgin.im>
parents:
23987
diff
changeset
|
384 | |
|
a19d983918c2
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@pidgin.im>
parents:
23987
diff
changeset
|
385 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
386 | purple_request_field_list_add_selected(field, item) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
387 | Purple::Request::Field field |
| 11118 | 388 | const char *item |
| 389 | ||
| 12808 | 390 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
391 | purple_request_field_list_clear_selected(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
392 | Purple::Request::Field field |
| 11118 | 393 | |
| 394 | void * | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
395 | purple_request_field_list_get_data(field, text) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
396 | Purple::Request::Field field |
| 11118 | 397 | const char *text |
| 398 | ||
| 399 | void | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
400 | purple_request_field_list_get_items(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
401 | Purple::Request::Field field |
| 11118 | 402 | PREINIT: |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16774
diff
changeset
|
403 | GList *l; |
| 11118 | 404 | PPCODE: |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
405 | for (l = purple_request_field_list_get_items(field); l != NULL; l = l->next) { |
| 12892 | 406 | XPUSHs(sv_2mortal(newSVpv(l->data, 0))); |
| 12808 | 407 | } |
| 11118 | 408 | |
| 12808 | 409 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
410 | purple_request_field_list_get_multi_select(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
411 | Purple::Request::Field field |
| 11118 | 412 | |
| 413 | void | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
414 | purple_request_field_list_get_selected(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
415 | Purple::Request::Field field |
| 11118 | 416 | PREINIT: |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16774
diff
changeset
|
417 | GList *l; |
| 11118 | 418 | PPCODE: |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
419 | for (l = purple_request_field_list_get_selected(field); l != NULL; l = l->next) { |
| 12892 | 420 | XPUSHs(sv_2mortal(newSVpv(l->data, 0))); |
| 12808 | 421 | } |
| 11118 | 422 | |
| 12808 | 423 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
424 | purple_request_field_list_is_selected(field, item) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
425 | Purple::Request::Field field |
| 11118 | 426 | const char *item |
| 427 | ||
| 12808 | 428 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
429 | purple_request_field_list_set_multi_select(field, multi_select) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
430 | Purple::Request::Field field |
| 11118 | 431 | gboolean multi_select |
| 432 | ||
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
433 | MODULE = Purple::Request PACKAGE = Purple::Request::Field PREFIX = purple_request_field_ |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
434 | PROTOTYPES: ENABLE |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
435 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
436 | Purple::Request::Field |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
437 | purple_request_field_new(class, id, text, type) |
| 11118 | 438 | const char *id |
| 439 | const char *text | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
440 | Purple::RequestFieldType type |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
441 | C_ARGS: id, text, type |
| 11118 | 442 | |
| 12808 | 443 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
444 | purple_request_field_set_label(field, label) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
445 | Purple::Request::Field field |
| 11118 | 446 | const char *label |
| 447 | ||
| 12808 | 448 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
449 | purple_request_field_set_required(field, required) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
450 | Purple::Request::Field field |
| 11118 | 451 | gboolean required |
| 452 | ||
| 12808 | 453 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
454 | purple_request_field_set_type_hint(field, type_hint) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
455 | Purple::Request::Field field |
| 11118 | 456 | const char *type_hint |
| 457 | ||
| 12808 | 458 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
459 | purple_request_field_set_visible(field, visible) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
460 | Purple::Request::Field field |
| 11118 | 461 | gboolean visible |
| 462 | ||
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
463 | MODULE = Purple::Request PACKAGE = Purple::Request::Field PREFIX = purple_request_field_ |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
464 | PROTOTYPES: ENABLE |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
465 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
466 | Purple::Request::Field |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
467 | purple_request_field_string_new(class, id, text, default_value, multiline) |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
468 | const char *id |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
469 | const char *text |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
470 | const char *default_value |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
471 | gboolean multiline |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
472 | C_ARGS: id, text, default_value, multiline |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
473 | |
| 11118 | 474 | const char * |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
475 | purple_request_field_string_get_default_value(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
476 | Purple::Request::Field field |
| 11118 | 477 | |
| 478 | const char * | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
479 | purple_request_field_string_get_value(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
480 | Purple::Request::Field field |
| 11118 | 481 | |
| 12808 | 482 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
483 | purple_request_field_string_is_editable(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
484 | Purple::Request::Field field |
| 11118 | 485 | |
| 12808 | 486 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
487 | purple_request_field_string_is_masked(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
488 | Purple::Request::Field field |
| 11118 | 489 | |
| 12808 | 490 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
491 | purple_request_field_string_is_multiline(field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
492 | Purple::Request::Field field |
| 11118 | 493 | |
| 12808 | 494 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
495 | purple_request_field_string_set_default_value(field, default_value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
496 | Purple::Request::Field field |
| 11118 | 497 | const char *default_value |
| 498 | ||
| 12808 | 499 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
500 | purple_request_field_string_set_editable(field, editable) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
501 | Purple::Request::Field field |
| 11118 | 502 | gboolean editable |
| 503 | ||
| 12808 | 504 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
505 | purple_request_field_string_set_masked(field, masked) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
506 | Purple::Request::Field field |
| 11118 | 507 | gboolean masked |
| 508 | ||
| 12808 | 509 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
510 | purple_request_field_string_set_value(field, value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
511 | Purple::Request::Field field |
| 11118 | 512 | const char *value |
| 513 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
514 | MODULE = Purple::Request PACKAGE = Purple::Request::Field::Group PREFIX = purple_request_field_group_ |
| 12808 | 515 | PROTOTYPES: ENABLE |
| 516 | ||
| 517 | void | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
518 | purple_request_field_group_add_field(group, field) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
519 | Purple::Request::Field::Group group |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
520 | Purple::Request::Field field |
| 12808 | 521 | |
| 522 | void | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
523 | purple_request_field_group_destroy(group) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
524 | Purple::Request::Field::Group group |
| 12808 | 525 | |
| 526 | void | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
527 | purple_request_field_group_get_fields(group) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
528 | Purple::Request::Field::Group group |
| 12808 | 529 | PREINIT: |
| 530 | GList *l; | |
| 531 | PPCODE: | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
532 | for (l = purple_request_field_group_get_fields(group); l != NULL; l = l->next) { |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
533 | XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Request::Field"))); |
| 12808 | 534 | } |
| 535 | ||
| 536 | const char * | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
537 | purple_request_field_group_get_title(group) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
538 | Purple::Request::Field::Group group |
| 12808 | 539 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
540 | Purple::Request::Field::Group |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
541 | purple_request_field_group_new(class, title) |
| 12808 | 542 | const char *title |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
543 | C_ARGS: title |
| 12808 | 544 | |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
545 | MODULE = Purple::Request PACKAGE = Purple::Request::Field PREFIX = purple_request_field_ |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
546 | PROTOTYPES: ENABLE |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
547 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
548 | void |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
549 | purple_request_field_destroy(field) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
550 | Purple::Request::Field field |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
551 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
552 | const char * |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
553 | purple_request_field_get_id(field) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
554 | Purple::Request::Field field |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
555 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
556 | const char * |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
557 | purple_request_field_get_label(field) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
558 | Purple::Request::Field field |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
559 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
560 | Purple::RequestFieldType |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
561 | purple_request_field_get_type(field) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
562 | Purple::Request::Field field |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
563 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
564 | const char * |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
565 | purple_request_field_get_type_hint(field) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
566 | Purple::Request::Field field |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
567 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
568 | gboolean |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
569 | purple_request_field_is_visible(field) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
570 | Purple::Request::Field field |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
571 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
572 | MODULE = Purple::Request PACKAGE = Purple::Request::Fields PREFIX = purple_request_fields_ |
| 12808 | 573 | PROTOTYPES: ENABLE |
| 574 | ||
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
575 | Purple::Request::Fields |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
576 | purple_request_fields_new(class) |
|
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
577 | C_ARGS: /* void */ |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
16773
diff
changeset
|
578 | |
| 12808 | 579 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
580 | purple_request_fields_add_group(fields, group) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
581 | Purple::Request::Fields fields |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
582 | Purple::Request::Field::Group group |
| 11118 | 583 | |
| 12808 | 584 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
585 | purple_request_fields_all_required_filled(fields) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
586 | Purple::Request::Fields fields |
| 11118 | 587 | |
| 12808 | 588 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
589 | purple_request_fields_destroy(fields) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
590 | Purple::Request::Fields fields |
| 11118 | 591 | |
| 12808 | 592 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
593 | purple_request_fields_exists(fields, id) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
594 | Purple::Request::Fields fields |
| 11118 | 595 | const char *id |
| 596 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
597 | Purple::Account |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
598 | purple_request_fields_get_account(fields, id) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
599 | Purple::Request::Fields fields |
| 11118 | 600 | const char *id |
| 601 | ||
| 12808 | 602 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
603 | purple_request_fields_get_bool(fields, id) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
604 | Purple::Request::Fields fields |
| 11118 | 605 | const char *id |
| 606 | ||
| 12808 | 607 | int |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
608 | purple_request_fields_get_choice(fields, id) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
609 | Purple::Request::Fields fields |
| 11118 | 610 | const char *id |
| 611 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
612 | Purple::Request::Field |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
613 | purple_request_fields_get_field(fields, id) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
614 | Purple::Request::Fields fields |
| 11118 | 615 | const char *id |
| 616 | ||
| 617 | void | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
618 | purple_request_fields_get_groups(fields) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
619 | Purple::Request::Fields fields |
| 11118 | 620 | PREINIT: |
| 12808 | 621 | GList *l; |
| 11118 | 622 | PPCODE: |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
623 | for (l = purple_request_fields_get_groups(fields); l != NULL; l = l->next) { |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
624 | XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Request::Field::Group"))); |
| 12808 | 625 | } |
| 11118 | 626 | |
| 12808 | 627 | int |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
628 | purple_request_fields_get_integer(fields, id) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
629 | Purple::Request::Fields fields |
| 11118 | 630 | const char *id |
| 631 | ||
| 632 | void | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
633 | purple_request_fields_get_required(fields) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
634 | Purple::Request::Fields fields |
| 11118 | 635 | PREINIT: |
|
33873
21b6ce1aae13
win32: tidy up perl package, fix warnings
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32438
diff
changeset
|
636 | const GList *l; |
| 11118 | 637 | PPCODE: |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
638 | for (l = purple_request_fields_get_required(fields); l != NULL; l = l->next) { |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
639 | XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Request::Field"))); |
| 12808 | 640 | } |
| 11118 | 641 | |
| 642 | const char * | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
643 | purple_request_fields_get_string(fields, id) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
644 | Purple::Request::Fields fields |
| 11118 | 645 | const char *id |
| 646 | ||
| 12808 | 647 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
648 | purple_request_fields_is_field_required(fields, id) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
649 | Purple::Request::Fields fields |
| 11118 | 650 | const char *id |