Tue, 06 Jan 2009 06:23:46 +0000
Made the Purple::Request::Field(s) functions act more perl-like.
Call the new() functions as Class->new(...) instead of Class::new(...).
| 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 |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
330 | purple_request_field_int_new(clas, 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
|
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 |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
334 | C_ARGS: id, text, default_value |
| 11118 | 335 | |
| 12808 | 336 | 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
|
337 | 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
|
338 | Purple::Request::Field field |
| 11118 | 339 | |
| 12808 | 340 | 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
|
341 | 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
|
342 | Purple::Request::Field field |
| 11118 | 343 | |
| 12808 | 344 | 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
|
345 | 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
|
346 | Purple::Request::Field field |
| 11118 | 347 | int default_value |
| 348 | ||
| 12808 | 349 | 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
|
350 | 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
|
351 | Purple::Request::Field field |
| 11118 | 352 | int value |
| 353 | ||
| 12808 | 354 | 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
|
355 | 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
|
356 | Purple::Request::Field field |
| 11118 | 357 | |
|
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
|
358 | 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
|
359 | PROTOTYPES: ENABLE |
| 11118 | 360 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
361 | 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
|
362 | purple_request_field_label_new(class, id, text) |
| 11118 | 363 | const char *id |
| 364 | 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
|
365 | C_ARGS: id, text |
| 11118 | 366 | |
|
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
|
367 | 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
|
368 | 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
|
369 | |
|
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 | 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
|
371 | 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
|
372 | 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
|
373 | 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
|
374 | 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
|
375 | |
| 12808 | 376 | 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
|
377 | purple_request_field_list_add(field, item, data) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
378 | Purple::Request::Field field |
| 11118 | 379 | const char *item |
| 12808 | 380 | void * data |
| 11118 | 381 | |
| 12808 | 382 | 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
|
383 | 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
|
384 | Purple::Request::Field field |
| 11118 | 385 | const char *item |
| 386 | ||
| 12808 | 387 | 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
|
388 | 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
|
389 | Purple::Request::Field field |
| 11118 | 390 | |
| 391 | 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
|
392 | 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
|
393 | Purple::Request::Field field |
| 11118 | 394 | const char *text |
| 395 | ||
| 396 | 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
|
397 | 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
|
398 | Purple::Request::Field field |
| 11118 | 399 | 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
|
400 | GList *l; |
| 11118 | 401 | 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
|
402 | for (l = purple_request_field_list_get_items(field); l != NULL; l = l->next) { |
| 12892 | 403 | XPUSHs(sv_2mortal(newSVpv(l->data, 0))); |
| 12808 | 404 | } |
| 11118 | 405 | |
| 12808 | 406 | 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
|
407 | 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
|
408 | Purple::Request::Field field |
| 11118 | 409 | |
| 410 | 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
|
411 | 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
|
412 | Purple::Request::Field field |
| 11118 | 413 | 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
|
414 | GList *l; |
| 11118 | 415 | 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
|
416 | for (l = purple_request_field_list_get_selected(field); l != NULL; l = l->next) { |
| 12892 | 417 | XPUSHs(sv_2mortal(newSVpv(l->data, 0))); |
| 12808 | 418 | } |
| 11118 | 419 | |
| 12808 | 420 | 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
|
421 | 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
|
422 | Purple::Request::Field field |
| 11118 | 423 | const char *item |
| 424 | ||
| 12808 | 425 | 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
|
426 | 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
|
427 | Purple::Request::Field field |
| 11118 | 428 | gboolean multi_select |
| 429 | ||
|
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
|
430 | 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
|
431 | 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
|
432 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
433 | 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
|
434 | purple_request_field_new(class, id, text, type) |
| 11118 | 435 | const char *id |
| 436 | 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
|
437 | 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
|
438 | C_ARGS: id, text, type |
| 11118 | 439 | |
| 12808 | 440 | 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
|
441 | 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
|
442 | Purple::Request::Field field |
| 11118 | 443 | const char *label |
| 444 | ||
| 12808 | 445 | 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
|
446 | 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
|
447 | Purple::Request::Field field |
| 11118 | 448 | gboolean required |
| 449 | ||
| 12808 | 450 | 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
|
451 | 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
|
452 | Purple::Request::Field field |
| 11118 | 453 | const char *type_hint |
| 454 | ||
| 12808 | 455 | 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
|
456 | 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
|
457 | Purple::Request::Field field |
| 11118 | 458 | gboolean visible |
| 459 | ||
|
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
|
460 | 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
|
461 | 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
|
462 | |
|
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 | 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
|
464 | 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
|
465 | 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
|
466 | 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
|
467 | 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
|
468 | gboolean multiline |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
469 | 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
|
470 | |
| 11118 | 471 | 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
|
472 | 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
|
473 | Purple::Request::Field field |
| 11118 | 474 | |
| 475 | 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
|
476 | 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
|
477 | Purple::Request::Field field |
| 11118 | 478 | |
| 12808 | 479 | 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
|
480 | 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
|
481 | Purple::Request::Field field |
| 11118 | 482 | |
| 12808 | 483 | 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
|
484 | 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
|
485 | Purple::Request::Field field |
| 11118 | 486 | |
| 12808 | 487 | 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
|
488 | 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
|
489 | Purple::Request::Field field |
| 11118 | 490 | |
| 12808 | 491 | 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
|
492 | 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
|
493 | Purple::Request::Field field |
| 11118 | 494 | const char *default_value |
| 495 | ||
| 12808 | 496 | 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
|
497 | 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
|
498 | Purple::Request::Field field |
| 11118 | 499 | gboolean editable |
| 500 | ||
| 12808 | 501 | 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
|
502 | 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
|
503 | Purple::Request::Field field |
| 11118 | 504 | gboolean masked |
| 505 | ||
| 12808 | 506 | 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
|
507 | 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
|
508 | Purple::Request::Field field |
| 11118 | 509 | const char *value |
| 510 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
511 | MODULE = Purple::Request PACKAGE = Purple::Request::Field::Group PREFIX = purple_request_field_group_ |
| 12808 | 512 | PROTOTYPES: ENABLE |
| 513 | ||
| 514 | 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
|
515 | 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
|
516 | 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
|
517 | Purple::Request::Field field |
| 12808 | 518 | |
| 519 | 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
|
520 | 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
|
521 | Purple::Request::Field::Group group |
| 12808 | 522 | |
| 523 | 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
|
524 | 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
|
525 | Purple::Request::Field::Group group |
| 12808 | 526 | PREINIT: |
| 527 | GList *l; | |
| 528 | 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
|
529 | 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
|
530 | XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Request::Field"))); |
| 12808 | 531 | } |
| 532 | ||
| 533 | 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
|
534 | 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
|
535 | Purple::Request::Field::Group group |
| 12808 | 536 | |
|
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 |
|
25867
d973ecea547b
Made the Purple::Request::Field(s) functions act more perl-like.
Etan Reisner <deryni@pidgin.im>
parents:
23987
diff
changeset
|
538 | purple_request_field_group_new(class, title) |
| 12808 | 539 | 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
|
540 | C_ARGS: title |
| 12808 | 541 | |
|
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
|
542 | 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
|
543 | 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
|
544 | |
|
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 | 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
|
546 | 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
|
547 | 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
|
548 | |
|
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 | 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
|
550 | 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
|
551 | 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
|
552 | |
|
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 | 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
|
554 | 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
|
555 | 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
|
556 | |
|
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::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
|
558 | 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
|
559 | 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
|
560 | |
|
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 | 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
|
562 | 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
|
563 | 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
|
564 | |
|
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 | 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
|
566 | 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
|
567 | 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
|
568 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
569 | MODULE = Purple::Request PACKAGE = Purple::Request::Fields PREFIX = purple_request_fields_ |
| 12808 | 570 | PROTOTYPES: ENABLE |
| 571 | ||
|
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
|
572 | 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
|
573 | 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
|
574 | 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
|
575 | |
| 12808 | 576 | 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
|
577 | 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
|
578 | 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
|
579 | Purple::Request::Field::Group group |
| 11118 | 580 | |
| 12808 | 581 | 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
|
582 | 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
|
583 | Purple::Request::Fields fields |
| 11118 | 584 | |
| 12808 | 585 | 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
|
586 | 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
|
587 | Purple::Request::Fields fields |
| 11118 | 588 | |
| 12808 | 589 | 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
|
590 | 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
|
591 | Purple::Request::Fields fields |
| 11118 | 592 | const char *id |
| 593 | ||
|
15894
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::Account |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
595 | 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
|
596 | Purple::Request::Fields fields |
| 11118 | 597 | const char *id |
| 598 | ||
| 12808 | 599 | 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
|
600 | 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
|
601 | Purple::Request::Fields fields |
| 11118 | 602 | const char *id |
| 603 | ||
| 12808 | 604 | 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
|
605 | 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
|
606 | Purple::Request::Fields fields |
| 11118 | 607 | const char *id |
| 608 | ||
|
15894
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::Field |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
610 | 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
|
611 | Purple::Request::Fields fields |
| 11118 | 612 | const char *id |
| 613 | ||
| 614 | 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
|
615 | 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
|
616 | Purple::Request::Fields fields |
| 11118 | 617 | PREINIT: |
| 12808 | 618 | GList *l; |
| 11118 | 619 | 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
|
620 | 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
|
621 | XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Request::Field::Group"))); |
| 12808 | 622 | } |
| 11118 | 623 | |
| 12808 | 624 | 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
|
625 | 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
|
626 | Purple::Request::Fields fields |
| 11118 | 627 | const char *id |
| 628 | ||
| 629 | 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
|
630 | 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
|
631 | Purple::Request::Fields fields |
| 11118 | 632 | 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
|
633 | GList *l; |
| 11118 | 634 | 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
|
635 | 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
|
636 | XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Request::Field"))); |
| 12808 | 637 | } |
| 11118 | 638 | |
| 639 | 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
|
640 | 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
|
641 | Purple::Request::Fields fields |
| 11118 | 642 | const char *id |
| 643 | ||
| 12808 | 644 | 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
|
645 | 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
|
646 | Purple::Request::Fields fields |
| 11118 | 647 | const char *id |