source: trunk/libtransmission/web.h @ 7404

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

updated email address

  • 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@transmissionbt.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 7404 2008-12-16 00:20:44Z charles $
11 */
12
13#ifndef TR_HTTP_H
14#define TR_HTTP_H
15
16typedef struct tr_web tr_web;
17
18tr_web*      tr_webInit( tr_session * session );
19
20void         tr_webClose( tr_web ** );
21
22typedef void ( tr_web_done_func )( tr_session       * session,
23                                   long               response_code,
24                                   const void       * response,
25                                   size_t             response_byte_count,
26                                   void             * user_data );
27
28const char * tr_webGetResponseStr( long response_code );
29
30void         tr_webRun( tr_session        * session,
31                        const char        * url,
32                        const char        * range,
33                        tr_web_done_func    done_func,
34                        void              * done_func_user_data );
35
36
37#endif
Note: See TracBrowser for help on using the repository browser.