kb_dc_section.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:2k
源码类别:

DVD

开发平台:

C/C++

  1. #ifndef SECTION_H
  2. #define SECTION_H
  3. #include <stdio.h>
  4. #include "kb_dc_var.h"
  5. #include "kb_dc_fileProc.h"
  6. extern DIIHead diiHead;
  7. extern DSMCCMessage dsmcMsg;
  8. extern ModuleInfo modInfo;
  9. extern GroupInfo giInfo;
  10. extern DSIHead dsiHead;
  11. extern DSMCCDownloadData dsmcDownloadData;
  12. extern DDBHead ddbHead;
  13. // for DII
  14. extern int readSection(FILE *fp,unsigned char *section);
  15. extern int GetDIIHead(unsigned char *section,DIIHead*dii);
  16. extern unsigned char GetTableID(unsigned char *section);
  17. extern unsigned char  GetSectionVersion(unsigned char *section); 
  18. extern unsigned char GetLastSectionNo(unsigned char *section);
  19. extern unsigned char GetSectionNo(unsigned char *section);
  20. extern unsigned short GetSectionLength(unsigned char *section);
  21. extern int GetMsgHeaderAdapLength(unsigned char *section);
  22. extern int GetMsgHeaderLength(unsigned char *section);
  23. extern int GetDIIHead(unsigned char *section,DIIHead *dii);
  24. extern unsigned char*FindDescriptor(unsigned char*des,unsigned short dslen,unsigned char tag);
  25. extern  int GetModuleInfo(unsigned char *section,int index,ModuleInfo *mi);
  26. extern  int GetModuleName(ModuleInfo *mi,unsigned char *name);
  27. extern  int GetDSMCCMessage(unsigned char *section,DSMCCMessage *msg);
  28. extern int getModInfoLength(unsigned char *section,int index);
  29. // for DSI
  30. extern int GetDSIHead(unsigned char*section,DSIHead *dsi);
  31. extern int GetGroupCount(unsigned char*section);
  32. extern int GetGroupInfoLength(unsigned char *section,int index);
  33. //extern int GetGroupInfo(unsigned char*section,int index,GroupInfo *gi);
  34. // for DDB
  35. extern unsigned short GetSectionLength(unsigned char *section);
  36. extern int GetDDBHead(unsigned char *section,DDBHead *ddbHead);
  37. extern int GetDSMCCDownloadData(unsigned char *section,DSMCCDownloadData *dsmcDownData);
  38. extern unsigned char* GetDDBData(unsigned char *section,int* pDataLen);
  39. extern unsigned int GetModuleId(unsigned char *sec);  
  40. #endif