~ubuntu-branches/ubuntu/hardy/transmission/hardy-updates

« back to all changes in this revision

Viewing changes to libtransmission/http.h

  • Committer: Bazaar Package Importer
  • Author(s): Philipp Benner
  • Date: 2007-09-15 18:58:42 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20070915185842-cagev5gre27re7ko
Tags: upstream-0.82.dfsg
ImportĀ upstreamĀ versionĀ 0.82.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: http.h 1293 2006-12-27 05:16:12Z joshe $
 
2
 * $Id: http.h 2568 2007-07-31 01:21:10Z charles $
3
3
 *
4
4
 * Copyright (c) 2006 Transmission authors and contributors
5
5
 *
58
58
#define TR_HTTP_GET             1
59
59
#define TR_HTTP_POST            2
60
60
#define TR_HTTP_M_POST          3
61
 
tr_http_t   * tr_httpClient( int, const char *, int, const char *, ... )
62
 
              PRINTF( 4, 5 );
63
 
tr_http_t   * tr_httpClientUrl( int, const char *, ... )
64
 
              PRINTF( 2, 3 );
 
61
tr_http_t   * tr_httpClient( int, const char *, int, const char *, ... );
 
62
tr_http_t   * tr_httpClientUrl( int, const char *, ... );
65
63
/* only add headers or body before first pulse */
66
64
void          tr_httpAddHeader( tr_http_t *, const char *, const char * );
67
 
void          tr_httpAddBody( tr_http_t *, const char *, ... ) PRINTF( 2, 3 );
 
65
void          tr_httpAddBody( tr_http_t *, const char *, ... );
 
66
void          tr_httpGetHeaders( tr_http_t *, const char **, int * );
 
67
void          tr_httpGetBody( tr_http_t *, const char **, int * );
68
68
tr_tristate_t tr_httpPulse( tr_http_t *, const char **, int * );
69
69
char        * tr_httpWhatsMyAddress( tr_http_t * );
70
70
void          tr_httpClose( tr_http_t * );