| 1168 /*@{*/ |
1168 /*@{*/ |
| 1169 |
1169 |
| 1170 void purple_got_protocol_handler_uri(const char *uri); |
1170 void purple_got_protocol_handler_uri(const char *uri); |
| 1171 |
1171 |
| 1172 /** |
1172 /** |
| 1173 * Parses a URL, returning its host, port, file path, username and password. |
|
| 1174 * |
|
| 1175 * The returned data must be freed. |
|
| 1176 * |
|
| 1177 * @param url The URL to parse. |
|
| 1178 * @param ret_host The returned host. |
|
| 1179 * @param ret_port The returned port. |
|
| 1180 * @param ret_path The returned path. |
|
| 1181 * @param ret_user The returned username. |
|
| 1182 * @param ret_passwd The returned password. |
|
| 1183 */ |
|
| 1184 gboolean purple_url_parse(const char *url, char **ret_host, int *ret_port, |
|
| 1185 char **ret_path, char **ret_user, char **ret_passwd); |
|
| 1186 |
|
| 1187 /** |
|
| 1188 * Decodes a URL into a plain string. |
1173 * Decodes a URL into a plain string. |
| 1189 * |
1174 * |
| 1190 * This will change hex codes and such to their ascii equivalents. |
1175 * This will change hex codes and such to their ascii equivalents. |
| 1191 * |
1176 * |
| 1192 * @param str The string to translate. |
1177 * @param str The string to translate. |