Changeset 516a9c6


Ignore:
Timestamp:
2010-07-16T23:11:37Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ef14a83
Parents:
7885d0f
Message:

No idea why http_dorequest() ever returned void*. Don't hide the type, it's
not a secret (the pointer is shared with a type later anyway).

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/http_client.c

    r7885d0f r516a9c6  
    3535static gboolean http_ssl_connected( gpointer data, void *source, b_input_condition cond );
    3636static gboolean http_incoming_data( gpointer data, int source, b_input_condition cond );
    37 
    38 
    39 void *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data )
     37static void http_free( struct http_request *req );
     38
     39
     40struct http_request *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data )
    4041{
    4142        struct http_request *req;
     
    7273}
    7374
    74 void *http_dorequest_url( char *url_string, http_input_function func, gpointer data )
     75struct http_request *http_dorequest_url( char *url_string, http_input_function func, gpointer data )
    7576{
    7677        url_t *url = g_new0( url_t, 1 );
     
    446447}
    447448
    448 void http_free( struct http_request *req )
     449static void http_free( struct http_request *req )
    449450{
    450451        g_free( req->request );
  • lib/http_client.h

    r7885d0f r516a9c6  
    8181   you want to add some extra headers. As you can see, HTTPS connections
    8282   are also supported (using ssl_client). */
    83 void *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data );
    84 void *http_dorequest_url( char *url_string, http_input_function func, gpointer data );
    85 
    86 void http_free( struct http_request *req );
     83struct http_request *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data );
     84struct http_request *http_dorequest_url( char *url_string, http_input_function func, gpointer data );
Note: See TracChangeset for help on using the changeset viewer.