From 670dc1542e022391737c5fcf01b3cbe8f04c8327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sat, 14 Sep 2019 10:11:10 +0800 Subject: Distribute code --- rtclient/common.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 rtclient/common.h (limited to 'rtclient/common.h') diff --git a/rtclient/common.h b/rtclient/common.h new file mode 100644 index 0000000..a63a10c --- /dev/null +++ b/rtclient/common.h @@ -0,0 +1,13 @@ +#ifndef RTCLIENT_COMMON_H +#define RTCLIENT_COMMON_H + +#include + +extern CURL *curl; +extern char *server_url; + +void request(const char *path, const char *suffix + , size_t (*writefunction)(void *, size_t, size_t, void *) + , void *writedata, struct curl_httppost *post); + +#endif // RTCLIENT_COMMON_H -- cgit v1.2.3