Do not build unittest when ASAN is enabled
[platform/core/api/vine.git] / tool / tool_config.h
1 typedef enum {
2         DP_TYPE_CLIENT = 0,
3         DP_TYPE_SERVER,
4         DP_TYPE_PUBSUB,
5         DP_TYPE_UNKNOWN,
6 } dp_type_t;
7
8 typedef enum {
9         SEC_TYPE_NONE = 0,
10         SEC_TYPE_TLS,
11         SEC_TYPE_PSK_OVER_TLS,
12 } sec_type_t;
13
14 void tool_config_set_register(bool val);
15 bool tool_config_get_register();
16 void tool_config_set_discovery(bool val);
17 bool tool_config_get_discovery();
18 void tool_config_set_service_name(char *val);
19 const char *tool_config_get_service_name();
20 void tool_config_set_service_type(char *val);
21 const char *tool_config_get_service_type();
22 void tool_config_set_iface_name(char *val);
23 const char *tool_config_get_iface_name();
24 void tool_config_set_with_ble(bool val);
25 bool tool_config_get_with_ble();
26 void tool_config_set_remote_address(char *val);
27 const char *tool_config_get_remote_address();
28 void tool_config_set_address_family(int val);
29 int tool_config_get_address_family();
30 void tool_config_set_port(int val);
31 int tool_config_get_port();
32 void tool_config_set_dp_type(char *val);
33 dp_type_t tool_config_get_dp_type();
34 void tool_config_set_max_conn(int val);
35 int tool_config_get_max_conn();
36 void tool_config_set_topic(char *val);
37 const char *tool_config_get_topic();
38 void tool_config_set_message(char *val);
39 const char *tool_config_get_message();
40 void tool_config_set_file(char *val);
41 const char *tool_config_get_file();
42 void tool_config_set_interval(int val);
43 int tool_config_get_interval();
44 sec_type_t tool_config_get_security_type();
45 void tool_config_set_cacert(char *val);
46 const char *tool_config_get_cacert();
47 void tool_config_set_cert(char *val);
48 const char *tool_config_get_cert();
49 void tool_config_set_private_key(char *val);
50 const char *tool_config_get_private_key();
51 void tool_config_set_psk(char *val);
52 const char *tool_config_get_psk();
53 void tool_config_set_verbose(bool val);
54 bool tool_config_get_verbose();
55 void tool_config_set_log_file(char *val);
56 const char *tool_config_get_log_file();
57 void tool_config_deinit();