Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing XFS 3.20 classes #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions cen/320/xfsalm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/******************************************************************************
* *
* xfsalm.h XFS � Alarm (ALM) definitions *
* *
* Version 3.20 (March 02 2011) *
* *
******************************************************************************/

#ifndef __INC_XFSALM__H
#define __INC_XFSALM__H

#ifdef __cplusplus
extern "C" {
#endif

#include "xfsapi.h"

/* be aware of alignment */
#pragma pack (push, 1)

/* values of WFSALMCAPS.wClass */

#define WFS_SERVICE_CLASS_ALM (11)
#define WFS_SERVICE_CLASS_VERSION_ALM 0x1403 /*Version 3.20 */
#define WFS_SERVICE_CLASS_NAME_ALM "ALM"

#define ALM_SERVICE_OFFSET (WFS_SERVICE_CLASS_ALM * 100)

/* ALM Info Commands */

#define WFS_INF_ALM_STATUS (ALM_SERVICE_OFFSET + 1)
#define WFS_INF_ALM_CAPABILITIES (ALM_SERVICE_OFFSET + 2)

/* ALM Execute Commands */

#define WFS_CMD_ALM_SET_ALARM (ALM_SERVICE_OFFSET + 1)
#define WFS_CMD_ALM_RESET_ALARM (ALM_SERVICE_OFFSET + 2)
#define WFS_CMD_ALM_RESET (ALM_SERVICE_OFFSET + 3)

/* ALM Messages */

#define WFS_SRVE_ALM_DEVICE_SET (ALM_SERVICE_OFFSET + 1)
#define WFS_SRVE_ALM_DEVICE_RESET (ALM_SERVICE_OFFSET + 2)

/* values of WFSALMSTATUS.fwDevice */

#define WFS_ALM_DEVONLINE WFS_STAT_DEVONLINE
#define WFS_ALM_DEVOFFLINE WFS_STAT_DEVOFFLINE
#define WFS_ALM_DEVPOWEROFF WFS_STAT_DEVPOWEROFF
#define WFS_ALM_DEVNODEVICE WFS_STAT_DEVNODEVICE
#define WFS_ALM_DEVHWERROR WFS_STAT_DEVHWERROR
#define WFS_ALM_DEVUSERERROR WFS_STAT_DEVUSERERROR
#define WFS_ALM_DEVBUSY WFS_STAT_DEVBUSY
#define WFS_ALM_DEVFRAUDATTEMPT WFS_STAT_DEVFRAUDATTEMPT
#define WFS_ALM_DEVPOTENTIALFRAUD WFS_STAT_DEVPOTENTIALFRAUD

/* values of WFSALMSTATUS.wAntiFraudModule */

#define WFS_ALM_AFMNOTSUPP (0)
#define WFS_ALM_AFMOK (1)
#define WFS_ALM_AFMINOP (2)
#define WFS_ALM_AFMDEVICEDETECTED (3)
#define WFS_ALM_AFMUNKNOWN (4)


/*=================================================================*/
/* ALM Info Command Structures */
/*=================================================================*/

typedef struct _wfs_alm_status
{
WORD fwDevice;
BOOL bAlarmSet;
LPSTR lpszExtra;
WORD wAntiFraudModule;
} WFSALMSTATUS, *LPWFSALMSTATUS;

typedef struct _wfs_alm_caps
{
WORD wClass;
BOOL bProgrammaticallyDeactivate;
LPSTR lpszExtra;
BOOL bAntiFraudModule;
} WFSALMCAPS, *LPWFSALMCAPS;

/* restore alignment */
#pragma pack(pop)

#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /* __INC_XFSALM__H */
6 changes: 3 additions & 3 deletions cen/320/xfsapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ HRESULT extern WINAPI WFSCancelAsyncRequest ( HSERVICE hService, REQUESTID Reque

HRESULT extern WINAPI WFSCancelBlockingCall ( DWORD dwThreadID);

HRESULT extern WINAPI WFSCleanUp ();
HRESULT extern WINAPI WFSCleanUp ( void);

HRESULT extern WINAPI WFSClose ( HSERVICE hService);

Expand All @@ -296,7 +296,7 @@ HRESULT extern WINAPI WFSGetInfo ( HSERVICE hService, DWORD dwCategory, LPVOID l

HRESULT extern WINAPI WFSAsyncGetInfo ( HSERVICE hService, DWORD dwCategory, LPVOID lpQueryDetails, DWORD dwTimeOut, HWND hWnd, LPREQUESTID lpRequestID);

BOOL extern WINAPI WFSIsBlocking ();
BOOL extern WINAPI WFSIsBlocking ( void);

HRESULT extern WINAPI WFSLock ( HSERVICE hService, DWORD dwTimeOut, LPWFSRESULT * lppResult);

Expand All @@ -314,7 +314,7 @@ HRESULT extern WINAPI WFSSetBlockingHook ( XFSBLOCKINGHOOK lpBlockFunc, LPXFSBLO

HRESULT extern WINAPI WFSStartUp ( DWORD dwVersionsRequired, LPWFSVERSION lpWFSVersion);

HRESULT extern WINAPI WFSUnhookBlockingHook ();
HRESULT extern WINAPI WFSUnhookBlockingHook ( void);

HRESULT extern WINAPI WFSUnlock ( HSERVICE hService);

Expand Down
177 changes: 177 additions & 0 deletions cen/320/xfscam.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
/******************************************************************************
* *
* xfscam.h XFS - Camera (CAM) definitions *
* *
* Version 3.20 (March 02 2011) *
* *
******************************************************************************/

#ifndef __INC_XFSCAM__H
#define __INC_XFSCAM__H

#ifdef __cplusplus
extern "C" {
#endif

#include "xfsapi.h"

/* be aware of alignment */
#pragma pack (push, 1)

/* values of WFSCAMCAPS.wClass */

#define WFS_SERVICE_CLASS_CAM (10)
#define WFS_SERVICE_VERSION_CAM (0x1403) /* Version 3.20 */
#define WFS_SERVICE_NAME_CAM "CAM"

#define CAM_SERVICE_OFFSET (WFS_SERVICE_CLASS_CAM * 100)

/* CAM Info Commands */

#define WFS_INF_CAM_STATUS (CAM_SERVICE_OFFSET + 1)
#define WFS_INF_CAM_CAPABILITIES (CAM_SERVICE_OFFSET + 2)

/* CAM Execute Commands */

#define WFS_CMD_CAM_TAKE_PICTURE (CAM_SERVICE_OFFSET + 1)
#define WFS_CMD_CAM_RESET (CAM_SERVICE_OFFSET + 2)
#define WFS_CMD_CAM_TAKE_PICTURE_EX (CAM_SERVICE_OFFSET + 3)

/* CAM Messages */

#define WFS_USRE_CAM_MEDIATHRESHOLD (CAM_SERVICE_OFFSET + 1)
#define WFS_EXEE_CAM_INVALIDDATA (CAM_SERVICE_OFFSET + 2)

/* values of WFSCAMSTATUS.fwDevice */

#define WFS_CAM_DEVONLINE WFS_STAT_DEVONLINE
#define WFS_CAM_DEVOFFLINE WFS_STAT_DEVOFFLINE
#define WFS_CAM_DEVPOWEROFF WFS_STAT_DEVPOWEROFF
#define WFS_CAM_DEVNODEVICE WFS_STAT_DEVNODEVICE
#define WFS_CAM_DEVHWERROR WFS_STAT_DEVHWERROR
#define WFS_CAM_DEVUSERERROR WFS_STAT_DEVUSERERROR
#define WFS_CAM_DEVBUSY WFS_STAT_DEVBUSY
#define WFS_CAM_DEVFRAUDATTEMPT WFS_STAT_DEVFRAUDATTEMPT
#define WFS_CAM_DEVPOTENTIALFRAUD WFS_STAT_DEVPOTENTIALFRAUD

/* number of cameras supported/length of WFSCAMSTATUS.fwCameras field */

#define WFS_CAM_CAMERAS_SIZE (8)
#define WFS_CAM_CAMERAS_MAX (WFS_CAM_CAMERAS_SIZE - 1)

/* indices of WFSCAMSTATUS.fwMedia[...]
WFSCAMSTATUS.fwCameras [...]
WFSCAMSTATUS.usPictures[...]
WFSCAMCAPS.fwCameras [...]
WFSCAMTAKEPICT.wCamera */

#define WFS_CAM_ROOM (0)
#define WFS_CAM_PERSON (1)
#define WFS_CAM_EXITSLOT (2)

/* values of WFSCAMSTATUS.fwMedia */

#define WFS_CAM_MEDIAOK (0)
#define WFS_CAM_MEDIAHIGH (1)
#define WFS_CAM_MEDIAFULL (2)
#define WFS_CAM_MEDIAUNKNOWN (3)
#define WFS_CAM_MEDIANOTSUPP (4)

/* values of WFSCAMSTATUS.fwCameras */

#define WFS_CAM_CAMNOTSUPP (0)
#define WFS_CAM_CAMOK (1)
#define WFS_CAM_CAMINOP (2)
#define WFS_CAM_CAMUNKNOWN (3)

/* values of WFSCAMCAPS.fwType */

#define WFS_CAM_TYPE_CAM (1)

/* values of WFSCAMCAPS.fwCameras */

#define WFS_CAM_NOT_AVAILABLE (0)
#define WFS_CAM_AVAILABLE (1)

/* values of WFSCAMCAPS.fwCamData */

#define WFS_CAM_NOTADD (0)
#define WFS_CAM_AUTOADD (1)
#define WFS_CAM_MANADD (2)

/* values of WFSCAMCAPS.fwCharSupport */

#define WFS_CAM_ASCII (0x0001)
#define WFS_CAM_UNICODE (0x0002)

/* values of WFSCAMSTATUS.wAntiFraudModule */

#define WFS_CAM_AFMNOTSUPP (0)
#define WFS_CAM_AFMOK (1)
#define WFS_CAM_AFMINOP (2)
#define WFS_CAM_AFMDEVICEDETECTED (3)
#define WFS_CAM_AFMUNKNOWN (4)

/* XFS CAM Errors */

#define WFS_ERR_CAM_CAMNOTSUPP (-(CAM_SERVICE_OFFSET + 0))
#define WFS_ERR_CAM_MEDIAFULL (-(CAM_SERVICE_OFFSET + 1))
#define WFS_ERR_CAM_CAMINOP (-(CAM_SERVICE_OFFSET + 2))
#define WFS_ERR_CAM_CHARSETNOTSUPP (-(CAM_SERVICE_OFFSET + 3))
#define WFS_ERR_CAM_FILEIOERROR (-(CAM_SERVICE_OFFSET + 4))

/*=================================================================*/
/* CAM Info Command Structures */
/*=================================================================*/

typedef struct _wfs_cam_status
{
WORD fwDevice;
WORD fwMedia[WFS_CAM_CAMERAS_SIZE];
WORD fwCameras[WFS_CAM_CAMERAS_SIZE];
USHORT usPictures[WFS_CAM_CAMERAS_SIZE];
LPSTR lpszExtra;
WORD wAntiFraudModule;
} WFSCAMSTATUS, *LPWFSCAMSTATUS;

typedef struct _wfs_cam_caps
{
WORD wClass;
WORD fwType;
WORD fwCameras[WFS_CAM_CAMERAS_SIZE];
USHORT usMaxPictures;
WORD fwCamData;
USHORT usMaxDataLength;
WORD fwCharSupport;
LPSTR lpszExtra;
BOOL bPictureFile;
BOOL bAntiFraudModule;
} WFSCAMCAPS, *LPWFSCAMCAPS;

/*=================================================================*/
/* CAM Execute Command Structures */
/*=================================================================*/

typedef struct _wfs_cam_take_picture
{
WORD wCamera;
LPSTR lpszCamData;
LPWSTR lpszUNICODECamData;
} WFSCAMTAKEPICT, *LPWFSCAMTAKEPICT;

typedef struct _wfs_cam_take_picture_ex
{
WORD wCamera;
LPSTR lpszCamData;
LPWSTR lpszUNICODECamData;
LPSTR lpszPictureFile;
} WFSCAMTAKEPICTEX, *LPWFSCAMTAKEPICTEX;

/* restore alignment */
#pragma pack (pop)

#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif /* __INC_XFSCAM__H */
Loading