You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

81 lines
2.0 KiB

#ifndef CWFaceVersion_H
#define CWFaceVersion_H
#include "CWFaceConfig.h"
#if defined (__cplusplus)
extern "C" {
#endif
/**
* 功能:获取SDK版本信息
* 输入:
* iBuffLen - 输出buf分配字节长度
* 输出:
* pVersion - 版本信息,需事先分配内存
* 返回值:
* cw_errcode_t - 成功返回CW_SDKLIT_OK,失败返回其他
*/
CW_FACE_API
cw_errcode_t cwGetSDKVersion(char* pVersion, int iBuffLen);
/**
* 功能:获取设备码
* 输入:
* iBuffLen - 输出buf分配字节长度,不低于160字节
* 输出:
* pDeviceInfo - 设备唯一码,需事先分配内存,不低于160字节
* iUseLen - 输出的设备码的长度
* 返回值:
* cw_errcode_t - 成功返回CW_SDKLIT_OK,失败返回其他
*/
CW_FACE_API
cw_errcode_t cwGetDeviceInfo(char* pDeviceInfo, int iBuffLen, int *iUseLen);
/**
* 功能:通过网络授权安装licence,生成的V2C授权文件会保存在当前目录,用于windows和linux
* 输入:
* sAppKey - 授权AppKey,需从云从科技获取
* sAppSecret - 授权AppSecret,需从云从科技获取
* sProductId - 授权ProductId,需从云从科技获取
* 输出:
* 无
* 返回值:
* cw_errcode_t - 成功返回CW_SDKLIT_OK,失败返回其他
*/
CW_FACE_API
cw_errcode_t cwInstallLicence(const char* sAppKey, const char* sAppSecret, const char* sProductId);
/**
* 功能:获取移动端授权码licence,PC端无效
* 输入:
* sAppKey - 授权AppKey,需从云从科技获取
* sAppSecret - 授权AppSecret,需从云从科技获取
* sProductId - 授权ProductId,需从云从科技获取
* iBuffLen - 分配字节长度,不低于300字节
* 输出:
* pLicence - 输出licence码,需事先分配内存,不低于300字节
* iUseLen - 输出的licence码的长度
* 返回值:
* cw_errcode_t - 成功返回CW_SDKLIT_OK,失败返回其他
*/
CW_FACE_API
cw_errcode_t cwGetLicence(const char* sAppKey, const char* sAppSecret, const char* sProductId, char* pLicence, int iBuffLen, int *iUseLen);
#if defined (__cplusplus)
}
#endif
#endif