Mercurial > pidgin
comparison src/util.h @ 9227:9171e528d7e5
[gaim-migrate @ 10023]
Patch by Don Seiler (aka rizzo) to add two additional parameters to
gaim_url_parse(), which are used for storing the username and password from
the URL, if they exist.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 07 Jun 2004 04:01:00 +0000 |
parents | 3e2ea5b69605 |
children | 185fbd8b5998 |
comparison
equal
deleted
inserted
replaced
9226:7a00289f2ef1 | 9227:9171e528d7e5 |
---|---|
574 /** @name URI/URL Functions */ | 574 /** @name URI/URL Functions */ |
575 /**************************************************************************/ | 575 /**************************************************************************/ |
576 /*@{*/ | 576 /*@{*/ |
577 | 577 |
578 /** | 578 /** |
579 * Parses a URL, returning its host, port, and file path. | 579 * Parses a URL, returning its host, port, file path, username and password. |
580 * | 580 * |
581 * The returned data must be freed. | 581 * The returned data must be freed. |
582 * | 582 * |
583 * @param url The URL to parse. | 583 * @param url The URL to parse. |
584 * @param ret_host The returned host. | 584 * @param ret_host The returned host. |
585 * @param ret_port The returned port. | 585 * @param ret_port The returned port. |
586 * @param ret_path The returned path. | 586 * @param ret_path The returned path. |
587 * @param ret_user The returned username. | |
588 * @param ret_passwd The returned password. | |
587 */ | 589 */ |
588 gboolean gaim_url_parse(const char *url, char **ret_host, int *ret_port, | 590 gboolean gaim_url_parse(const char *url, char **ret_host, int *ret_port, |
589 char **ret_path); | 591 char **ret_path, char **ret_user, char **ret_passwd); |
590 | 592 |
591 /** | 593 /** |
592 * Fetches the data from a URL, and passes it to a callback function. | 594 * Fetches the data from a URL, and passes it to a callback function. |
593 * | 595 * |
594 * @param url The URL. | 596 * @param url The URL. |