Changeset 10239 for trunk/libtransmission/utils.h
- Timestamp:
- Feb 20, 2010, 3:57:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/utils.h
r10069 r10239 437 437 void tr_hex_to_sha1( uint8_t * out, const char * hex ) TR_GNUC_NONNULL(1,2); 438 438 439 440 /** @brief return TRUE if the url is a http, https, or ftp url that Transmission understands */441 tr_bool tr_httpIsValidURL( const char * url ) TR_GNUC_NONNULL(1);442 443 439 /** @brief convenience function to determine if an address is an IP address (IPv4 or IPv6) */ 444 440 tr_bool tr_addressIsIP( const char * address ); 445 441 442 /** @brief return TRUE if the url is a http or https url that Transmission understands */ 443 tr_bool tr_urlIsValidTracker( const char * url ) TR_GNUC_NONNULL(1); 444 445 /** @brief return TRUE if the url is a [ http, https, ftp, ftps ] url that Transmission understands */ 446 tr_bool tr_urlIsValid( const char * url ) TR_GNUC_NONNULL(1); 447 446 448 /** @brief parse a URL into its component parts 447 449 @return zero on success or an error number if an error occurred */ 448 int tr_httpParseURL( const char * url, 449 int url_len, 450 char ** setme_host, 451 int * setme_port, 452 char ** setme_path ) TR_GNUC_NONNULL(1); 450 int tr_urlParse( const char * url, 451 int url_len, 452 char ** setme_scheme, 453 char ** setme_host, 454 int * setme_port, 455 char ** setme_path ) TR_GNUC_NONNULL(1); 453 456 454 457
Note: See TracChangeset
for help on using the changeset viewer.