#ifndef wsms__H
#define wsms__H

#ifndef MYSQL_H
	#include "mysql.h"
#endif

#ifndef WSMS_DEBUG
	#define WSMS_DEBUG 0
#endif

#define CDR_ALARM_FLAG 1

#include "mysql.h"
#include "errmsg.h"
#include <dirent.h>
#include <time.h>
#include "../../../../plat/public/src/include/pub_include.h"
#include "../../../omcLib/c_program/omcLib/omcLib.h"
#include "../../../../plat/public/src/include/asn1.h"
#include "../../../../plat/iptrans/src/include/iptrans.h"
#include "../../../../plat/snmp/src/include/snmp.h"
#include "../../../../plat/mtp3/src/include/mtp3.h"
#include "../../../../plat/sccp/src/include/sccp.h"
#include "../../../../plat/smpp/src/include/smpp.h"

#define HPMN_MAX 100
#define WEL_AD_MAX 32

/* Use for the information of every HPMN */
typedef struct HpmnServer
{
	char mcc[8];					//The mcc of the hpmn server
	char mnc[8];					//The mnc of the hpmn server
	int flag;						//1-enable, 0-disable
	int smsEncode;					//0-7 bit, 1-8 bit, 2-16 bit
	unsigned char wlContent[512];	//The welcome short message of the hpmn server
	int adCount;					//The count of AD short messages
	unsigned char adContent[WEL_AD_MAX][512];	//The content of each AD short message
	int adValid[WEL_AD_MAX];		//The valid flag of each AD short message
}HpmnServer;


/**************************/
/****    function     *****/
/**************************/
int wsms_init(void);
void wsms_timer(void);

#endif


