/*
** 240298 cawim - ptr to function typen korrigiert
** 010398 cawim - capi20.h wurde nach isdn\source verschoben
**              - ptr to function typen wieder korrigiert (nur os/2)
*/


//#include "bastypes.h"

#ifdef WIN32

#include <windows.h>

extern DWORD ( APIENTRY *API_REGISTER_20          )( DWORD, DWORD, DWORD, DWORD, DWORD * );
extern DWORD ( APIENTRY *API_RELEASE_20           )( DWORD );
extern DWORD ( APIENTRY *API_PUT_MESSAGE_20       )( DWORD, PVOID );
extern DWORD ( APIENTRY *API_GET_MESSAGE_20       )( DWORD, PVOID * );
extern DWORD ( APIENTRY *API_WAIT_FOR_SIGNAL_20   )( DWORD );
extern VOID  ( APIENTRY *API_GET_MANUFACTURER_20  )( char * );
extern DWORD ( APIENTRY *API_GET_VERSION_20       )( DWORD *, DWORD *, DWORD *, DWORD * );
extern DWORD ( APIENTRY *API_GET_SERIAL_NUMBER_20 )( char * );
extern DWORD ( APIENTRY *API_GET_PROFILE_20       )( PVOID, DWORD );
extern DWORD ( APIENTRY *API_INSTALLED_20         )( VOID );

#endif


#ifdef OS2

#define DWORD unsigned long
#define CallConv2 APIENTRY

extern DWORD ( *CallConv2 API_REGISTER_20          )( DWORD, DWORD, DWORD, DWORD, DWORD * );
extern DWORD ( *CallConv2 API_RELEASE_20           )( DWORD );
extern DWORD ( *CallConv2 API_PUT_MESSAGE_20       )( DWORD, PVOID );
extern DWORD ( *CallConv2 API_GET_MESSAGE_20       )( DWORD, PVOID * );
extern DWORD ( *CallConv2 API_SET_SIGNAL_20        )( DWORD, DWORD );
extern VOID  ( *CallConv2 API_GET_MANUFACTURER_20  )( char * );
extern DWORD ( *CallConv2 API_GET_VERSION_20       )( DWORD *, DWORD *, DWORD *, DWORD * );
extern DWORD ( *CallConv2 API_GET_SERIAL_NUMBER_20 )( char * );
extern DWORD ( *CallConv2 API_GET_PROFILE_20       )( PVOID, DWORD );
extern DWORD ( *CallConv2 API_INSTALLED_20         )( VOID );

#endif

#ifdef UNIX

#define DWORD unsigned long
#define VOID void
#define PVOID void*

extern DWORD API_REGISTER_20          ( DWORD, DWORD, DWORD, DWORD, DWORD * );
extern DWORD API_RELEASE_20           ( DWORD );
extern DWORD API_PUT_MESSAGE_20       ( DWORD, PVOID );
extern DWORD API_GET_MESSAGE_20       ( DWORD, PVOID * );
extern DWORD API_SET_SIGNAL_20        ( DWORD, DWORD );
extern VOID  API_GET_MANUFACTURER_20  ( char * );
extern DWORD API_WAIT_FOR_SIGNAL_20   ( DWORD );
extern DWORD API_GET_VERSION_20       ( DWORD *, DWORD *, DWORD *, DWORD * );
extern DWORD API_GET_SERIAL_NUMBER_20 ( char * );
extern DWORD API_GET_PROFILE_20       ( PVOID, DWORD );
extern DWORD API_INSTALLED_20         ( VOID );

#endif

