-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathbuild.h
57 lines (50 loc) · 1.96 KB
/
build.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
/**-------------------------/// build songs library \\\---------------------------
*
* <b>build songs library</b>
* @version :
* @since : 2015 2月 07
*
* @description :
*
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ build songs library ///---------------------------*/
#ifndef _IFLY_RES_BUILD_H_
#define _IFLY_RES_BUILD_H_
#include <string>
#ifdef WIN32
#define __EXPORT __declspec(dllexport)
#else
#define __EXPORT
#endif /* WIN32 */
//+---------------------------------------------------------------------------+
//+ 初始化
//+ 对需要的数据结构进行初始化操作
//+---------------------------------------------------------------------------+
//+ return - 返回码
//+---------------------------------------------------------------------------+
extern "C" __EXPORT int Initialize();
typedef int(*Proc_Initialize)();
//+---------------------------------------------------------------------------+
//+ 数据打包
//+ 对给出的歌单进行打包,输出资源文件
//+---------------------------------------------------------------------------+
//+ szResDir - 歌曲文件夹输入路径
//+ szResPath - 资源输出路径
//+ return - 返回码
//+---------------------------------------------------------------------------+
extern "C" __EXPORT int ProcessBuildRes(const char *szResDir, const char *szResPath);
typedef int(*Proc_ProcessBuildRes)(const char *szResDir, const char *szResPath);
//+---------------------------------------------------------------------------+
//+ 逆初始化
//+ 对需要的数据结构进行析构
//+---------------------------------------------------------------------------+
//+ return - 返回码
//+---------------------------------------------------------------------------+
extern "C" __EXPORT int unInitialize();
typedef int(*Proc_unInitialize)();
#endif//_IFLY_RES_BUILD_H_