音视频通讯SDK API参考手册  iOS 1.4.0
av_export.h
1 #ifndef AV_EXPORT_H_
2 #define AV_EXPORT_H_
3 
4 #include "build_config.h"
5 
6 #ifdef OS_WIN
7 #if defined(AV_IMPLEMENTATION)
8 #define AV_EXPORT __declspec(dllexport)
9 #else
10 #define AV_EXPORT __declspec(dllimport)
11 #endif // defined(AV_IMPLEMENTATION)
12 #else
13 #define AV_EXPORT
14 #endif
15 
16 #define DISALLOW_EVIL_DESTRUCTIONS(TypeName) \
17  protected: \
18  virtual ~TypeName() {}
19 
20 #ifdef WIN32
21 
22 #ifdef __cplusplus
23 extern "C"
24 {
25 #endif
26 
27 char* AVAPI_GetSDKVersion();
28 void* AVAPI_CreateContext(void* config);
29 void AVAPI_DestroyContext(void* context);
30 void AVAPI_EnableCrashReport(bool enable);
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 typedef char* (*PROC_AVAPI_GetSDKVersion)();
37 typedef void* (*PROC_AVAPI_CreateContext)(void* config);
38 typedef void (*PROC_AVAPI_DestroyContext)(void* context);
39 typedef void (*PROC_AVAPI_EnableCrashReport)(bool enable);
40 
41 #endif
42 
43 
44 #endif // #ifndef AV_EXPORT_H_