source: gaycko/trunk/src/io/http.h @ 4748

Last change on this file since 4748 was 4748, checked in by Jean-Yves Lamoureux, 9 years ago
  • Added copyright notices
File size: 735 bytes
Line 
1/*
2 *  Gaycko        Text mode web browser
3 *  Copyright (c) 2011 Jean-Yves Lamoureux <jylam@lnxscene.org>
4 *                All Rights Reserved
5 *
6 *  This library is free software. It comes without any warranty, to
7 *  the extent permitted by applicable law. You can redistribute it
8 *  and/or modify it under the terms of the Do What The Fuck You Want
9 *  To Public License, Version 2, as published by Sam Hocevar. See
10 *  http://sam.zoy.org/wtfpl/COPYING for more details.
11 */
12
13#ifndef HTTP_H
14#define HTTP_H
15
16#include <stdio.h>
17#include <curl/curl.h>
18
19struct gHttp_ {
20    CURL *curl_handle;
21    unsigned int  size;
22    char *data;
23};
24
25typedef struct gHttp_ gHttp;
26
27
28gHttp *http_open(char* url);
29void   http_close(gHttp *f);
30
31#endif
Note: See TracBrowser for help on using the repository browser.