source: trunk/libtransmission/web.h @ 6073

Last change on this file since 6073 was 6073, checked in by charles, 13 years ago

#800 initial support for GetRight?-style fetching of data through http and ftp servers specified in the .torrent's "url-list" tag

  • Property svn:keywords set to Date Rev Author Id
File size: 1.2 KB
Line 
1/*
2 * This file Copyright (C) 2008 Charles Kerr <charles@rebelbase.com>
3 *
4 * This file is licensed by the GPL version 2.  Works owned by the
5 * Transmission project are granted a special exemption to clause 2(b)
6 * so that the bulk of its code can remain under the MIT license.
7 * This exemption does not extend to derived works not owned by
8 * the Transmission project.
9 *
10 * $Id: web.h 6073 2008-06-07 21:26:41Z charles $
11 */
12
13#ifndef TR_HTTP_H
14#define TR_HTTP_H
15
16struct tr_handle;
17typedef struct tr_web tr_web;
18
19tr_web* tr_webInit( struct tr_handle * session );
20
21void tr_webClose( tr_web ** );
22
23typedef void (tr_web_done_func)( struct tr_handle    * session,
24                                 long                  response_code,
25                                 const void          * response,
26                                 size_t                response_byte_count,
27                                 void                * user_data );
28
29const char * tr_webGetResponseStr( long response_code );
30                               
31void tr_webRun( struct tr_handle   * session,
32                const char         * url,
33                const char         * range,
34                tr_web_done_func     done_func,
35                void               * done_func_user_data );
36
37
38
39#endif
Note: See TracBrowser for help on using the repository browser.