parent
7774f5a15e
commit
d202d80e77
Binary file not shown.
@ -1,204 +0,0 @@
|
||||
#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
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,28 +0,0 @@
|
||||
|
||||
#ifndef AVGLOBAL_H
|
||||
#define AVGLOBAL_H
|
||||
|
||||
typedef int AV_int32;
|
||||
typedef unsigned int AV_uint32;
|
||||
|
||||
#ifndef __OBJC__
|
||||
typedef int AV_BOOL;
|
||||
#else
|
||||
typedef BOOL AV_BOOL;
|
||||
#endif
|
||||
|
||||
typedef void* AV_HANDLE;
|
||||
typedef unsigned char AV_BYTE;
|
||||
typedef float AV_float;
|
||||
|
||||
#ifdef WIN32
|
||||
typedef __int64 AV_int64;
|
||||
typedef unsigned __int64 AV_uint64;
|
||||
#else
|
||||
typedef long long AV_int64;
|
||||
typedef unsigned long long AV_uint64;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
start cmd /k "cd/d D:\workspace\duoji && javaw -jar duoji-1.0.0.jar --spring.profile.path=application-prod.yml"
|
||||
@ -0,0 +1,24 @@
|
||||
@echo off&setlocal EnableDelayedExpansion
|
||||
set Port=
|
||||
set Dstport=9091
|
||||
|
||||
for /F "usebackq skip=4 tokens=2,5" %%a in (`"netstat -ano -p tcp"`) do (
|
||||
for /F "tokens=2 delims=:" %%k in ("%%a") do (
|
||||
set Port=%%k
|
||||
)
|
||||
echo !Port! %%b >>portandpid.txt
|
||||
)
|
||||
for /F "tokens=2 delims=:" %%c in ("%1") do (
|
||||
set Port=%%c
|
||||
)
|
||||
for /F "tokens=1,2 delims= " %%d in (portandpid.txt) do (
|
||||
echo %%d
|
||||
echo %Dstport%
|
||||
if %%d == %Dstport% taskkill /f /pid %%e
|
||||
)
|
||||
del portandpid.txt
|
||||
set Port=
|
||||
set Dstport=
|
||||
goto :eof
|
||||
|
||||
echo '结束了'
|
||||
Loading…
Reference in New Issue