/*=========================================================================
** Copyright	: Video Surveillance(China) Co. Ltd
** Version	  : 
** File Name	: 
** Description  : 
				  This file defines the message types that will be communicated
				  in UTSee system, which includes Peer, BC, Tracker, EPG etc.
				  
** Creation	 : 8/29/2006
** Modification : 
** Owner		: 
** ==========================================================================
*/

#ifndef __VS_MESSAGES_HEADER__
#define __VS_MESSAGES_HEADER__

#include "ss_global.h"


#define VS_MSG_BASE		  0x1000
#define VS_MSG_MAX		   0xffff
#define VS_MOD_ZONE		  0x0100
#define	VS_MS_CLIENT_BASE	(VS_MSG_BASE)
#define VS_MC_INTERNAL_BASE	(VS_MSG_BASE + VS_MOD_ZONE*1) 
#define VS_SS_CLIENT_BASE	(VS_MSG_BASE + VS_MOD_ZONE*2) 
#define VS_CTM_CLIENT_BASE	(VS_MSG_BASE + VS_MOD_ZONE*3) 
#define VS_AUTH_MSG_BASE	(VS_MSG_BASE + VS_MOD_ZONE*4)
#define VS_IPC_CONTROL_MSG_BASE	(VS_MSG_BASE + VS_MOD_ZONE*5)
#define VS_MC_SSI_MSG_BASE	(VS_MSG_BASE + VS_MOD_ZONE*6)
#define VS_MC_TS_MSG_BASE	(VS_MSG_BASE + VS_MOD_ZONE*7)
#define VS_MC_TA_MSG_BASE	(VS_MSG_BASE + VS_MOD_ZONE*8)

#define VS_OTHER_MSG_BASE	(VS_MSG_BASE + VS_MOD_ZONE*9)

enum VS_MSG_TYPE
{
//网络消息类型
	//与客户端交互监控相关消息
	MSG_CLIENT_MC_INVITE	= (VS_MS_CLIENT_BASE+1),//请求监控
	MSG_RESP_MC_CLIENT_INVITE			,
	MSG_CLIENT_MC_CLOSE					,  //关闭监控
	MSG_RESP_MC_CLIENT_CLOSE			,	
	MSG_CLIENT_MC_PTZ_REQ				,	//请求操作云台
	MSG_RESP_MC_CLIENT_PTZ_REQ			,
	MSG_CLIENT_MC_PTZ_ACT				,	//云台操作动作
	MSG_RESP_MC_CLIENT_PTZ_ACT			,
	MSG_CLIENT_MC_AUDIO_REQ				,//对讲请求
	MSG_RESP_MC_CLIENT_AUDIO_REQ		,
	MSG_CLIENT_MC_AUDIO_BROADCAST		,	//广播请求
	MSG_RESP_MC_CLIENT_AUDIO_BROADCAST	,
	MSG_CLIENT_MC_AUDIO_CLOSE			,	//关闭对讲/广播
	MSG_RESP_MC_CLIENT_AUDIO_CLOSE		,
	MSG_CLIENT_MC_RESTART				,		//客户端重启
	MSG_RESP_MC_CLIENT_RESTART			,
	MSG_CLIENT_MC_PATROL_REQ			,		//轮巡请求
	MSG_RESP_MC_CLIENT_PATROL_REQ		,
	MSG_CLIENT_MC_PATROL_CLOSE			,	//轮巡关闭
	MSG_RESP_MC_CLIENT_PATROL_CLOSE		,


	MSG_MC_CLIENT_HB			,	//MC->Client心跳
	MSG_CLIENT_MC_HB		,
	
	MSG_MC_CLIENT_TAKEBACK	,//监控媒体流/云台/音频对讲/音频广播操作被抢占
	MSG_MC_CLIENT_RECORD_STATE	,	//录像状态通知
	MSG_MC_CLIENT_EVENT			,	//设备事件
	MSG_MC_CLIENT_ALARM			,	//设备告警


	//MC内部消息
	MSG_MC_HB_TIME_OUT			= (VS_MC_INTERNAL_BASE+1),
	MSG_MC_KILL_DEVICE			,
	MSG_MC_LONG_SDR_TIME_OUT	,
	MSG_MC_MODIFY_DEVICE		,
	MSG_MC_MODIFY_DEVICE_PORT	,
	MSG_MC_RELOAD_VM			,
	MSG_MC_MODIFY_CAMERA_REGINFO,  //摄像头注册信息改变
	MSG_MC_REGETSTREAM,  //重新勾流
	MSG_MC_HOLE_REQ,//路由穿越打洞消息
	MSG_MC_KICK_TALK_USER_AD,		//踢出低优先级的对讲用户，通知Adatpor
	MSG_MC_KICK_TALK_USER_SUBSVR,	//踢出低优先级的对讲用户，通知Subsvr
	MSG_MC_KICK_BROARDCAST_USER,		//踢出低优先级的广播用户，仅发送takeback消息给client
	MSG_MC_KICK_BROARDCAST_DEVICE,	//踢出低优先级用户占用的广播设备，只需要通知Adaptor
	MSG_MC_KICK_BROARDCAST_CONN,	//踢出低优先级用户占用的广播设备的连接，不需要通知Adaptor，移除VMX
	MSG_MC_AUDIO_TALK,		//对讲
	MSG_MC_AUDIO_BROARDCAST,	//内部消息，以便按消息顺序先停止设备的原对讲/广播
	MSG_MC_AUDIO_BROARDCAST_AD,	//广播到一个设备,请求Adaptor
	MSG_MC_CLOSE_BROARDCAST_AD,  //停止广播到一个设备，请求Adaptor
	MSG_MC_CLOSE_AUDIO_AD,		
	MSG_MC_CLOSE_AUDIO_SUBSVR,

	MSG_MC_RE_INIT_DATA,		//通知各模块重新初始化设备等数据
	MSG_MC_MC_CLOSE_USERCONN,			//mc内部通知关闭客户端连接


	//回放消息
	RTSP_MSG_SETUP			   =(VS_SS_CLIENT_BASE+1),
	RTSP_MSG_SETUP_ACK		   ,

	RTSP_MSG_PLAY				,
	RTSP_MSG_PLAY_ACK			,

	RTSP_MSG_PAUSE			   ,
	RTSP_MSG_PAUSE_ACK		   ,

	RTSP_MSG_SETPARAMETER		,
	RTSP_MSG_SETPARAMETER_ACK	,

	RTSP_MSG_TEARDOWN			,
	RTSP_MSG_TEARDOWN_ACK		,

	RTSP_MSG_PLAYQUERY		   ,
	RTSP_MSG_PLAYQUERY_ACK	   ,

	RTSP_MSG_DVR_PLAY			,
	RTSP_MSG_DVR_PLAY_ACK		,

	RTSP_MSG_PLAYNEXTFILE		,
	RTSP_MSG_PLAYNEXTFILE_ACK	,

	RTSP_MSG_OPENHOLE			,
	RTSP_MSG_OPENHOLE_ACK		,


	

	//与客户端交互内容管理相关消息
	//平台录像内容管理相关消息
	MSG_CM_QUERY_FILE		=	(VS_CTM_CLIENT_BASE+1),	//查询平台录像
	MSG_RESP_CM_QUERY_FILE					,		//
	MSG_CM_EXPORT_FILE						,//下载平台录像
	MSG_RESP_CM_EXPORT_FILE					,
	MSG_CM_DEL_FILE							,//删除平台录像
	MSG_RESP_CM_DEL_FILE					,
	MSG_CM_PROTECT_FILE						,//保护平台录像
	MSG_RESP_CM_PROTECT_FILE				,


	//告警上传录像管理相关消息
	MSG_CM_IPC_ALARMUP_QUERY_FILE	,	//查询告警上传录像
	MSG_RESP_CM_IPC_ALARMUP_QUERY_FILE					,		//
	MSG_CM_IPC_ALARMUP_EXPORT_FILE						,//下载告警上传的录像
	MSG_RESP_CM_IPC_ALARMUP_EXPORT_FILE					,
	MSG_CM_IPC_ALARMUP_DEL_FILE							,//删除告警上传录像
	MSG_RESP_CM_IPC_ALARMUP_DEL_FILE					,
	MSG_CM_IPC_ALARMUP_PROTECT_FILE						,//保护告警上传录像
	MSG_RESP_CM_IPC_ALARMUP_PROTECT_FILE				,

	//前端录像内容管理相关消息
	MSG_CLIENT_MC_DVRRECORD_QUERY			,//查询前端录像
	MSG_RESP_MC_CLIENT_DVRRECORD_QUERY		,//
	MSG_CLIENT_MC_DVRRECORD_DOWNLOAD		,//下载前端录像
	MSG_RESP_MC_CLIENT_DVRRECORD_DOWNLOAD	,
	MSG_CLIENT_MC_DVRRECORD_DELETE			,//删除前端录像
	MSG_RESP_MC_CLIENT_DVRRECORD_DELETE		,
	MSG_CLIENT_MC_DVRRECORD_DOWNLOAD_CANCEL,//取消下载前端录像
	MSG_RESP_MC_CLIENT_DVRRECORD_DOWNLOAD_CANCEL,
	MSG_NOTIFY_DVRRECORD_UPLOAD_PROGRESS	,//通知客户端前端录像上载进度
	MSG_NOTIFY_DVRRECORD_UPLOAD_FAILED		,//通知客户端前端录像上载失败
	MSG_NOTIFY_DVRRECORD_UPLOAD_SUCCESSED, //前端通知平台上载文件成功
	MSG_NOTIFY_DVRRECORD_DOWNLOAD			,//通知客户端下载前端录像


	//新增
	MSG_CM_QUERY_DISTRIBUTION,//查询一天内录像情况请求
	MSG_RESP_CM_QUERY_DISTRIBUTION,

	MSG_CM_EXPORT_SPECIFICTIME_FILE,//下载请求时间段内录像内容请求
	MSG_RESP_CM_EXPORT_SPECIFICTIME_FILE,



//登录/认证/用户配置相关
	AUTH_AS_REQ  			=	(VS_AUTH_MSG_BASE+1)		,
	AUTH_AS_RSP			,
	
	AUTH_GET_USR_LIST_REQ	,
	AUTH_GET_USR_LIST_RSP	,
	
	AUTH_GET_GRP_LIST_REQ	,
	AUTH_GET_GRP_LIST_RSP	,
	
	AUTH_SET_USR_PROF_REQ	,
	AUTH_SET_USR_PROF_RSP	,
	
	AUTH_SET_GRP_PROF_REQ	,
	AUTH_SET_GRP_PROF_RSP	,
	
	AUTH_GET_USR_PROF_REQ	,
	AUTH_GET_USR_PROF_RSP	,
	
	AUTH_GET_GRP_PROF_REQ	,
	AUTH_GET_GRP_PROF_RSP	,
	
	AUTH_SET_PSWD_REQ		,
	AUTH_SET_PSWD_RSP		,
	
	AUTH_GET_DOMAIN_LIST_REQ	,
	AUTH_GET_DOMAIN_LIST_RSP	,

	AUTH_GET_DOMAINRELATION_LIST_REQ	,
	AUTH_GET_DOMAINRELATION_LIST_RSP	,

	
	AUTH_LOGOUT_REQ		,
	AUTH_LOGOUT_RSP		,
	
	AUTH_HB_REQ			,
	AUTH_HB_RSP			,

	AUTH_NOTIFY_CLIENT_REBOOT,	//通知客户端重启

	
//前端设备配置/控制相关
	MSG_UPLOADFILE_IPC_REQ = (VS_IPC_CONTROL_MSG_BASE+1),//上传文件到IPC
	MSG_UPLOADFILE_IPC_RSP,
	
	MSG_CONTROL_IPC_REQ,//控制/配置请求
	MSG_CONTROL_IPC_RSP,
	
	MSG_QUERY_IPCFILE_REQ,//查询文件
	MSG_QUERY_IPCFILE_RSP,

	MSG_CANCEL_UPLOADFILE_IPC_REQ,//取消上传文件到IPC
	MSG_CANCEL_UPLOADFILE_IPC_RSP,

	MSG_NOTIFY_UPLOADFILE_IPC_DOWN_PROGRESS,//通知客户端:上传文件到IPC过程中IPC的下载进度
	MSG_NOTIFY_UPLOADFILE_IPC_RESULT,//通知客户端:上传文件到IPC的结果


	MSG_DOWN_IPCFILE_REQ,//下载文件
	MSG_DOWN_IPCFILE_RSP,

	MSG_CANCEL_IPCFILE_DOWN_REQ,//取消下载文件
	MSG_CANCEL_IPCFILE_DOWN_RSP,

	MSG_NOTIFY_IPCFILE_UPLOAD_PROGRESS,//文件上载进度
	MSG_NOTIFY_IPCFILE_UPLOAD_FAILED,//文件上载失败
	MSG_NOTIFY_IPCFILE_DOWN,//文件上载完成，通知客户端下载

	MSG_NOTIFY_IPC_STATUS,	//IPC状态变化，通知客户端

	MSG_APPLY_FOR_FTP_REQ,
	MSG_APPLY_FOR_FTP_RSP,
	

	/* 解码器控制请求开始*/
	MSG_DECODER_CTL_START_REQ,//开始播放请求
	MSG_DECODER_CTL_START_RSP,//开始播放响应

	MSG_DECODER_CTL_STOP_REQ,//停止播放请求
	MSG_DECODER_CTL_STOP_RSP,//停止播放响应

	MSG_DECODER_CTL_PLAY_CUR_SCHEME_REQ,//暂停轮询请求
	MSG_DECODER_CTL_PLAY_CUR_SCHEME_RSP,//暂停轮询响应

	MSG_DECODER_CTL_PLAY_RESUME_REQ,//恢复轮询请求
	MSG_DECODER_CTL_PLAY_RESUME_RSP,//恢复轮询响应

	MSG_DECODER_CTL_PLAY_PRE_SCHEME_REQ,//播放上一个方案请求
	MSG_DECODER_CTL_PLAY_PRE_SCHEME_RSP,//播放上一个方案响应
	
	MSG_DECODER_CTL_PLAY_NEXT_SCHEME_REQ,//播放下一个方案请求
	MSG_DECODER_CTL_PLAY_NEXT_SCHEME_RSP,//播放下一个方案响应

	MSG_DECODER_STATUS_REPORT_REQ,//解码器状态报告请求
	MSG_DECODER_STATUS_REPORT_RSP,//解码器状态报告响应
	/* 解码器控制请求结束*/

	//SSI消息类型
	WS_EVENT_MC_KERNEL		=	(VS_MC_SSI_MSG_BASE+1),
		
	WS_EVENT_AD_GET_STREAM		,	//MC->AD请求流
	WS_EVENT_RSP_AD_GET_STREAM	,	//ad->mc请求流的回应
	WS_EVENT_AD_STOP_STREAM		,	//MC->AD停止流
	WS_EVENT_RSP_AD_STOP_STREAM	,	

	WS_EVENT_VR_GET_STREAM		,	//VR->MC请求流
	WS_EVENT_RSP_VR_GET_STREAM	,	//MC->VR请求流的回应
	WS_EVENT_VR_STOP_STREAM		,	//VR->MC停止流
	WS_EVENT_RSP_VR_STOP_STREAM	,	//MC->VR停止流的回应	
	WS_EVENT_VR_RECORD_STATUS	,	//VR->MC通知录制状态

	WS_EVENT_MC_VR_STREAM_GOTTEN	,	//MC->VR通知取得流，用于需要有流经过就录像的设备的录像//mc_vr_mc_streamgotten_struct
	WS_EVENT_MC_VR_STREAM_STOP	,	//MC->VR通知流已经停止，用于需要有流经过就录像的设备的录像//mc_vr_mc_streamstop_struct

	WS_EVENT_CTM_BACK				,	//MC透传给CTM的客户端请求
	WS_EVENT_CTM_SELF,				   //CTM 模块内部消息
	WS_EVENT_CTM_ADAPTER_BACK   ,	//AD->CTM  内容管理请求的响应或者通知

	WS_EVENT_SUBSVR_TIMER_MSG,		//子网server回应消息超时时，定时器向主任务发送此消息
	WS_EVENT_WAITAD_TIMER_MSG,		//adaptor回应消息超时时，定时器向主任务发送此消息
	WS_EVENT_CONNID_RELEASED,		//根据心跳或者其他事件，导致连接资源被删除，通知状态机清除实例
	WS_EVENT_KICKOUT_LOWER_USER,		//踢出连接到子域的最低优先级用户(用于减少一路连接到该子域的一路流)
	WS_EVENT_CLOSE_INCOMING_STREAM,//关闭连接到设备的incoming流，包括连接到子域服务器的和直连子域设备的

	WS_EVENT_IPC_PLAYBACK_MSG,

	WS_EVENT_IPC_LOGIN,		//IPC登录消息时,由Adaptor通知MC,用于重新勾流
	WS_EVENT_IPC_OFFLINE,		//IPC心跳丢失,由Adaptor通知MC

	WS_EVENT_AD_AUDIO_REQ			,		//MC->AD对讲请求
	WS_EVENT_RSP_AD_AUDIO_REQ	,
	WS_EVENT_AD_BROARDCAST_REQ	,		//MC->AD广播请求
	WS_EVENT_RSP_AD_BROARDCAST_REQ,		
	WS_EVENT_AD_AUDIO_CLOSE,				//MC->AD关闭对讲/广播
	WS_EVENT_RSP_AD_AUDIO_CLOSE	,
	WS_EVENT_AD_ADD_I_FRAME_REQ,		//MC->AD插入I帧

	WS_EVENT_VR_CTM_DEL_OLDFILE,		//VR->CTM删除最早录像


	WS_EVENT_VSS_ADD_SMS_SDR,			//VSS写监控日志
	WS_EVENT_VSS_UPDATE_SMS_SDR,			//VSS更新监控日志
	WS_EVENT_VSS_UPDATE_SMSRESTART_SDR,	//VSS重启，写监控日志
	WS_EVENT_VSS_ADD_DEV_EVENT,		//VSS写设备事件
	WS_EVENT_VSS_ADD_DEV_ALARM,		//VSS写设备告警
	WS_EVENT_VSS_ADD_GPSINFO,		//VSS写GPS位置信息
	WS_EVENT_VSS_ADD_PLAYBACK_SDR,	//VSS写回放日志
	WS_EVENT_VSS_UPDATE_PLAYBACK_SDR,	//VSS更新回放日志
	WS_EVENT_VSS_UPDATE_RECORD_STATUS,	//VSS更新录像状态
	WS_EVENT_VSS_SET_PRESET_INFO,	//VSS设置云台预置点
	
	WS_EVENT_WRITE_SYS_EVENT,	//写系统事件
	WS_EVENT_WRITE_SYS_ALARM,	//写系统告警

	WS_EVENT_VMS_WRITE_SDR,		//VMS写登陆日志
	WS_EVENT_VSS_UPDATE_VSSINFO,	//VSS更改IP后更新DBS信息
	WS_EVENT_ADD_PATH,		//添加存储路径到DBS

//媒体流
	VS_TCPSTREAM_EVENT_IPC_TCP_GOTTEN	=	VS_MC_TS_MSG_BASE+1,	//取得IPC的TCP流
	VS_TCPSTREAM_EVENT_CLI_TCP_GOTTEN,	//取得Client的TCP流
	VS_TCPSTREAM_EVENT_PACKET_REPORT,	//包发送/接收报告
	VS_TCPSTREAM_EVENT_ERASE_IPC_SOCKETFD,	//关闭ipc socket
	VS_TCPSTREAM_EVENT_ERASE_CLI_SOCKETFD,	//关闭Clientsocket
	VS_TCPSTREAM_EVENT_ERASE_OTHER_SOCKETFD	,	//关闭其他socket

	VS_TCPSTREAM_EVENT_ADD_IPC_TCP,		//通知添加IPC TCP
	VS_TCPSTREAM_EVENT_ADD_VSS_TCP,		//通知添加VSS TCP
	VS_TCPSTREAM_EVENT_ADD_CLI_TCP,		//通知添加Client TCP
	VS_TCPSTREAM_EVENT_DEL_IPC_TCP,		//通知删除IPC TCP
	VS_TCPSTREAM_EVENT_DEL_VSS_TCP,		//通知删除VSS TCP
	VS_TCPSTREAM_EVENT_DEL_CLI_TCP,		//通知删除Client TCP
	

//音频流
	VS_TCPAUDIO_EVENT_IPC_TCP_GOTTEN	=	VS_MC_TA_MSG_BASE+1,	//取得IPC的TCP流
	VS_TCPAUDIO_EVENT_CLI_TCP_GOTTEN,	//取得Client的TCP流
	VS_TCPAUDIO_EVENT_ERASE_IPC_SOCKETFD,	//关闭ipc socket
	VS_TCPAUDIO_EVENT_ERASE_CLI_SOCKETFD,	//关闭client socket
	VS_TCPAUDIO_EVENT_ERASE_OTHER_SOCKETFD,	//关闭other socket

	VS_TCPAUDIO_EVENT_ADD_IPC_TCP,		//通知添加IPC TCP
	VS_TCPAUDIO_EVENT_ADD_VSS_TCP,		//通知添加VSS TCP
	VS_TCPAUDIO_EVENT_ADD_CLI_TCP,		//通知添加Client TCP
	VS_TCPAUDIO_EVENT_DEL_IPC_TCP,		//通知删除IPC TCP
	VS_TCPAUDIO_EVENT_DEL_VSS_TCP,		//通知删除VSS TCP
	VS_TCPAUDIO_EVENT_DEL_CLI_TCP,		//通知删除Client TCP
	
	VS_TCPMEDIA_EVENT_DEL_OBJ,			//删除对象
	VS_TCPMEDIA_EVENT_STOP_SEND,			//停止TCP发送任务

	VS_NOTIFY_CONFIG_CHANGED = VS_OTHER_MSG_BASE+1, //客户端通知VMS/VSS/MFS配置更改
	VS_NOTIFY_CONFIG_CHANGED_RSP, 	//VMS/VSS/MFS给客户端的回应消息

	VS_NOTIFY_ALLDEV_STATUS, 		//VMS将所有设备状态通知到客户端
	VS_NOTIFY_ALLCAM_REGINFO, 		//VMS将所有Camera注册信息通知到客户端
	VS_NOTIFY_VSS_CAMERA_REGINFO,	//VMS将Camera注册信息通知到VSS

	VS_GET_SYSTEM_IP_REQ,
	VS_GET_SYSTEM_IP_RSP,
	VS_SET_SYSTEM_IP_REQ,
	VS_SET_SYSTEM_IP_RSP,

	VS_GET_VMS_GENERAL_CFG_REQ,
	VS_GET_VMS_GENERAL_CFG_RSP,	
	VS_SET_VMS_GENERAL_CFG_REQ,
	VS_SET_VMS_GENERAL_CFG_RSP,	
	
	VS_CONTROL_SYSTEM_REQ,
	VS_CONTROL_SYSTEM_RSP,

	VS_SET_SYSTEM_PASSWD_REQ,
	VS_SET_SYSTEM_PASSWD_RSP,


	VS_AUTO_ADD_STORAGEPATH_REQ,
	VS_AUTO_ADD_STORAGEPATH_RSP,
	
	VS_MSG_TYPE_MAX,
};

/*
 * Message Utility Function
 * initial common msg head
*/ 
inline void MSMsgHead_Pad(MSMsgHead_t *pMsgHead, U16 ver, U16 len, U32 msgclass, U32 type, U16 srcInst, U16 destInst) 
{
	pMsgHead->magic = (MSMSGMAGIC);
	pMsgHead->version = (ver);
	pMsgHead->length = (len);
	pMsgHead->MsgClass = (msgclass);
	pMsgHead->MsgType = (type);
	pMsgHead->nSrcInst = (srcInst);
	pMsgHead->nDestInst = (destInst);
}

/* 
 * check common msg head
*/ 
inline BOOL MSMsgHead_Check(MSMsgHead_t *pMsgHead, U16 ver) 
{
	if ((MSMSGMAGIC == (pMsgHead->magic))
		&& (ver == (pMsgHead->version))
		&& (MSMSGMAXSIZE >= (pMsgHead->length)))
	{
		return TRUE;
	}

	return FALSE;
}



//#define MSG_CLIENT_MC_RECORD_REQ		 (VS_MS_CLIENT_BASE+15)	//to be delete---by cham
//#define MSG_RESP_MC_CLIENT_RECORD_REQ	(VS_MS_CLIENT_BASE+16)//to be delete---by cham
//#define MSG_CLIENT_MC_RECORD_CLOSE		 (VS_MS_CLIENT_BASE+17)//to be delete---by cham
//#define MSG_RESP_MC_CLIENT_RECORD_CLOSE	(VS_MS_CLIENT_BASE+18)//to be delete---by cham

//#define MSG_CLIENT_MC_STATUS_PING		   (VS_MS_CLIENT_BASE+30)	//to be delete---by cham
//#define MSG_RESP_MC_CLIENT_STATUS_PING	  (VS_MS_CLIENT_BASE+31)	//to be delete---by cham

/* added for dvr feature in 1.5.2*/
//#define MSG_CLIENT_MC_ALMOUT_QUERY			 (VS_MS_CLIENT_BASE+33)	//to be deleted? 
//#define MSG_RESP_MC_CLIENT_ALMOUT_QUERY		(VS_MS_CLIENT_BASE+34)	//to be deleted? 
//#define MSG_CLIENT_MC_ALMOUT_CTRL			  (VS_MS_CLIENT_BASE+35)		//to be deleted? 
//#define MSG_RESP_MC_CLIENT_ALMOUT_CTRL		 (VS_MS_CLIENT_BASE+36)	//to be deleted? 
//#define MSG_CLIENT_MC_RECORD_QUERY			 (VS_MS_CLIENT_BASE+37)	//move to CTM
//#define MSG_RESP_MC_CLIENT_RECORD_QUERY		(VS_MS_CLIENT_BASE+38) 
//#define MSG_CLIENT_MC_RECORD_NEXT_PAGE		 (VS_MS_CLIENT_BASE+39) 
//#define MSG_RESP_MC_CLIENT_RECORD_NEXT_PAGE	(VS_MS_CLIENT_BASE+40)
//#define MSG_CLIENT_MC_DVR_STATUS_QUERY		 (VS_MS_CLIENT_BASE+41)	//to be deleted? 
//#define MSG_RESP_MC_CLIENT_DVR_STATUS_QUERY	(VS_MS_CLIENT_BASE+42)	//to be deleted? 
//#define MSG_CLIENT_MC_RECORD_CTRL			  (VS_MS_CLIENT_BASE+43)		//to be deleted? 
//#define MSG_RESP_MC_CLIENT_RECORD_CTRL		 (VS_MS_CLIENT_BASE+44)	//to be deleted? 

//#define MSG_MC_CLIENT_TRANSFER	   (VS_MS_CLIENT_BASE+50)	//to be delete---by cham
//#define MSG_RESP_CLIENT_MC_TRANSFER  (VS_MS_CLIENT_BASE+51)	//to be delete---by cham


/*
 * Messages between PBS director and PBS, between PBS director and Client
 */
//#define SD_MSG_BASE							   (VS_MSG_BASE + VS_MOD_ZONE*3) 
//#define SD_SSS_GET_ALL_SESSION			 (SD_MSG_BASE +1)
//#define SD_SSS_HB									(SD_MSG_BASE+2)
//#define SD_SSS_AUDIT								(SD_MSG_BASE+3)
//#define SD_SSS_CREATE_SESSION			   (SD_MSG_BASE+4)
//#define SD_SSS_UPDATE_SESSION			   (SD_MSG_BASE+5)
//#define SD_SSS_CLOSE_SESSION				 (SD_MSG_BASE+6)
//#define SD_SSS_SVR_DOWN						(SD_MSG_BASE+7)
//#define SD_CLIENT_GET_SSS_ADDR			  (SD_MSG_BASE+8)
//#define SD_PRIV_SSS_NO_RSP					 (SD_MSG_BASE+9)


/*
 * Messages between Content Manager Server and VSS
 */
//#define VS_CTM_VSS_BASE		  (VS_MSG_BASE + VS_MOD_ZONE*4) 
//#define MSG_CTM_VSS_STORAGE_STATUS		   (VS_CTM_VSS_BASE + 1)
//#define MSG_CTM_VSS_STORAGE_ACTIVE		   (VS_CTM_VSS_BASE + 2)
//#define MSG_CTM_VSS_STORAGE_DEACTIVE		   (VS_CTM_VSS_BASE + 3)



#endif /* __VS_MESSAGES_HEADER__ */


