X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fhttp.h;h=b4cdd9e9ffa0706fc672be674239615c0e091deb;hb=eed30a5461c8c61a88582b69af6ff735839646b4;hp=ba8f16323a28d0318e1e0860ed5113c25d09d579;hpb=db7a631a123dc07681cdb3599e6b2db67de41bc7;p=pazpar2-moved-to-github.git diff --git a/src/http.h b/src/http.h index ba8f163..b4cdd9e 100644 --- a/src/http.h +++ b/src/http.h @@ -1,4 +1,4 @@ -/* $Id: http.h,v 1.11 2007-09-26 08:53:53 adam Exp $ +/* $Id: http.h,v 1.13 2007-10-08 13:19:23 adam Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -98,6 +98,7 @@ struct http_response struct http_channel *channel; struct http_header *headers; char *payload; + char *content_type; }; void http_set_proxyaddr(char *url, char *baseurl); @@ -114,10 +115,12 @@ struct http_response *http_create_response(struct http_channel *c); void http_send_response(struct http_channel *c); void urlencode(const char *i, char *o); -typedef void (*http_channel_destroy_t)(void *data, struct http_channel *c); +typedef void (*http_channel_destroy_t)(void *data, struct http_channel *c, + void *data2); http_channel_observer_t http_add_observer(struct http_channel *c, void *data, http_channel_destroy_t); +void http_observer_set_data2(http_channel_observer_t obs, void *data2); void http_remove_observer(http_channel_observer_t obs); struct http_channel *http_channel_observer_chan(http_channel_observer_t obs);