| 1 | #ifndef __DST_DB_H__ |
|---|
| 2 | #define __DST_DB_H__ |
|---|
| 3 | |
|---|
| 4 | #include "DST_CommonAPI.h" |
|---|
| 5 | |
|---|
| 6 | #define FLASH_VERSION 1 |
|---|
| 7 | // ä³Î¸ÊÀÌ µÎ °÷¿¡ ÀúÀåµÇ±â ¶§¹®¿¡ FLASH_DB_SIZE´ÂÀüü ä³Î¸Ê Å©±âÀÇ Àý¹ÝÀÌ´Ù. |
|---|
| 8 | #define FLASH_DB_SIZE (FLASH_CH_MAP_SIZE/2) |
|---|
| 9 | |
|---|
| 10 | struct CHANNEL_DISPLAY |
|---|
| 11 | { |
|---|
| 12 | char num[16]; |
|---|
| 13 | DS_U8 name[64]; |
|---|
| 14 | }; |
|---|
| 15 | |
|---|
| 16 | struct ChannelMap |
|---|
| 17 | { |
|---|
| 18 | int rf; |
|---|
| 19 | char num[10]; |
|---|
| 20 | DS_U16 number; |
|---|
| 21 | DS_U8 name[64]; |
|---|
| 22 | }; |
|---|
| 23 | |
|---|
| 24 | struct EPGValue |
|---|
| 25 | { |
|---|
| 26 | DS_U16 source_id; |
|---|
| 27 | DS_U16 event_id; |
|---|
| 28 | DS_U8 title[100]; |
|---|
| 29 | DS_U32 start_time; |
|---|
| 30 | DS_U32 duration; |
|---|
| 31 | |
|---|
| 32 | }; |
|---|
| 33 | |
|---|
| 34 | ChannelMap* DST_DB_GetChannelMapForChEdit(int *nChannels); |
|---|
| 35 | |
|---|
| 36 | bool DST_DB_PresentChMap(); |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | int DST_DB_GetMajor(DS_U8 RF, DS_U16 program_number); |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | int DST_DB_GetMinor(DS_U8 RF, DS_U16 program_number); |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | void DST_DB_ChannelUpDn(bool bUp); |
|---|
| 46 | |
|---|
| 47 | int DST_DB_GetChannelCount(); |
|---|
| 48 | |
|---|
| 49 | bool DST_DB_GetCurrentChannelInfo(char* chNum, DS_U32* chName, int *num); |
|---|
| 50 | |
|---|
| 51 | // ºÎÆÃ ÈÄ È¤Àº ¿ÀÅä ½ºÄµ ÈÄ È£Ã⠵ȴÙ. |
|---|
| 52 | void DST_DB_TuneFirstChannel(); |
|---|
| 53 | |
|---|
| 54 | int DST_DB_GetProgramNumber(int major, int minor); |
|---|
| 55 | |
|---|
| 56 | int DST_DB_GetProgramNumber(int rf); |
|---|
| 57 | |
|---|
| 58 | void DST_DB_Del(); |
|---|
| 59 | |
|---|
| 60 | |
|---|
| 61 | void DST_DB_Del(DS_U8 RF); |
|---|
| 62 | |
|---|
| 63 | |
|---|
| 64 | |
|---|
| 65 | void DST_DB_Sync(); |
|---|
| 66 | |
|---|
| 67 | bool DST_DB_IsSync(); |
|---|
| 68 | |
|---|
| 69 | void DST_DB_Open(); |
|---|
| 70 | |
|---|
| 71 | void DST_DB_Close(); |
|---|
| 72 | |
|---|
| 73 | int DST_DB_GetRF(int major, int minor, bool* bFound); |
|---|
| 74 | |
|---|
| 75 | int DST_DB_AvailableChannelCount(int major); |
|---|
| 76 | |
|---|
| 77 | bool DST_DB_PresentMatchChannel(int rf, int major, int minor); |
|---|
| 78 | |
|---|
| 79 | struct SkipList |
|---|
| 80 | { |
|---|
| 81 | int rf; |
|---|
| 82 | int program_number; |
|---|
| 83 | }; |
|---|
| 84 | |
|---|
| 85 | |
|---|
| 86 | SkipList* DST_DB_GetSkipChannel(int *size); |
|---|
| 87 | int DST_DB_GetSkipChannelCount(); |
|---|
| 88 | |
|---|
| 89 | void DST_DB_MakeSkipChannel(); |
|---|
| 90 | |
|---|
| 91 | |
|---|
| 92 | void DST_DB_SetSkipChannel(int rf, int program_number, bool bAdd); |
|---|
| 93 | |
|---|
| 94 | #endif |
|---|
| 95 | |
|---|