source: gaycko/src/io/io.h @ 4716

Last change on this file since 4716 was 4716, checked in by Jean-Yves Lamoureux, 9 years ago
  • Initial commit -This line, and those below, will be ignored--

A gaycko/tests
A gaycko/tests/lnx.html
A gaycko/tests/html.html
A gaycko/tests/simple.html
A gaycko/configure.ac
A gaycko/src
A gaycko/src/dom
A gaycko/src/dom/dom.c
A gaycko/src/dom/dom.h
A gaycko/src/helpers
A gaycko/src/helpers/str.c
A gaycko/src/helpers/str.h
A gaycko/src/gaycko.h
A gaycko/src/parsing
A gaycko/src/parsing/parse.h
A gaycko/src/parsing/parse.c
A gaycko/src/io
A gaycko/src/io/file.c
A gaycko/src/io/http.c
A gaycko/src/io/file.h
A gaycko/src/io/http.h
A gaycko/src/io/io.c
A gaycko/src/io/io.h
A gaycko/src/Makefile.am
A gaycko/src/gaycko.c
A gaycko/Makefile.am
AM gaycko/bootstrap

File size: 422 bytes
Line 
1#ifndef IO_H
2#define IO_H
3
4#include "file.h"
5#include "http.h"
6
7typedef enum   {
8  IO_FILE = 0,
9  IO_HTTP = 1,
10} IO_type;
11
12
13struct gIO_ {
14   
15    IO_type type;
16        union  {
17        gFile *file;
18        gHttp *http;
19    } stream;
20   
21};
22typedef struct gIO_ gIO;
23
24
25
26gIO         *gaycko_open(char *uri);
27void         gaycko_close(gIO *io);
28char        *gaycko_get_data(gIO *io);
29unsigned int gaycko_get_size(gIO *io);
30
31#endif
Note: See TracBrowser for help on using the repository browser.