You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
204 lines
5.6 KiB
C
204 lines
5.6 KiB
C
#include "dhnetsdk.h"
|
|
#include "dhnetsdkEx.h"
|
|
#ifndef _AC_DLL_H_
|
|
#define _AC_DLL_H_
|
|
|
|
#if defined(WIN32) || defined(_WIN32) || defined(_WIN64)
|
|
#ifdef DLL_EXPORT
|
|
#define GENERAL_API __declspec(dllexport)
|
|
#elif defined(DLL_USE)
|
|
#define GENERAL_API __declspec(dllimport)
|
|
#else
|
|
#define GENERAL_API
|
|
#endif
|
|
|
|
#include "windows.h"
|
|
#define CALL_METHOD _cdecl//WINAPI
|
|
#define CALLBACK _stdcall
|
|
|
|
#else
|
|
#define GENERAL_API extern "C"
|
|
#define CALL_METHOD
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#ifdef __OBJC__
|
|
#include "objc/objc.h"
|
|
#else
|
|
#define BOOL int
|
|
#endif
|
|
|
|
#ifndef TRUE
|
|
#define TRUE 1
|
|
#endif
|
|
|
|
#ifndef FALSE
|
|
#define FALSE 0
|
|
#endif
|
|
|
|
// 登录回调
|
|
typedef void (CALLBACK *fConnectCallback)(const char* szOutParam, void* pUser);
|
|
|
|
|
|
// 门禁报警回调
|
|
typedef void (CALLBACK *fAlarmInfoCallback)(const char* szOutParam, void* pUser);
|
|
|
|
// 初始化SDK
|
|
GENERAL_API BOOL CALL_METHOD Init(fConnectCallback cb, void* pUser);
|
|
|
|
|
|
// 释放SDK资源
|
|
GENERAL_API void CALL_METHOD Cleanup();
|
|
|
|
// 登录接口
|
|
GENERAL_API BOOL CALL_METHOD Login(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 登出接口
|
|
GENERAL_API BOOL CALL_METHOD Logout(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 修改设备密码
|
|
GENERAL_API BOOL CALL_METHOD ModifyPassword(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 获取设备时间
|
|
GENERAL_API BOOL CALL_METHOD GetTime(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 设置设备时间
|
|
GENERAL_API BOOL CALL_METHOD SetTime(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 获取设备信息
|
|
GENERAL_API BOOL CALL_METHOD GetDeviceInfo(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 获取门禁配置
|
|
GENERAL_API BOOL CALL_METHOD GetDeviceDoorConfig(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 设置门禁配置
|
|
GENERAL_API BOOL CALL_METHOD SetDeviceDoorConfig(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 设置时间表配置
|
|
GENERAL_API BOOL CALL_METHOD SetTimeScheduleConfig(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 设置时间表配置
|
|
GENERAL_API BOOL CALL_METHOD GetTimeScheduleConfig(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 门禁人员信息操作
|
|
GENERAL_API BOOL CALL_METHOD OperateUserInfo(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 門禁指紋信息操作
|
|
GENERAL_API BOOL CALL_METHOD OperateFingerPrintInfo(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 门禁人脸信息操作
|
|
GENERAL_API BOOL CALL_METHOD OperateFaceInfo(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
//设置假日表
|
|
GENERAL_API BOOL CALL_METHOD SetHolidayScheduleConfig(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 获取假日表
|
|
GENERAL_API BOOL CALL_METHOD GetHolidayScheduleConfig(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 门禁卡信息操作
|
|
GENERAL_API BOOL CALL_METHOD OperateCardInfo(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
// 查询门状态
|
|
GENERAL_API BOOL CALL_METHOD QueryDoorStatus(const char* szInParam, char* szOutParam, int nOutBufSize);
|
|
|
|
//// 门为对象 设置周计划
|
|
//BOOL SetDoorWeekPlanConfig(String InParam, String OutParam);
|
|
//
|
|
//// 门为对象 获取周计划
|
|
//BOOL GetDoorWeekPlanConfig(String InParam, String OutParam);
|
|
|
|
// 人为对象的周计划 暂时未实现
|
|
////////////////////////////////////////
|
|
|
|
//
|
|
//// 设置假日组
|
|
//BOOL SetHolidayGroupConfig(String InParam, String OutParam);
|
|
//
|
|
//// 获取假日组
|
|
//BOOL GetHolidayGroupConfig(String InParam, String OutParam);
|
|
|
|
|
|
// 人为对象的假日计划 暂时未实现
|
|
////////////////////////////////////////
|
|
|
|
// 门为对象 设置假日计划
|
|
//BOOL SetDoorHolidayPlanConfig(String InParam, String OutParam);
|
|
//
|
|
//// 门为对象 获取假日计划
|
|
//BOOL GetDoorHolidayPlanConfig(String InParam, String OutParam);
|
|
//
|
|
//// 设置开门方式
|
|
//BOOL SetOpenDoorType(String InParam, String OutParam);
|
|
//
|
|
//// 获取开门方式
|
|
//BOOL GetOpenDoorType(String InParam, String OutParam);
|
|
//
|
|
//// 设置多人多卡开门
|
|
//BOOL SetOpenDoorGroupConfig(String InParam, String OutParam);
|
|
//
|
|
//// 获取多人多卡开门
|
|
//BOOL GetOpenDoorGroupConfig(String InParam, String OutParam);
|
|
//
|
|
//// 设置 互锁联动门首卡开门
|
|
//BOOL SetDoorInterlockFirstEnterConfig(String InParam, String OutParam);
|
|
//
|
|
//// 获取 互锁联动门首卡开门
|
|
//BOOL SetDoorInterlockFirstEnterConfig(String InParam, String OutParam);
|
|
//
|
|
//// 设置 普通门双门互锁
|
|
//BOOL SetInterLockConfig(String InParam, String OutParam);
|
|
//
|
|
//// 获取 普通门双门互锁
|
|
//BOOL GetInterLockConfig(String InParam, String OutParam);
|
|
//
|
|
//// 设置 金库开门配置
|
|
//BOOL SetFirstOpenVaultConfig(String InParam, String OutParam);
|
|
//
|
|
//// 获取 金库开门配置
|
|
//BOOL GetFirstOpenVaultConfig(String InParam, String OutParam);
|
|
//
|
|
//// 金库远程开门
|
|
//BOOL RemoteOpenDoor (String InParam, String OutParam);
|
|
|
|
//
|
|
//// 门禁卡操作
|
|
//BOOL OperateCardInfo(String InParam, String OutParam);
|
|
//
|
|
//
|
|
//// 门禁指纹操作
|
|
//BOOL OperateFingerprintInfo(String InParam, String OutParam);
|
|
//
|
|
//// 门禁人脸操作
|
|
//BOOL OperateFaceInfo(String InParam, String OutParam);
|
|
//
|
|
//// 门禁报警 设置回调函数,接收门禁设备报警消息
|
|
//BOOL SetMessageCallBack(fAlarmInfoCallback cbFun, void* pUser);
|
|
//
|
|
//// 门禁报警 开始订阅门禁设备消息
|
|
//BOOL StartSubscribeDeviceMessage(String InParam, String OutParam);
|
|
//
|
|
//// 门禁报警 停止订阅门禁设备消息
|
|
//BOOL StopSubscribeDeviceMessage (String InParam, String OutParam);
|
|
//
|
|
//// 开门信息查询
|
|
//BOOL QueryOpenDoorInfo(String InParam, String OutParam);
|
|
//
|
|
//// 门禁状态查询
|
|
//BOOL QueryDoorStatus(String InParam, String OutParam);
|
|
//
|
|
//
|
|
//// 设置 开门时间外的开门配置
|
|
//BOOL SetOutTimeDoorConfig(String InParam, String OutParam);
|
|
//
|
|
//// 获取 开门时间外的开门配置
|
|
//BOOL GetOutTimeDoorConfig(String InParam, String OutParam);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}; //extern "C"
|
|
#endif
|
|
#endif |