rb_download.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. #if !defined( _RB_DOWNLOAD_H_ )
  2. #define _RB_DOWNLOAD_H_
  3. #ifndef _TECHTYPE_H
  4. typedef unsigned char U8BIT;
  5. typedef signed char S8BIT;
  6. typedef unsigned short U16BIT;
  7. typedef signed short S16BIT;
  8. typedef unsigned int U32BIT;
  9. typedef signed int S32BIT;
  10. typedef unsigned char* pU8BIT;
  11. typedef unsigned char BOOLEAN;
  12. typedef struct { U32BIT s_len; U8BIT* s_data; } S_STRING;
  13. #endif
  14. #include "hbbtv_si_query.h"
  15. typedef enum
  16. {
  17. /* Requested operation completed successfully */
  18. DSMCC_OK = 0,
  19. /* An error that does not fit any other error code occurred. This is used
  20. * to indicate errors in the controlling application that result in the
  21. * requested operation failing.
  22. */
  23. DSMCC_ERR_OTHER,
  24. /* One or more of the parameters passed was invalid */
  25. DSMCC_ERR_BAD_PARAMETER,
  26. /* There was insufficient memory available to allocate the MHEG-5 component
  27. * memory region.
  28. */
  29. DSMCC_ERR_ALLOCATING_MEMORY_REGION,
  30. /* A session with a CI module has not established. */
  31. DSMCC_ERR_CI_SESSION_NOT_ESTABLISHED,
  32. /* The MHEG-5 component has not been opened by a call to tmMHEG5Open() */
  33. DSMCC_ERR_COMP_NOT_OPEN,
  34. /* The MHEG-5 component has already been opened by a call to tmMHEG5Open()
  35. */
  36. DSMCC_ERR_COMP_ALREADY_OPEN,
  37. /* The MHEG-5 component has not been started by a call to tmMHEG5Start() */
  38. DSMCC_ERR_COMP_NOT_STARTED,
  39. /* The MHEG-5 component has already been started by a call to tmMHEG5Start()
  40. */
  41. DSMCC_ERR_COMP_ALREADY_STARTED,
  42. /* The controlling application was not able to determine the value of the
  43. * MPEG system time clock.
  44. */
  45. DSMCC_ERR_UNABLE_TO_DETERMINE_STC,
  46. /* The specified file was not found */
  47. DSMCC_ERR_FILE_NOT_FOUND,
  48. /* An error internal to the MHEG-5 component has occurred. */
  49. DSMCC_ERR_INTERNAL,
  50. /* Function call had no effect */
  51. DSMCC_IGNOR_REQUEST,
  52. /* specific to PVR, to indicate a booking conflict */
  53. DSMCC_ERR_CONFLICT,
  54. /* specific to PVR, to indicate an alternative booking */
  55. DSMCC_ALTERNATIVE_FOUND,
  56. /* specific to PVR, to indicate result is pending */
  57. MHEG5_RESULT_PENDING,
  58. /* specific to PVR, to indicate out of space*/
  59. DSMCC_INSUFFICIENT_SPACE,
  60. /* specific to PVR, to indicate too many bookings */
  61. DSMCC_ERR_OVERBOOKED
  62. }DsmccRbErr_t;
  63. typedef struct
  64. {
  65. U16BIT original_network_id;
  66. U16BIT transport_stream_id;
  67. U16BIT service_id;
  68. S32BIT ComponentTag;
  69. } DsmccDvbLocator_t, *pDsmccDvbLocator_t;
  70. //BOOLEAN DSMCC_loadStream(char* stream_path, void* ref, S_DVB_LOCATOR* dvbLocator, BOOLEAN* bDvbLocatorSet, void** handle);
  71. //void DSMCC_closeStream(void* handle);
  72. int DSMCC_loadFile(char* path, unsigned char* buf, unsigned int bufSize);
  73. int DSMCC_reloadFile(char* path);
  74. BOOLEAN DSMCC_FileReloaded(char* path);
  75. void DSMCC_RemoveReloadedFile(char* path, BOOLEAN remove);
  76. U32BIT DSMCC_ReloadingFileTimeStamp(char *path);
  77. BOOLEAN DSMCC_IsReloadingFile(char *path);
  78. U32BIT DSMCC_GetTimeStamp(void);
  79. BOOLEAN rbDownload_IsComplete();
  80. /* 0: not found, 1:file, 2:dir */
  81. int DSMCC_getPathType(char* path);
  82. void DsmccRb_ProcessDvpSection(U32BIT carousel_id, void* pSectionInfo, U32BIT sectionLength, U16BIT *pPid);
  83. DsmccRbErr_t DsmccRb_NotifySiQueryResult(void* siUserData,
  84. HBBTVSiQueryStatus_t queryStatus,
  85. HBBTVSiQueryResult_t *pQueryResult,
  86. void* queryHandle);
  87. DsmccRbErr_t DsmccRbOpenFunc(void);
  88. DsmccRbErr_t DsmccRb_Start(DsmccDvbLocator_t *pDvbLocator);
  89. DsmccRbErr_t DsmccRb_Stop( U8BIT action );
  90. DsmccRbErr_t DsmccRb_Reboot( void );
  91. BOOLEAN DsmccRb_IsStarted(void);
  92. #endif /* _RB_DOWNLOAD_H_ */