| 1 | /** |
|---|
| 2 | @file |
|---|
| 3 | DLIB_PSI_Monitor.h |
|---|
| 4 | |
|---|
| 5 | @brief |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | */ |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | #ifndef __DLIB_PSI_MONITOR_H__ |
|---|
| 12 | #define __DLIB_PSI_MONITOR_H__ |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | #include "DHL_PSI.h" |
|---|
| 16 | |
|---|
| 17 | #include "DLIB_PSI.h" |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | #ifdef __cplusplus |
|---|
| 21 | extern "C" { |
|---|
| 22 | #endif |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | #if COMMENT |
|---|
| 27 | ____Overview____(){} |
|---|
| 28 | #endif |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | #if COMMENT |
|---|
| 33 | ____Config____(){} |
|---|
| 34 | #endif |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | #if COMMENT |
|---|
| 39 | ____Types____(){} |
|---|
| 40 | #endif |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | #if COMMENT |
|---|
| 46 | ____Defines____(){} |
|---|
| 47 | #endif |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | #if COMMENT |
|---|
| 55 | ____API____(){} |
|---|
| 56 | #endif |
|---|
| 57 | |
|---|
| 58 | /** |
|---|
| 59 | MonitorPAT will set up a PSI monitor waiting for PAT's |
|---|
| 60 | current_next_indicator should be set to TRUE to get the current PAT |
|---|
| 61 | or FALSE to get the next PAT. |
|---|
| 62 | The eventProc will be called after the first PAT received, or after |
|---|
| 63 | each section in the PAT is received if eager is TRUE., and |
|---|
| 64 | then again depending on updateMode until CancelPSIPidMonitor |
|---|
| 65 | is called. The eventProc should call ParsePAT |
|---|
| 66 | */ |
|---|
| 67 | DHL_RESULT MonitorPAT(tDHL_TSD tsd, |
|---|
| 68 | BOOLEAN current_next_indicator, |
|---|
| 69 | BOOLEAN eager, |
|---|
| 70 | tDHL_PSI_Update updateMode, |
|---|
| 71 | tDHL_PSI_EventProc eventProc, |
|---|
| 72 | UINT32 userParam, |
|---|
| 73 | tDHL_PSI_ControlHandle *returnPSICtl); |
|---|
| 74 | |
|---|
| 75 | /** |
|---|
| 76 | MonitorPMT will set up a PSI monitor waiting for PMT's at the given PID |
|---|
| 77 | and program_number. (The same PID can be used to carry program numbers |
|---|
| 78 | for different programs acording to ISO/IEC 13818-1 Section C.8.2) |
|---|
| 79 | current_next_indicator should be set to TRUE to get the current PMT |
|---|
| 80 | or FALSE to get the next PMT. |
|---|
| 81 | The eventProc will be called after the first PMT received, and |
|---|
| 82 | then again depending on updateMode until CancelPSIPidMonitor |
|---|
| 83 | is called. The eventProc should call ParsePMT |
|---|
| 84 | */ |
|---|
| 85 | DHL_RESULT MonitorPMT(tDHL_TSD tsd, |
|---|
| 86 | UINT16 pid, |
|---|
| 87 | UINT16 program_number, |
|---|
| 88 | BOOLEAN current_next_indicator, |
|---|
| 89 | tDHL_PSI_Update updateMode, |
|---|
| 90 | tDHL_PSI_EventProc eventProc, |
|---|
| 91 | UINT32 userParam, |
|---|
| 92 | tDHL_PSI_ControlHandle *returnPSICtl); |
|---|
| 93 | |
|---|
| 94 | |
|---|
| 95 | |
|---|
| 96 | DHL_RESULT MonitorDIT(tDHL_TSD tsd, |
|---|
| 97 | tDHL_PSI_Update updateMode, |
|---|
| 98 | tDHL_PSI_EventProc eventProc, |
|---|
| 99 | UINT32 userParam, |
|---|
| 100 | tDHL_PSI_ControlHandle *returnPSICtl); |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | #ifdef __cplusplus |
|---|
| 104 | } /* extern "C" */ |
|---|
| 105 | #endif |
|---|
| 106 | |
|---|
| 107 | |
|---|
| 108 | #endif /* __DLIB_PSI_MONITOR_H__ */ |
|---|
| 109 | |
|---|