diff options
| author | Aldrik Ramaekers <aldrik.ramaekers@protonmail.com> | 2020-02-22 19:56:12 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik.ramaekers@protonmail.com> | 2020-02-22 19:56:12 +0100 |
| commit | 32920988ed16940a45f774a9c6283abdc0408a6a (patch) | |
| tree | e44439ed242e1d39b8bd1c4199f26c677244bc5a /src/linux/platform.c | |
| parent | 100bef3abb32463aea3419332359e16174ebbeeb (diff) | |
licensing
Diffstat (limited to 'src/linux/platform.c')
| -rw-r--r-- | src/linux/platform.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/linux/platform.c b/src/linux/platform.c index 8e8f01d..4915138 100644 --- a/src/linux/platform.c +++ b/src/linux/platform.c @@ -615,9 +615,9 @@ inline void platform_init(int argc, char **argv) char buf[MAX_INPUT_LENGTH]; get_directory_from_path(buf, binary_path); string_copyn(binary_path, buf, MAX_INPUT_LENGTH); - + curl = curl_easy_init(); - + assets_create(); } @@ -1613,7 +1613,7 @@ uint write_cb(char *in, uint size, uint nmemb, char *buffer) bool platform_send_http_request(char *url, char *params, char *response_buffer) { string_copyn(response_buffer, "", MAX_INPUT_LENGTH); - + char fullurl[200]; sprintf(fullurl, "https://%s/%s", url, params); curl_easy_setopt(curl, CURLOPT_URL,fullurl); @@ -1625,6 +1625,12 @@ bool platform_send_http_request(char *url, char *params, char *response_buffer) curl_easy_setopt(curl, CURLOPT_WRITEDATA, response_buffer); CURLcode res = curl_easy_perform(curl); if (res != CURLE_OK) return false; + + return true; +} +bool platform_get_mac_address(char *buffer, s32 buf_size) +{ + string_copyn(buffer, "", buf_size); return true; }
\ No newline at end of file |
