音视频通讯SDK API参考手册  Windows 1.6.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 #endif
25 
26 char* AVAPI_GetSDKVersion();
27 void* AVAPI_CreateContext(void* config);
28 void AVAPI_DestroyContext(void* context);
29 void AVAPI_EnableCrashReport(bool enable);
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 
35 typedef char* (*PROC_AVAPI_GetSDKVersion)();
36 typedef void* (*PROC_AVAPI_CreateContext)(void* config);
37 typedef void (*PROC_AVAPI_DestroyContext)(void* context);
38 typedef void (*PROC_AVAPI_EnableCrashReport)(bool enable);
39 
40 #endif
41 
42 
43 #endif // #ifndef AV_EXPORT_H_