forked from play-co/native-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.h
67 lines (47 loc) · 1.76 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* @license
* This file is part of the Game Closure SDK.
*
* The Game Closure SDK is free software: you can redistribute it and/or modify
* it under the terms of the Mozilla Public License v. 2.0 as published by Mozilla.
* The Game Closure SDK is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Mozilla Public License v. 2.0 for more details.
* You should have received a copy of the Mozilla Public License v. 2.0
* along with the Game Closure SDK. If not, see <http://mozilla.org/MPL/2.0/>.
*/
#ifndef CONFIG_H
#define CONFIG_H
#include "types.h"
#if defined(__cplusplus)
extern "C" {
#endif
const char *config_get_simulate_id();
void config_set_simulate_id(const char *simulate_id);
bool config_get_remote_loading();
void config_set_remote_loading(bool remote_loading);
const char *config_get_code_host();
void config_set_code_host(const char *url);
void config_set_entry_point(const char *entry_point);
const char *config_get_entry_point();
void config_set_app_id(const char *app_id);
const char *config_get_app_id();
void config_set_tcp_host(const char *host);
const char *config_get_tcp_host();
void config_set_code_path(const char *code_path);
const char *config_get_code_path();
void config_set_tcp_port(int port);
int config_get_tcp_port();
void config_set_code_port(int port);
int config_get_code_port();
void config_set_screen_width(int width);
int config_get_screen_width();
void config_set_screen_height(int height);
int config_get_screen_height();
void config_set_splash(const char *splash);
const char *config_get_splash();
void config_clear();
#if defined(__cplusplus)
} // extern "C"
#endif
#endif