summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/IMO2sProxy/src/imolib/io_layer.h
blob: 13e10cf8882176158590f673f1de2bf7496795f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _IOLAYER_H_
#define _IOLAYER_H_

struct _tagIOLAYER;
typedef struct _tagIOLAYER IOLAYER;

struct _tagIOLAYER
{
	void (*Exit) (IOLAYER *hIO);

	char *(*Post) (IOLAYER *hIO, char *pszURL, char *pszPostFields, unsigned int cbPostFields, unsigned int *pdwLength);
	char *(*Get) (IOLAYER *hIO, char *pszURL, unsigned int *pdwLength);
	void (*Cancel) (IOLAYER *hIO);
	char *(*GetLastError) (IOLAYER *hIO);
	char *(*EscapeString) (IOLAYER *hIO, char *pszData);
	void (*FreeEscapeString) (char *pszData);
};

#ifdef WIN32
IOLAYER *IoLayerW32_Init(void);
IOLAYER *IoLayerNETLIB_Init(void);
#endif
IOLAYER *IoLayerCURL_Init(void);

#endif