OpenTok C SDK
base.h
Go to the documentation of this file.
1 
7 #ifndef BASE_H
8 #define BASE_H
9 
10 #include "config.h"
11 
12 OTC_BEGIN_DECL
13 
18  1,
20  2,
26 };
27 
33  OTC_FALSE = 0,
35 };
36 
50  OTC_FATAL = 2,
104 };
105 
121 };
122 
127 typedef int otc_bool;
128 
133 typedef struct otc_on_mute_forced_info {
140 
153 typedef int otc_status;
154 
161 typedef void (*otc_logger_callback)(const char* message);
162 
170 OTC_DECL(otc_status) otc_init(void* reserved);
171 
177 OTC_DECL(otc_status) otc_destroy();
178 
186 OTC_DECL(void) otc_log_set_logger_callback(otc_logger_callback callback);
187 
194 OTC_DECL(void) otc_log_enable(enum otc_log_level log_level);
195 
201 OTC_DECL(enum otc_log_level) otc_get_log_level();
202 
203 OTC_END_DECL
204 
205 #endif // BASE_H
otc_status otc_destroy()
int otc_status
Definition: base.h:153
Definition: base.h:50
Definition: base.h:33
Definition: base.h:55
Definition: base.h:83
Definition: base.h:34
enum otc_log_level otc_get_log_level()
otc_error_code
Definition: base.h:40
Definition: base.h:118
void otc_log_enable(enum otc_log_level log_level)
Definition: base.h:73
Definition: base.h:113
Definition: base.h:115
Definition: base.h:45
void(* otc_logger_callback)(const char *message)
Definition: base.h:161
Definition: base.h:17
Definition: base.h:111
otc_bool active
Definition: base.h:138
Definition: base.h:117
Definition: base.h:61
Definition: base.h:68
Definition: base.h:21
Definition: base.h:133
otc_constant
Definition: base.h:31
Definition: base.h:120
Definition: base.h:93
Definition: base.h:78
void otc_log_set_logger_callback(otc_logger_callback callback)
Definition: base.h:112
Definition: base.h:88
otc_log_level
Definition: base.h:110
Definition: base.h:114
Definition: base.h:103
int otc_bool
Definition: base.h:127
otc_video_reason
Definition: base.h:16
Definition: base.h:32
otc_status otc_init(void *reserved)
Definition: base.h:119
Definition: base.h:98