/** * Wrapper API for server/client communication * * @author sjlee@suprema.co.kr * @see */ /* * Copyright (c) 2006 Suprema Co., Ltd. All Rights Reserved. * * This software is the confidential and proprietary information of * Suprema Co., Ltd. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Suprema. */ #ifndef __BS_SERVER_H__ #define __BS_SERVER_H__ #define WIN32_LEAN_AND_MEAN #include #include "BS_Error.h" #ifdef __cplusplus extern "C" { #endif // channel type typedef enum { BS_NOT_USED = -1, BS_COMM_SOCKET = 0, BS_COMM_SOCKET_UDP = 1, BS_COMM_SERIAL = 2, BS_COMM_USB = 3, BS_COMM_SERIAL_485 = 4, BS_COMM_USB_MEMORY = 5, BS_COMM_SERVER = 6, BS_COMM_SOCKET_SSL = 7, } BS_COMM_CHANNEL; // server command typedef enum { BA_PAUSE_SERVER = 0, // not used BA_RESUME_SERVER = 1, // not used BA_RESET_SERVER = 2, // not used BA_EXIT_SERVER = 3, } BA_SERVER_COMMAND; // server status typedef enum { BA_SERVER_PAUSED = 0, // not used BA_SERVER_RUNNING = 1, BA_SERVER_STOPPED = 2, } BA_SERVER_STATUS; typedef struct { enum { MAX_REG_LEN = 256, // db type DB_TYPE_MDB = 0, DB_TYPE_MYSQL = 1, DB_TYPE_SQLSERVER = 2, DB_TYPE_ORACLE = 3, }; int status; int dbType; char dbConnString[MAX_REG_LEN]; char versionInfo[MAX_REG_LEN]; } BAServerInfo; struct BSTerminal { enum { // terminal type NOT_USED = -1, BST = 0x01, BIOENTRY = 0x10, }; int type; unsigned id; bool connected; BS_COMM_CHANNEL channelType; int comHandle; bool authorized; unsigned ipAddress; int reserved[1]; }; struct BSRequestLog { unsigned id; unsigned terminal; unsigned event; unsigned source; unsigned startdate; unsigned enddate; }; typedef enum { TB_ADMIN = 1, TB_COMPANY = 2, TB_DEPARTMENT = 3, TB_TITLE = 4, TB_USER = 5, TB_TEMPLATE = 6, TB_TEMPLATE_KEY = 7, TB_CUSTOM_FIELD = 8, TB_DEVICE = 9, TB_SMARTCARD = 10, TB_TIME_CODE = 11, TB_HOLIDAY = 12, TB_HOLIDAY_CODE = 13, TB_TIME_ZONE = 14, TB_DOOR_ZONE = 15, TB_DOOR_ZONE_SET = 16, TB_ACCESS_GROUP = 17, TB_REPORT = 18, TB_RULE_CODE = 19, TB_USER_EVENT = 20, TB_BASE_TIME = 21, TB_LOG_ROW_DATA = 22, TB_MONTHLY_SCHEDULE = 23, TB_LOG_LIST = 24, TB_RULE_GROUP = 25, TB_DATABASE_INFO = 26, TB_ADMIN_PROFILE = 27, TB_LATEST_LOG = 28, TB_LOG_MANAGEMENT = 29, TB_USER_IMAGE = 30, } BS_DB_TYPE; #ifdef __cplusplus } #endif #endif