mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
This is mostly refactoring of cmake scripts, but also touches build.sh and install.sh. The cmake should be much more palatable now for major Linux distributions. At the same time, new configuration is introduced to Linux version, one with Twitch enabled. Please note, however, this change requires update of orctlibs.zip for mingw builds.
23 lines
522 B
C
23 lines
522 B
C
#ifndef _HTTP_H_
|
|
#define _HTTP_H_
|
|
|
|
#ifndef DISABLE_HTTP
|
|
#include <jansson.h>
|
|
#include "../common.h"
|
|
|
|
typedef struct {
|
|
int status_code;
|
|
json_t *root;
|
|
} http_json_response;
|
|
|
|
http_json_response *http_request_json(const char *url);
|
|
void http_request_json_async(const char *url, void (*callback)(http_json_response*));
|
|
void http_request_json_dispose(http_json_response *response);
|
|
#endif // DISABLE_HTTP
|
|
|
|
// These callbacks are defined anyway, but are dummy if HTTP is disabled
|
|
void http_init();
|
|
void http_dispose();
|
|
|
|
#endif
|