diff options
| author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-14 10:42:33 +0800 |
|---|---|---|
| committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-14 10:42:33 +0800 |
| commit | 03f47c60e7963f24b8fa073abe2ad94cd688fc26 (patch) | |
| tree | 0dea477977ec8e2e3cf6c9ae18904ba0a073e54b /client.c | |
| parent | 670dc1542e022391737c5fcf01b3cbe8f04c8327 (diff) | |
Follow a convenient way for inlining request function
https://en.wikipedia.org/wiki/Inline_function#C99
Diffstat (limited to 'client.c')
| -rw-r--r-- | client.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,8 +1,11 @@ #include <stdlib.h> #include <string.h> -#include "rtclient/common.h" +#include "rtclient/request.h" #include "rtclient/rtclient.h" +CURL *curl = NULL; +char *server_url = NULL; + bool rtclient_init(const char *url) { curl_global_init(CURL_GLOBAL_SSL); |