Ignore:
Timestamp:
Feb 20, 2010, 3:57:05 PM (12 years ago)
Author:
charles
Message:

(trunk) #2938 "crash when adding a torrent by URL from an ftp source over RPC" -- fixed in trunk for 1.91

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.h

    r10069 r10239  
    437437void tr_hex_to_sha1( uint8_t * out, const char * hex ) TR_GNUC_NONNULL(1,2);
    438438
    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 
    443439/** @brief convenience function to determine if an address is an IP address (IPv4 or IPv6) */
    444440tr_bool tr_addressIsIP( const char * address );
    445441
     442/** @brief return TRUE if the url is a http or https url that Transmission understands */
     443tr_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 */
     446tr_bool tr_urlIsValid( const char * url ) TR_GNUC_NONNULL(1);
     447
    446448/** @brief parse a URL into its component parts
    447449    @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);
     450int  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);
    453456
    454457
Note: See TracChangeset for help on using the changeset viewer.