source: svn/trunk/zasc/app/DST_DB.h @ 22

Last change on this file since 22 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
File size: 1.5 KB
Line 
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
10struct CHANNEL_DISPLAY
11{
12        char num[16];
13        DS_U8 name[64];
14};
15
16struct ChannelMap
17{
18        int rf;
19        char num[10];
20        DS_U16 number;
21        DS_U8  name[64];
22};
23
24struct 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
34ChannelMap* DST_DB_GetChannelMapForChEdit(int *nChannels);
35
36bool DST_DB_PresentChMap();
37
38
39int DST_DB_GetMajor(DS_U8 RF, DS_U16 program_number);
40
41
42int DST_DB_GetMinor(DS_U8 RF, DS_U16 program_number);
43
44
45void DST_DB_ChannelUpDn(bool bUp);
46
47int DST_DB_GetChannelCount();
48
49bool DST_DB_GetCurrentChannelInfo(char* chNum, DS_U32* chName, int *num);
50
51// ºÎÆÃ ÈÄ È¤Àº ¿ÀÅä ½ºÄµ ÈÄ È£Ã⠵ȴÙ.
52void DST_DB_TuneFirstChannel();
53
54int DST_DB_GetProgramNumber(int major, int minor);
55
56int DST_DB_GetProgramNumber(int rf);
57
58void DST_DB_Del();
59
60
61void DST_DB_Del(DS_U8 RF);
62
63
64
65void DST_DB_Sync();
66
67bool DST_DB_IsSync();
68
69void DST_DB_Open();
70
71void DST_DB_Close();
72
73int DST_DB_GetRF(int major, int minor, bool* bFound);
74
75int DST_DB_AvailableChannelCount(int major);
76
77bool DST_DB_PresentMatchChannel(int rf, int major, int minor);
78
79struct SkipList
80{
81        int rf;
82        int program_number;
83};
84
85
86SkipList* DST_DB_GetSkipChannel(int *size);
87int DST_DB_GetSkipChannelCount();
88
89void DST_DB_MakeSkipChannel();
90
91
92void DST_DB_SetSkipChannel(int rf, int program_number, bool bAdd);
93
94#endif
95
Note: See TracBrowser for help on using the repository browser.