Wed, 26 Jun 2013 03:08:58 +0530
Begun adding GObject code to conversation sources
| 11118 | 1 | #include "module.h" |
| 2 | ||
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
3 | static void markup_find_tag_foreach(GQuark key_id, char *data, HV *hv) { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
4 | const char *key = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
5 | key = g_quark_to_string(key_id); |
|
33892
ef97228bc5f0
Fix most of warnings for gtk2 and linux
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33461
diff
changeset
|
6 | if (hv_store(hv, key, strlen(key), newSVpv(data, 0), 0) == NULL) |
|
ef97228bc5f0
Fix most of warnings for gtk2 and linux
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33461
diff
changeset
|
7 | purple_debug_error("perl", "hv_store failed\n"); |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
8 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
9 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
10 | MODULE = Purple::Util PACKAGE = Purple::Util PREFIX = purple_ |
| 12783 | 11 | PROTOTYPES: ENABLE |
| 11290 | 12 | |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
13 | gboolean |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
14 | purple_running_gnome() |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
15 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
16 | gboolean |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
17 | purple_running_kde() |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
18 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
19 | gboolean |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
20 | purple_running_osx() |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
21 | |
| 12783 | 22 | 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
|
23 | purple_build_dir(path, mode) |
| 11118 | 24 | const char *path |
| 25 | int mode | |
| 26 | ||
| 12783 | 27 | 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
|
28 | purple_email_is_valid(address) |
| 11118 | 29 | const char *address |
| 30 | ||
| 31 | 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
|
32 | purple_escape_filename(str) |
| 11118 | 33 | const char *str |
| 34 | ||
|
15165
0ff631dfbbca
[gaim-migrate @ 17889]
Daniel Atallah <datallah@pidgin.im>
parents:
14426
diff
changeset
|
35 | gchar_own * |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
36 | purple_fd_get_ip(fd) |
| 11118 | 37 | int fd |
| 38 | ||
| 39 | const gchar * | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
40 | purple_home_dir() |
| 11118 | 41 | |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
42 | gchar_own* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
43 | purple_message_meify(SV *msg) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
44 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
45 | char *message = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
46 | gboolean ret; |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
25384
diff
changeset
|
47 | gsize len; |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
48 | CODE: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
49 | message = SvPV(msg, len); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
50 | message = g_strndup(message, len); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
51 | ret = purple_message_meify(message, len); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
52 | if(ret) { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
53 | /* message will get g_free()'d later on, since RETVAL is gchar_own* */ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
54 | RETVAL = message; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
55 | } else { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
56 | RETVAL = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
57 | g_free(message); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
58 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
59 | OUTPUT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
60 | RETVAL |
| 11118 | 61 | |
| 62 | FILE * | |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
63 | purple_mkstemp(OUTLIST gchar_own *path, binary) |
| 11118 | 64 | gboolean binary |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
65 | PROTOTYPE: $ |
| 11118 | 66 | |
| 67 | 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
|
68 | purple_normalize(account, str) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
69 | Purple::Account account |
| 11118 | 70 | const char *str |
| 71 | ||
| 12783 | 72 | 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
|
73 | purple_program_is_valid(program) |
| 11118 | 74 | const char *program |
| 75 | ||
|
15165
0ff631dfbbca
[gaim-migrate @ 17889]
Daniel Atallah <datallah@pidgin.im>
parents:
14426
diff
changeset
|
76 | gchar_own * |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
77 | purple_strdup_withhtml(src) |
| 11118 | 78 | const gchar *src |
| 79 | ||
|
15165
0ff631dfbbca
[gaim-migrate @ 17889]
Daniel Atallah <datallah@pidgin.im>
parents:
14426
diff
changeset
|
80 | gchar_own * |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
81 | purple_text_strip_mnemonic(in) |
| 11118 | 82 | const char *in |
| 83 | ||
| 12783 | 84 | time_t |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
85 | purple_time_build(year, month, day, hour, min, sec) |
| 11118 | 86 | int year |
| 87 | int month | |
| 88 | int day | |
| 89 | int hour | |
| 90 | int min | |
| 91 | int sec | |
| 92 | ||
| 93 | 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
|
94 | purple_time_format(tm) |
|
13105
8f9c66e4af87
[gaim-migrate @ 15466]
Richard Laager <rlaager@pidgin.im>
parents:
13033
diff
changeset
|
95 | const struct tm *tm |
|
8f9c66e4af87
[gaim-migrate @ 15466]
Richard Laager <rlaager@pidgin.im>
parents:
13033
diff
changeset
|
96 | |
|
8f9c66e4af87
[gaim-migrate @ 15466]
Richard Laager <rlaager@pidgin.im>
parents:
13033
diff
changeset
|
97 | 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
|
98 | purple_unescape_filename(str) |
| 11118 | 99 | const char *str |
| 100 | ||
|
15165
0ff631dfbbca
[gaim-migrate @ 17889]
Daniel Atallah <datallah@pidgin.im>
parents:
14426
diff
changeset
|
101 | gchar_own * |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
102 | purple_unescape_html(html) |
| 11118 | 103 | const char *html |
| 104 | ||
| 105 | 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
|
106 | purple_url_decode(str) |
| 11118 | 107 | const char *str |
| 108 | ||
| 109 | 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
|
110 | purple_url_encode(str) |
| 11118 | 111 | const char *str |
| 112 | ||
| 113 | 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
|
114 | purple_user_dir() |
| 11118 | 115 | |
|
13105
8f9c66e4af87
[gaim-migrate @ 15466]
Richard Laager <rlaager@pidgin.im>
parents:
13033
diff
changeset
|
116 | 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
|
117 | purple_utf8_strftime(const char *format, const struct tm *tm); |
|
13105
8f9c66e4af87
[gaim-migrate @ 15466]
Richard Laager <rlaager@pidgin.im>
parents:
13033
diff
changeset
|
118 | |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
119 | gboolean |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
120 | purple_utf8_has_word(haystack, needle) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
121 | const char* haystack |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
122 | const char* needle |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
123 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
124 | gchar_own* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
125 | purple_utf8_ncr_decode(in) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
126 | const char* in |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
127 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
128 | gchar_own* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
129 | purple_utf8_ncr_encode(in) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
130 | const char* in |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
131 | |
|
23983
586866581434
Remove a bunch of *_init() and *_uninit() functions that don't make sense for
Daniel Atallah <datallah@pidgin.im>
parents:
23982
diff
changeset
|
132 | gchar_own* |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
133 | purple_utf8_salvage(str) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
134 | const char* str |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
135 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
136 | int |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
137 | purple_utf8_strcasecmp(a, b) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
138 | const char* a |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
139 | const char* b |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
140 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
141 | gchar_own* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
142 | purple_utf8_try_convert(str) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
143 | const char* str |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
144 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
145 | gboolean |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
146 | purple_ip_address_is_valid(ip) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
147 | const char* ip |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
148 | |
|
32597
4918c93aef88
purple_ip_address_is_valid() now checks for an IPv4 or IPv6 address.
Andrew Victor <andrew.victor@mxit.com>
parents:
30857
diff
changeset
|
149 | gboolean |
|
4918c93aef88
purple_ip_address_is_valid() now checks for an IPv4 or IPv6 address.
Andrew Victor <andrew.victor@mxit.com>
parents:
30857
diff
changeset
|
150 | purple_ipv4_address_is_valid(ip) |
|
4918c93aef88
purple_ip_address_is_valid() now checks for an IPv4 or IPv6 address.
Andrew Victor <andrew.victor@mxit.com>
parents:
30857
diff
changeset
|
151 | const char* ip |
|
4918c93aef88
purple_ip_address_is_valid() now checks for an IPv4 or IPv6 address.
Andrew Victor <andrew.victor@mxit.com>
parents:
30857
diff
changeset
|
152 | |
|
4918c93aef88
purple_ip_address_is_valid() now checks for an IPv4 or IPv6 address.
Andrew Victor <andrew.victor@mxit.com>
parents:
30857
diff
changeset
|
153 | gboolean |
|
4918c93aef88
purple_ip_address_is_valid() now checks for an IPv4 or IPv6 address.
Andrew Victor <andrew.victor@mxit.com>
parents:
30857
diff
changeset
|
154 | purple_ipv6_address_is_valid(ip) |
|
4918c93aef88
purple_ip_address_is_valid() now checks for an IPv4 or IPv6 address.
Andrew Victor <andrew.victor@mxit.com>
parents:
30857
diff
changeset
|
155 | const char* ip |
|
4918c93aef88
purple_ip_address_is_valid() now checks for an IPv4 or IPv6 address.
Andrew Victor <andrew.victor@mxit.com>
parents:
30857
diff
changeset
|
156 | |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
157 | const char* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
158 | purple_normalize_nocase(account, str) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
159 | Purple::Account account |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
160 | const char* str |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
161 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
162 | const gchar* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
163 | purple_gai_strerror(errnum) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
164 | gint errnum |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
165 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
166 | void |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
167 | purple_got_protocol_handler_uri(uri) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
168 | const char* uri |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
169 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
170 | gchar_own* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
171 | purple_base16_encode(const guchar *data, gsize length(data)) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
172 | PROTOTYPE: $ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
173 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
174 | gchar_own* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
175 | purple_base16_encode_chunked(const guchar *data, gsize length(data)) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
176 | PROTOTYPE: $ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
177 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
178 | gchar_own* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
179 | purple_base64_encode(const guchar *data, gsize length(data)) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
180 | PROTOTYPE: $ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
181 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
182 | void |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
183 | purple_restore_default_signal_handlers() |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
184 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
185 | SV * |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
186 | purple_base16_decode(str) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
187 | const char* str |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
188 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
189 | gsize len; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
190 | guchar *ret; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
191 | CODE: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
192 | ret = purple_base16_decode(str, &len); |
|
30857
1a7e2da2ab01
Fix for CVE-2010-3711. Properly validate the return value from
Daniel Atallah <datallah@pidgin.im>
parents:
27158
diff
changeset
|
193 | if(ret && len > 0) { |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
25384
diff
changeset
|
194 | RETVAL = newSVpv((gchar *)ret, len); |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
195 | } else { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
196 | g_free(ret); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
197 | XSRETURN_UNDEF; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
198 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
199 | g_free(ret); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
200 | OUTPUT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
201 | RETVAL |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
202 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
203 | SV* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
204 | purple_base64_decode(str) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
205 | const char* str |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
206 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
207 | gsize len; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
208 | guchar *ret; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
209 | CODE: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
210 | ret = purple_base64_decode(str, &len); |
|
30857
1a7e2da2ab01
Fix for CVE-2010-3711. Properly validate the return value from
Daniel Atallah <datallah@pidgin.im>
parents:
27158
diff
changeset
|
211 | if(ret && len > 0) { |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
25384
diff
changeset
|
212 | RETVAL = newSVpv((gchar *)ret, len); |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
213 | } else { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
214 | g_free(ret); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
215 | XSRETURN_UNDEF; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
216 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
217 | g_free(ret); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
218 | OUTPUT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
219 | RETVAL |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
220 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
221 | SV* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
222 | purple_quotedp_decode(str) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
223 | const char* str |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
224 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
225 | gsize len; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
226 | guchar *ret; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
227 | CODE: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
228 | ret = purple_quotedp_decode(str, &len); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
229 | if(len) { |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
25384
diff
changeset
|
230 | RETVAL = newSVpv((gchar *)ret, len); |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
231 | } else { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
232 | g_free(ret); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
233 | XSRETURN_UNDEF; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
234 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
235 | g_free(ret); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
236 | OUTPUT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
237 | RETVAL |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
238 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
239 | void |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
240 | purple_uri_list_extract_uris(uri_list) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
241 | const gchar* uri_list |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
242 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
243 | GList *l = NULL, *gl = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
244 | PPCODE: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
245 | gl = purple_uri_list_extract_uris(uri_list); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
246 | for(l = gl; l; l = l->next) { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
247 | XPUSHs(sv_2mortal(newSVpv(l->data, 0))); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
248 | g_free(l->data); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
249 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
250 | g_list_free(gl); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
251 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
252 | void |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
253 | purple_uri_list_extract_filenames(uri_list) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
254 | const gchar* uri_list |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
255 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
256 | GList *l = NULL, *gl = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
257 | PPCODE: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
258 | gl = purple_uri_list_extract_filenames(uri_list); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
259 | for(l = gl; l; l = l->next) { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
260 | XPUSHs(sv_2mortal(newSVpv(l->data, 0))); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
261 | g_free(l->data); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
262 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
263 | g_list_free(gl); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
264 | |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
265 | MODULE = Purple::Util PACKAGE = Purple::Util::Str PREFIX = purple_str_ |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
266 | 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:
15894
diff
changeset
|
267 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
268 | gchar_own * |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
269 | purple_str_add_cr(str) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
270 | const char *str |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
271 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
272 | gchar_own * |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
273 | purple_str_binary_to_ascii(const unsigned char *binary, guint length(binary)) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
274 | PROTOTYPE: $ |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
275 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
276 | gboolean |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
277 | purple_str_has_prefix(s, p) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
278 | const char *s |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
279 | const char *p |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
280 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
281 | gboolean |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
282 | purple_str_has_suffix(s, x) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
283 | const char *s |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
284 | const char *x |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
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:
15894
diff
changeset
|
286 | gchar_own * |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
287 | purple_str_seconds_to_string(sec) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
288 | guint sec |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
289 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
290 | gchar_own * |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
291 | purple_str_size_to_units(size) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
292 | size_t size |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
293 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
294 | time_t |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
295 | purple_str_to_time(timestamp, utc = FALSE, tm = NULL, OUTLIST long tz_off, OUTLIST const char *rest) |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
296 | const char *timestamp |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
297 | gboolean utc |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
298 | struct tm *tm |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
299 | PROTOTYPE: $;$$ |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
300 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
301 | MODULE = Purple::Util PACKAGE = Purple::Util::Date PREFIX = purple_date_ |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
302 | 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:
15894
diff
changeset
|
303 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
304 | 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:
15894
diff
changeset
|
305 | purple_date_format_full(tm) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
306 | const struct tm *tm |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
307 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
308 | 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:
15894
diff
changeset
|
309 | purple_date_format_long(tm) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
310 | const struct tm *tm |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
311 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
312 | 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:
15894
diff
changeset
|
313 | purple_date_format_short(tm) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
314 | const struct tm *tm |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
315 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
316 | MODULE = Purple::Util PACKAGE = Purple::Util::Markup PREFIX = purple_markup_ |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
317 | 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:
15894
diff
changeset
|
318 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
319 | gboolean |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
320 | purple_markup_extract_info_field(str, len, user_info, start_token, skip, end_token, check_value, no_value_token, display_name, is_link, link_prefix, format_cb) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
321 | const char *str |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
322 | int len |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
323 | Purple::NotifyUserInfo user_info |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
324 | const char *start_token |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
325 | int skip |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
326 | const char *end_token |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
327 | char check_value |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
328 | const char *no_value_token |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
329 | const char *display_name |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
330 | gboolean is_link |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
331 | const char *link_prefix |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
332 | Purple::Util::InfoFieldFormatCallback format_cb |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
333 | |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
334 | # XXX: returning start/end to perl doesn't make a lot of sense... |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
335 | # XXX: the actual tag data can be gotten with $start =~ s/$end//g; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
336 | void |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
337 | purple_markup_find_tag(needle, haystack) |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
338 | const char *needle |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
339 | const char *haystack |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
340 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
341 | const char *start = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
342 | const char *end = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
343 | GData *attributes; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
344 | gboolean ret; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
345 | HV *hv = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
346 | PPCODE: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
347 | ret = purple_markup_find_tag(needle, haystack, &start, &end, &attributes); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
348 | if(!ret) XSRETURN_UNDEF; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
349 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
350 | hv = newHV(); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
351 | g_datalist_foreach(&attributes, (GDataForeachFunc) markup_find_tag_foreach, hv); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
352 | g_datalist_clear(&attributes); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
353 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
354 | XPUSHs(sv_2mortal(newSVpv(start, 0))); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
355 | XPUSHs(sv_2mortal(newSVpv(end, 0))); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
356 | XPUSHs(sv_2mortal(newRV_noinc((SV *) hv))); |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
357 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
358 | gchar_own * |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
359 | purple_markup_get_tag_name(tag) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
360 | const char *tag |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
361 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
362 | void |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
363 | purple_markup_html_to_xhtml(html, OUTLIST gchar_own *dest_xhtml, OUTLIST gchar_own *dest_plain) |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
364 | const char *html |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
365 | PROTOTYPE: $ |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
366 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
367 | gchar_own * |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
368 | purple_markup_linkify(str) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
369 | const char *str |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
370 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
371 | gchar_own * |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
372 | purple_markup_slice(str, x, y) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
373 | const char *str |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
374 | guint x |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
375 | guint y |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
376 | |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
377 | gchar_own * |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
378 | purple_markup_strip_html(str) |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
379 | const char *str |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
380 | |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
381 | gchar_own * |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
382 | purple_markup_get_css_property(style, opt) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
383 | const gchar* style |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
384 | const gchar* opt |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
385 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
386 | SV* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
387 | purple_markup_unescape_entity(text) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
388 | const char* text |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
389 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
390 | int length; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
391 | CODE: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
392 | { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
393 | const char *str = purple_markup_unescape_entity(text, &length); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
394 | if(length) { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
395 | RETVAL = newSVpv(str, length); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
396 | } else { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
397 | XSRETURN_UNDEF; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
398 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
399 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
400 | OUTPUT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
401 | RETVAL |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
402 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
403 | |
|
16774
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
404 | MODULE = Purple::Util PACKAGE = Purple::Util PREFIX = purple_util_ |
|
064f0b6c87a5
Clean up a bunch of the perl api stuff. Eventually I'll dump the entire list
Etan Reisner <deryni@pidgin.im>
parents:
15894
diff
changeset
|
405 | 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:
15894
diff
changeset
|
406 | |
| 12783 | 407 | 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
|
408 | purple_util_set_user_dir(dir) |
| 11118 | 409 | const char *dir |
| 410 | ||
| 12783 | 411 | gboolean |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
412 | purple_util_write_data_to_file(filename, const char *data, size_t length(data)) |
| 11118 | 413 | const char *filename |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
414 | PROTOTYPE: $$ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
415 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
416 | void |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
417 | purple_util_set_current_song(title, artist, album) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
418 | const char *title |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
419 | const char *artist |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
420 | const char *album |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
421 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
422 | gchar_own* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
423 | purple_util_format_song_info(title, artist, album, unused) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
424 | const char* title |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
425 | const char* artist |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
426 | const char* album |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
427 | gpointer unused |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
428 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
429 | const char* |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
25384
diff
changeset
|
430 | purple_util_get_image_extension(const char *data, size_t length(data)) |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
431 | PROTOTYPE: $ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
432 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
433 | gchar_own* |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
25384
diff
changeset
|
434 | purple_util_get_image_filename(const char *image_data, size_t length(image_data)) |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
435 | PROTOTYPE: $ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
436 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
437 | Purple::XMLNode |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
438 | purple_util_read_xml_from_file(filename, description) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
439 | const char* filename |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
440 | const char* description |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
441 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
442 | gboolean |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
443 | purple_util_write_data_to_file_absolute(filename_full, char *data, gssize length(data)) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
444 | const char* filename_full |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
445 | PROTOTYPE: $$ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
22839
diff
changeset
|
446 |