kb_dc_section.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:2k
- #ifndef SECTION_H
- #define SECTION_H
- #include <stdio.h>
- #include "kb_dc_var.h"
- #include "kb_dc_fileProc.h"
- extern DIIHead diiHead;
- extern DSMCCMessage dsmcMsg;
- extern ModuleInfo modInfo;
- extern GroupInfo giInfo;
- extern DSIHead dsiHead;
- extern DSMCCDownloadData dsmcDownloadData;
- extern DDBHead ddbHead;
- // for DII
- extern int readSection(FILE *fp,unsigned char *section);
- extern int GetDIIHead(unsigned char *section,DIIHead*dii);
- extern unsigned char GetTableID(unsigned char *section);
- extern unsigned char GetSectionVersion(unsigned char *section);
- extern unsigned char GetLastSectionNo(unsigned char *section);
- extern unsigned char GetSectionNo(unsigned char *section);
- extern unsigned short GetSectionLength(unsigned char *section);
- extern int GetMsgHeaderAdapLength(unsigned char *section);
- extern int GetMsgHeaderLength(unsigned char *section);
- extern int GetDIIHead(unsigned char *section,DIIHead *dii);
- extern unsigned char*FindDescriptor(unsigned char*des,unsigned short dslen,unsigned char tag);
- extern int GetModuleInfo(unsigned char *section,int index,ModuleInfo *mi);
- extern int GetModuleName(ModuleInfo *mi,unsigned char *name);
- extern int GetDSMCCMessage(unsigned char *section,DSMCCMessage *msg);
- extern int getModInfoLength(unsigned char *section,int index);
- // for DSI
- extern int GetDSIHead(unsigned char*section,DSIHead *dsi);
- extern int GetGroupCount(unsigned char*section);
- extern int GetGroupInfoLength(unsigned char *section,int index);
- //extern int GetGroupInfo(unsigned char*section,int index,GroupInfo *gi);
- // for DDB
- extern unsigned short GetSectionLength(unsigned char *section);
- extern int GetDDBHead(unsigned char *section,DDBHead *ddbHead);
- extern int GetDSMCCDownloadData(unsigned char *section,DSMCCDownloadData *dsmcDownData);
- extern unsigned char* GetDDBData(unsigned char *section,int* pDataLen);
- extern unsigned int GetModuleId(unsigned char *sec);
- #endif