www.pudn.com > wmmp-sms-linux.rar > xsmsfrm.h, change:2006-12-26,size:6873b


#ifndef _XSMS_FRM_H_ 
#define _XSMS_FRM_H_ 
 
#include "typedef.h" 
 
#ifdef _LINUX_ 
 
extern uchar EG_ucSmsType; 
extern uchar EG_ucSmsCode; 
 
//extern int wait_for_OK(int fd, const char *szMatch, uint uiTime); 
 
extern int gprs_init(int fd, uchar ucSmsType, uchar ucSmsMode); 
extern int gprs_send(int fd, const uchar *pSms, int len, const char *pDest, uchar ucSmsType, uchar ucSmsCode); 
extern int gprs_recv(int fd, uchar *pSms, int *len, uchar ucSmsType, uchar ucSmsCode); 
extern int gprs_ifnew(int fd, uchar ucSmsType, uchar ucSmsCode); 
extern int gprs_parse(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
extern int gprs_delall(int fd); 
 
extern int gprs_parse_pdu(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
extern int gprs_parse_text(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
 
//fidelix 
extern int fidelix_init(int fd, uchar ucSmsType, uchar ucSmsMode); 
extern int fidelix_send(int fd, const uchar *pSms, int len, const char *pDest, uchar ucSmsType, uchar ucSmsCode); 
extern int fidelix_recv(int fd, uchar *pSms, int *len, char *pFrom, uchar ucSmsType, uchar ucSmsCode); 
extern int fidelix_ifnew(int fd, uchar ucSmsType, uchar ucSmsCode); 
extern int fidelix_parse(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
extern int fidelix_delall(int fd); 
 
extern int fidelix_delone(int fd); 
extern int fidelix_getsmscnt(int fd); 
 
 
//bellwave 
extern int bellwave_init(int fd, uchar ucSmsType, uchar ucSmsMode); 
extern int bellwave_send(int fd, const uchar *pSms, int len, const char *pDest, uchar ucSmsType, uchar ucSmsCode); 
extern int bellwave_recv(int fd, uchar *pSms, int *len, char *pFrom, uchar ucSmsType, uchar ucSmsCode); 
extern int bellwave_ifnew(int fd, uchar ucSmsType, uchar ucSmsCode); 
extern int bellwave_parse(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
extern int bellwave_delall(int fd); 
 
extern int bellwave_delone(int fd); 
extern int bellwave_getsmscnt(int fd); 
 
//siemens 
extern int siemens_init(int fd, uchar ucSmsType, uchar ucSmsMode); 
extern int siemens_send(int fd, const uchar *pSms, int len, const char *pDest, uchar ucSmsType, uchar ucSmsCode); 
extern int siemens_recv(int fd, uchar *pSms, int *len, char *pFrom, uchar ucSmsType, uchar ucSmsCode); 
extern int siemens_ifnew(int fd, uchar ucSmsType, uchar ucSmsCode); 
extern int siemens_parse(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
extern int siemens_delall(int fd); 
 
//simcom 
extern int simcom_init(int fd, uchar ucSmsType, uchar ucSmsMode); 
extern int simcom_send(int fd, const uchar *pSms, int len, const char *pDest, uchar ucSmsType, uchar ucSmsCode); 
extern int simcom_recv(int fd, uchar *pSms, int *len, char *pFrom, uchar ucSmsType, uchar ucSmsCode); 
extern int simcom_ifnew(int fd, uchar ucSmsType, uchar ucSmsCode); 
extern int simcom_parse(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
extern int simcom_delall(int fd); 
 
//huawei 
extern int huawei_init(int fd, uchar ucSmsType, uchar ucSmsMode); 
extern int huawei_send(int fd, const uchar *pSms, int len, const char *pDest, uchar ucSmsType, uchar ucSmsCode); 
extern int huawei_recv(int fd, uchar *pSms, int *len, char *pFrom, uchar ucSmsType, uchar ucSmsCode); 
extern int huawei_ifnew(int fd, uchar ucSmsType, uchar ucSmsCode); 
extern int huawei_parse(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
extern int huawei_delall(int fd); 
 
#else 
 
#ifdef __cplusplus 
extern "C" { 
#endif 
 
	uchar ucSmsType; 
	uchar ucSmsCode; 
	 
	int wait_for_OK(int fd, const char *szMatch, uint uiTime); 
	 
	int gprs_init(int fd, uchar ucSmsType, uchar ucSmsMode); 
	int gprs_send(int fd, const uchar *pSms, int len, const char *pDest, uchar ucSmsType, uchar ucSmsCode); 
	int gprs_recv(int fd, uchar *pSms, int *len, uchar ucSmsType, uchar ucSmsCode); 
	int gprs_ifnew(int fd, uchar ucSmsType, uchar ucSmsCode); 
	int gprs_parse(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
	int gprs_delall(int fd); 
	 
	int gprs_parse_pdu(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
	int gprs_parse_text(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
	 
	//fidelix 
	int fidelix_init(int fd, uchar ucSmsType, uchar ucSmsMode); 
	int fidelix_send(int fd, const uchar *pSms, int len, const char *pDest, uchar ucSmsType, uchar ucSmsCode); 
	int fidelix_recv(int fd, uchar *pSms, int *len, char *pFrom, uchar ucSmsType, uchar ucSmsCode); 
	int fidelix_ifnew(int fd, uchar ucSmsType, uchar ucSmsCode); 
	int fidelix_parse(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
	int fidelix_delall(int fd); 
	 
	int fidelix_delone(int fd); 
	int fidelix_getsmscnt(int fd); 
	 
	//bellwave 
	int bellwave_init(int fd, uchar ucSmsType, uchar ucSmsMode); 
	int bellwave_send(int fd, const uchar *pSms, int len, const char *pDest, uchar ucSmsType, uchar ucSmsCode); 
	int bellwave_recv(int fd, uchar *pSms, int *len, char *pFrom, uchar ucSmsType, uchar ucSmsCode); 
	int bellwave_ifnew(int fd, uchar ucSmsType, uchar ucSmsCode); 
	int bellwave_parse(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
	int bellwave_delall(int fd); 
	 
	int bellwave_delone(int fd); 
	int bellwave_getsmscnt(int fd); 
	 
	//siemens 
	int siemens_init(int fd, uchar ucSmsType, uchar ucSmsMode); 
	int siemens_send(int fd, const uchar *pSms, int len, const char *pDest, uchar ucSmsType, uchar ucSmsCode); 
	int siemens_recv(int fd, uchar *pSms, int *len, char *pFrom, uchar ucSmsType, uchar ucSmsCode); 
	int siemens_ifnew(int fd, uchar ucSmsType, uchar ucSmsCode); 
	int siemens_parse(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
	int siemens_delall(int fd); 
	 
	//simcom 
	int simcom_init(int fd, uchar ucSmsType, uchar ucSmsMode); 
	int simcom_send(int fd, const uchar *pSms, int len, const char *pDest, uchar ucSmsType, uchar ucSmsCode); 
	int simcom_recv(int fd, uchar *pSms, int *len, char *pFrom, uchar ucSmsType, uchar ucSmsCode); 
	int simcom_ifnew(int fd, uchar ucSmsType, uchar ucSmsCode); 
	int simcom_parse(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
	int simcom_delall(int fd); 
	 
	//huawei 
	int huawei_init(int fd, uchar ucSmsType, uchar ucSmsMode); 
	int huawei_send(int fd, const uchar *pSms, int len, const char *pDest, uchar ucSmsType, uchar ucSmsCode); 
	int huawei_recv(int fd, uchar *pSms, int *len, char *pFrom, uchar ucSmsType, uchar ucSmsCode); 
	int huawei_ifnew(int fd, uchar ucSmsType, uchar ucSmsCode); 
	int huawei_parse(const uchar *pRawSms, int rawlen, uchar *pMsg, int *msgLen, char *pFrom); 
	int huawei_delall(int fd); 
 
#ifdef __cplusplus 
} 
#endif 
 
#endif 
 
#endif