blob: fbfa0d0b63d9f80db22d2da7556b433b31937049 (
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
26
27
28
29
30
31
32
33
|
#ifndef ICCLIENT_TYPEDEFS_H
#define ICCLIENT_TYPEDEFS_H
#ifdef __cplusplus
#include <cstddef>
#endif
#ifdef __EMSCRIPTEN__
#include <emscripten/fetch.h>
typedef emscripten_fetch_t icclient_fetch_t;
typedef char icclient_post;
#else
#include <curl/curl.h>
typedef struct {
void *userData;
char *data;
size_t numBytes;
} icclient_fetch_t;
typedef struct curl_httppost icclient_post;
#endif
struct icclient_post_callback {
icclient_post *post;
void (*callback)(icclient_fetch_t *);
};
#endif
|