summaryrefslogtreecommitdiff
path: root/rtclient/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'rtclient/common.h')
-rw-r--r--rtclient/common.h13
1 files changed, 13 insertions, 0 deletions
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 <curl/curl.h>
+
+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