kb_dc_servcfgdata.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:1k
- #ifndef KB_DC_SERVCFGDATA_H
- #define KB_DC_SERVCFGDATA_H
- #define KB_DC_SERVICE_NUM_MAX 20
- #define KB_SERVICE_TYPE_NAME_MAX 30
- //type of configure file
- typedef enum
- {
- SERV_CFG_MAIN = 0,
- SERV_CFG_WEATHER,
- SERV_CFG_GOVERNMENT,
- SERV_CFG_VOTE,
- SERV_CFG_MENU,
- SERV_CFG_ADVERTISE
- }KB_ServCfg_Type;
- typedef struct
- {
- unsigned long m_freq;
- unsigned short m_nPid;
- unsigned long m_transactionsId;
- unsigned char m_string[KB_SERVICE_TYPE_NAME_MAX];
- KB_ServCfg_Type m_type;
- }KB_DC_ServCfg_Map;
- typedef struct
- {
- unsigned char version;
- unsigned short count;
- KB_DC_ServCfg_Map ServCfg[KB_DC_SERVICE_NUM_MAX];
- }KB_DC_ServCfg_Map_Array;
- extern void KB_SetXmlServCfgMapHead(KB_DC_ServCfg_Map_Array *pHead);
- extern KB_DC_ServCfg_Map_Array *KB_GetXmlServCfgMapHead(void);
- /*
- * 将解析的XML业务配置信息装载到DC数据结构里
- */
- extern void KB_DC_ReloadXmlServCfgMap(void);
- /**
- * KB_GetServMapByPara
- * get main frequency cfg node by parameter
- *
- *
- * @return.
- */
- extern KB_DC_ServCfg_Map *KB_GetServMapByPara(unsigned long fre, unsigned char type);
- /**
- * KB_GetServCfgByPara
- * get main frequency cfg node by parameter
- *
- *
- * @return.
- */
- extern KB_DC_ServCfg_Map *KB_GetCurServMapItem(unsigned char type);
- #endif