DVBCore  22.11.0
Open Source DVB Engine
ap_dbacc.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
24 // pre-processor mechanism so multiple inclusions don't cause compilation error
25 
26 #ifndef _AP_DBACC_H
27 #define _AP_DBACC_H
28 
29 #include "techtype.h"
30 #include "ap_common.h"
31 #include "stbhwtun.h"
32 #include "stbdpc.h" // required for E_STB_DP_TMODE and E_STB_DP_BWIDTH
33 #include "stbsitab.h" /* Required for E_ICON_COORD_SYSTEM */
34 #include "stbgc.h"
35 
36 //---Constant and macro definitions for public use-----------------------------
37 
38 #define ADB_INVALID_DVB_ID 0xffff
39 
40 #define LINK_TYPE_CA_REPLACEMENT_SERVICE 0x03
41 #define LINK_TYPE_SERVICE_REPLACEMENT 0x05
42 
43 // number of service names (default name + preferred names)
44 #define ADB_NUM_SERV_NAME_IDS 6
45 
46 //maximum number of favgroups that can be handled by the database
47 #define ADB_MAX_FAVGROUPS 8
48 
49 /* LNB freq bands */
50 #define LNB_C_BAND_FREQUENCY 5150
51 
52 #define LNB_KU_BAND_FREQUENCY_MINIMUM 9750
53 #define LNB_KU_BAND_FREQUENCY_MAXIMUM 12000
54 
55 #define LNB_KU_BAND_FREQUENCY_LOW LNB_KU_BAND_FREQUENCY_MINIMUM
56 #define LNB_KU_BAND_FREQUENCY_HIGH 10600
57 
58 //---Enumerations for public use-----------------------------------------------
59 typedef enum
60 {
61  ADB_TRANSPORT_LIST_ALL = 0xff,
62  ADB_TRANSPORT_LIST_NOT_TUNED = 0x01,
63  ADB_TRANSPORT_LIST_TUNED = 0x02
64 } ADB_TRANSPORT_LIST_TYPE;
65 
66 typedef enum
67 {
68  ADB_SERVICE_LIST_UNKNOWN = 0x0000,
69  ADB_SERVICE_LIST_TV = 0x0001, // these definitions can be ORed together to make
70  ADB_SERVICE_LIST_RADIO = 0x0002, // combinations, e.g.
71  ADB_SERVICE_LIST_DATA = 0x0004, // ADB_SERVICE_LIST_TV | ADB_SERVICE_LIST_DATA
72  ADB_SERVICE_LIST_DIGITAL = 0x0007,
73  ADB_SERVICE_LIST_IP = 0x0020, // IP services
74  ADB_SERVICE_LIST_FREESAT = 0x0040, // Flag to say that MUST be valid freesat services
75  ADB_SERVICE_LIST_ANALOG = 0x0080,
76  ADB_SERVICE_LIST_TV_DATA = 0x0085,
77  ADB_SERVICE_LIST_FAV_GROUP_A = 0x0100,
78  ADB_SERVICE_LIST_FAV_GROUP_B = 0x0200,
79  ADB_SERVICE_LIST_FAV_GROUP_C = 0x0400,
80  ADB_SERVICE_LIST_FAV_GROUP_D = 0x0800,
81  ADB_SERVICE_LIST_ALL = (ADB_SERVICE_LIST_DIGITAL | ADB_SERVICE_LIST_ANALOG),
82  ADB_SERVICE_LIST_FAV_LIST = 0x8000
83 } ADB_SERVICE_LIST_TYPE;
84 
85 /* Macro to define an ADB_SERVICE_LIST_TYPE for a favourite list */
86 #define ADB_LIST_TYPE_FROM_FAVLIST(id) (((id) << 16) | ADB_SERVICE_LIST_FAV_LIST)
87 #define ADB_FAVLIST_FROM_LIST_TYPE(L) (U8BIT)((L) >> 16)
88 
89 typedef enum /* These values come from the 8bit service type field in the service descriptor */
90 {
91  ADB_SERVICE_TYPE_TV = 0x01,
92  ADB_SERVICE_TYPE_RADIO = 0x02,
93  ADB_SERVICE_TYPE_TELETEXT = 0x03,
94  ADB_SERVICE_TYPE_NVOD_REF = 0x04,
95  ADB_SERVICE_TYPE_NVOD_TIMESHIFT = 0x05,
96  ADB_SERVICE_TYPE_MOSAIC = 0x06,
97  ADB_SERVICE_TYPE_AVC_RADIO = 0x0a,
98  ADB_SERVICE_TYPE_AVC_MOSAIC = 0x0b,
99  ADB_SERVICE_TYPE_DATA = 0x0c,
100  ADB_SERVICE_TYPE_MPEG2_HD = 0x11,
101  ADB_SERVICE_TYPE_AVC_SD_TV = 0x16,
102  ADB_SERVICE_TYPE_AVC_SD_NVOD_TIMESHIFT = 0x17,
103  ADB_SERVICE_TYPE_AVC_SD_NVOD_REF = 0x18,
104  ADB_SERVICE_TYPE_HD_TV = 0x19,
105  ADB_SERVICE_TYPE_AVC_HD_NVOD_TIMESHIFT = 0x1a,
106  ADB_SERVICE_TYPE_AVC_HD_NVOD_REF = 0x1b,
107  ADB_SERVICE_TYPE_UHD_TV = 0x1f,
108  /* Values beloow are chosen so that they do not conflict with broadcast values */
109  ADB_SERVICE_TYPE_ANALOG = 0x100,
110  ADB_SERVICE_TYPE_DSD = 0x101,
111  ADB_SERVICE_TYPE_VIRTUAL = 0x102
112 } ADB_SERVICE_TYPE;
113 
114 typedef enum
115 {
116  /* Video stream types, from least to most preferred */
117  ADB_VIDEO_STREAM,
118  ADB_H264_VIDEO_STREAM,
119  ADB_H265_VIDEO_STREAM,
120  ADB_AVS_VIDEO_STREAM,
121 
122  /* Audio stream types */
123  ADB_AUDIO_STREAM,
124  ADB_AAC_AUDIO_STREAM,
125  ADB_HEAAC_AUDIO_STREAM,
126  ADB_HEAACv2_AUDIO_STREAM,
127  ADB_AC3_AUDIO_STREAM,
128  ADB_EAC3_AUDIO_STREAM,
129 
130  /* Other stream types */
131  ADB_SUBTITLE_STREAM,
132  ADB_DATA_STREAM,
133  ADB_TTEXT_STREAM,
134 
135  ADB_UNKNOWN_STREAM
136 } ADB_STREAM_TYPE;
137 
138 typedef enum
139 {
140  ADB_STREAM_LIST_ALL = 0xff,
141  ADB_VIDEO_LIST_STREAM = 0x01,
142  ADB_AUDIO_LIST_STREAM = 0x02,
143  ADB_SUBTITLE_LIST_STREAM = 0x04,
144  ADB_DATA_LIST_STREAM = 0x08,
145  ADB_TTEXT_LIST_STREAM = 0x10,
146  ADB_TTEXT_SUBT_LIST_STREAM = 0x20
147 } ADB_STREAM_LIST_TYPE;
148 
149 
150 typedef enum
151 {
152  ADB_AUDIO_TYPE_UNDEFINED = 0,
153  ADB_AUDIO_TYPE_NORMAL = 0, /* This name is deprecated and was incorrectly defined as 1
154  * but is retained for backwards compatibility */
155  ADB_AUDIO_TYPE_CLEAN_EFFECTS = 1,
156  ADB_AUDIO_TYPE_FOR_HEARING_IMPAIRED = 2,
157  ADB_AUDIO_TYPE_FOR_VISUALLY_IMPAIRED = 3
158 } ADB_AUDIO_TYPE;
159 
160 
161 typedef enum
162 {
163  ADB_SUBTITLE_TYPE_DVB = 0x10,
164  ADB_SUBTITLE_TYPE_DVB_4_3 = 0x11,
165  ADB_SUBTITLE_TYPE_DVB_16_9 = 0x12,
166  ADB_SUBTITLE_TYPE_DVB_221_1 = 0x13,
167  ADB_SUBTITLE_TYPE_DVB_HD = 0x14,
168  ADB_SUBTITLE_TYPE_DVB_HARD_HEARING = 0x20,
169  ADB_SUBTITLE_TYPE_DVB_HARD_HEARING_4_3 = 0x21,
170  ADB_SUBTITLE_TYPE_DVB_HARD_HEARING_16_9 = 0x22,
171  ADB_SUBTITLE_TYPE_DVB_HARD_HEARING_221_1 = 0x23,
172  ADB_SUBTITLE_TYPE_DVB_HARD_HEARING_HD = 0x24
173 } ADB_SUBTITLE_TYPE;
174 
175 typedef enum
176 {
177  ADB_TELETEXT_TYPE_INITIAL = 0x01,
178  ADB_TELETEXT_TYPE_SUBTITLE = 0x02,
179  ADB_TELETEXT_TYPE_ADDITIONAL_INFO = 0x03,
180  ADB_TELETEXT_TYPE_SCHEDULE = 0x04,
181  ADB_TELETEXT_TYPE_SUBTITLE_HARD_HEARING = 0x05
182 } ADB_TELETEXT_TYPE;
183 
184 typedef enum
185 {
186  ADB_EVENT_CONTENT_UNCLASSIFIED = 0x00,
187  ADB_EVENT_CONTENT_MOVIE = 0x10,
188  ADB_EVENT_CONTENT_NEWS = 0x20,
189  ADB_EVENT_CONTENT_ENTERTAINMENT = 0x30,
190  ADB_EVENT_CONTENT_SPORT = 0x40,
191  ADB_EVENT_CONTENT_CHILD = 0x50,
192  ADB_EVENT_CONTENT_MUSIC = 0x60,
193  ADB_EVENT_CONTENT_ARTS = 0x70,
194  ADB_EVENT_CONTENT_SOCIAL = 0x80,
195  ADB_EVENT_CONTENT_EDUCATION = 0x90,
196  ADB_EVENT_CONTENT_LEISURE = 0xA0,
197  ADB_EVENT_CONTENT_SPECIAL = 0xB0,
198  ADB_EVENT_CONTENT_RESERVED1 = 0xC0,
199  ADB_EVENT_CONTENT_RESERVED2 = 0xD0,
200  ADB_EVENT_CONTENT_RESERVED3 = 0xE0,
201  ADB_EVENT_CONTENT_USERDEFINED = 0xF0,
202 } ADB_EVENT_CONTENT;
203 
204 typedef enum
205 {
206  FAV_GROUP_A = 0x01,
207  FAV_GROUP_B = 0x02,
208  FAV_GROUP_C = 0x04,
209  FAV_GROUP_D = 0x08,
210  FAV_GROUP_ALL = 0x0f
211 } ADB_FAV_GROUP;
212 
213 typedef enum
214 {
215  ADB_PROFILE_TYPE_BROADCAST,
216  ADB_PROFILE_TYPE_CIPLUS
217 } ADB_PROFILE_TYPE;
218 
219 //---Global type defs for public use-------------------------------------------
220 
221 typedef struct
222 {
223  E_STB_DP_LNB_TYPE type;
224  E_STB_DP_LNB_POWER power;
225  E_STB_DP_DISEQC_TONE diseqc_tone;
226  E_STB_DP_DISEQC_CSWITCH c_switch;
227  BOOLEAN is_22k;
228  BOOLEAN is_12v;
229  BOOLEAN is_pulse_posn;
230  BOOLEAN is_diseqc_posn;
231  BOOLEAN is_smatv;
232  U8BIT diseqc_repeats; // 0 to 3 inclusive
233  U8BIT u_switch; // 0 to 16 inclusive
234  U8BIT unicable_chan;
235  U32BIT unicable_if;
236  U8BIT *name;
238 
242 typedef struct
243 {
244  U8BIT stream_content;
245  U8BIT component_type;
246  U8BIT component_tag;
247  U8BIT language_code[3];
249 
250 typedef struct
251 {
252  U8BIT *item_description;
253  U8BIT *item;
255 
256 //---Global Function prototypes for public use---------------------------------
257 
261 void ADB_ResetDatabase(void);
262 
266 void ADB_SaveDatabase(void);
267 
277 void ADB_SaveEventSchedule(E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite);
278 
285 void ADB_DeleteServices(E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite);
286 
292 void ADB_ReleaseNameList(U8BIT **name_list, U16BIT num_names);
293 
298 U16BIT ADB_GetNumLNBBands(void);
299 
306 void* ADB_AddLNBBand(S_STB_DP_LNB_BAND *band_parameters, void *lnb_ptr);
307 
313 void* ADB_GetNextLNBBand(void *band_ptr);
314 
320 void* ADB_GetLNBBandLNB(void *band_ptr);
321 
328 BOOLEAN ADB_GetLNBBandParameters(void *band_ptr, S_STB_DP_LNB_BAND *params);
329 
334 void ADB_DeleteAssociatedLNBBands(void *lnb_ptr);
335 
340 U16BIT ADB_GetNumSatellites(void);
341 
352 void* ADB_AddSatellite(U8BIT *name_str, U16BIT dish_pos, U16BIT long_pos, BOOLEAN east_west, void *lnb_ptr);
353 
359 void* ADB_GetNextSatellite(void *sat_ptr);
360 
366 U8BIT* ADB_GetSatelliteName(void *sat_ptr);
367 
373 void* ADB_GetSatelliteLNB(void *sat_ptr);
374 
380 U16BIT ADB_GetSatelliteLongitude(void *sat_ptr);
381 
387 BOOLEAN ADB_GetSatelliteDirection(void *sat_ptr);
388 
393 U16BIT ADB_GetNumLNBs(void);
394 
400 void* ADB_AddLNB(ADB_LNB_SETTINGS *settings);
401 
407 void* ADB_GetNextLNB(void *lnb_ptr);
408 
415 BOOLEAN ADB_GetLNBSettings(void *lnb_ptr, ADB_LNB_SETTINGS *settings);
416 
421 U16BIT ADB_GetNumNetworks(void);
422 
430 void ADB_GetNetworkList(void ***nlist_ptr, U16BIT *num_entries_ptr);
431 
436 void ADB_ReleaseNetworkList(void **nlist);
437 
446 U8BIT** ADB_GetNetworkListNames(void **nlist, U16BIT num_entries, BOOLEAN short_names);
447 
456 U32BIT* ADB_GetNetworkListIds(void **nlist, U16BIT num_entries);
457 
464 U8BIT* ADB_GetNetworkName(void *n_ptr);
465 
473 U8BIT* ADB_GetNetworkNameByLang(void *n_ptr, U8BIT lang);
474 
480 U16BIT ADB_GetNetworkId(void *n_ptr);
481 
487 U8BIT ADB_GetNetworkTargetCountries(U32BIT **code_array);
488 
498 U16BIT ADB_GetNetworkPrimaryTargetRegions(U32BIT country_code, U8BIT **code_array, U8BIT ***name_array);
499 
511 U16BIT ADB_GetNetworkSecondaryTargetRegions(U32BIT country_code, U8BIT primary_region,
512  U8BIT **code_array, U8BIT ***name_array);
513 
526 U16BIT ADB_GetNetworkTertiaryTargetRegions(U32BIT country_code, U8BIT primary_region,
527  U8BIT secondary_region, U16BIT **code_array, U8BIT ***name_array);
528 
534 void* ADB_GetTunedNetwork(U8BIT path);
535 
540 U16BIT ADB_GetNumTransports(void);
541 
549 void* ADB_AddIPTransport(U16BIT onet_id, U16BIT tran_id, U8BIT *url);
550 
558 void ADB_GetTransportList(void ***tlist_ptr, U16BIT *num_entries_ptr);
559 
571 void ADB_GetTransportListForTunerType(E_STB_DP_SIGNAL_TYPE tuner_type, void ***tlist_ptr,
572  U16BIT *num_entries_ptr);
573 
583 void ADB_GetNetworkTransportList(void *n_ptr, void ***tlist_ptr, U16BIT *num_entries_ptr);
584 
590 void ADB_ReleaseTransportList(void **tlist, U16BIT num_transports);
591 
599 U8BIT** ADB_GetTransportListNames(void **tlist, U16BIT num_entries);
600 
609 U32BIT* ADB_GetTransportListTids(void **tlist, U16BIT num_entries);
610 
620 U32BIT* ADB_GetTransportListTunedStrengths(void **tlist, U16BIT num_entries);
621 
631 U32BIT* ADB_GetTransportListOriginalNetworkIds(void **tlist, U16BIT num_entries);
632 
641 U32BIT* ADB_GetTransportListFreqs(void **tlist, U16BIT num_entries);
642 
648 E_STB_DP_SIGNAL_TYPE ADB_GetTransportSignalType(void *t_ptr);
649 
656 U8BIT* ADB_GetTransportName(void *t_ptr);
657 
663 U16BIT ADB_GetTransportTid(void *t_ptr);
664 
670 U16BIT ADB_GetTransportOriginalNetworkId(void *t_ptr);
671 
677 void* ADB_GetTransportNetworkPtr(void *t_ptr);
678 
685 U32BIT ADB_GetTransportFreqHz(void *t_ptr);
686 
692 U8BIT ADB_GetTransportBwidth(void *t_ptr);
693 
699 S8BIT ADB_GetTransportOffset(void *t_ptr);
700 
706 E_STB_TUNE_TCONST ADB_GetTransportConstellation(void *t_ptr);
707 
713 E_STB_DP_TMODE ADB_GetTransportTerrMode(void *t_ptr);
714 
720 E_STB_TUNE_TCODERATE ADB_GetTransportLpCodeRate(void *t_ptr);
721 
727 E_STB_TUNE_TCODERATE ADB_GetTransportHpCodeRate(void *t_ptr);
728 
734 E_STB_TUNE_TGUARDINT ADB_GetTransportGuardInt(void *t_ptr);
735 
741 E_STB_TUNE_THIERARCHY ADB_GetTransportHierarchy(void *t_ptr);
742 
748 E_STB_DP_CMODE ADB_GetTransportCableMode(void *t_ptr);
749 
755 U16BIT ADB_GetTransportCableSymbolRate(void *t_ptr);
756 
762 U16BIT ADB_GetTransportSatelliteSymbolRate(void *t_ptr);
763 
769 U8BIT ADB_GetTransportTunedStrength(void *t_ptr);
770 
776 U8BIT ADB_GetTransportTunedQuality(void *t_ptr);
777 
784 void* ADB_GetFullSITransport(void *n_ptr);
785 
791 void* ADB_GetEPGService(void *n_ptr);
792 
802 void ADB_GetTransportTerrestrialTuningParams(void *t_ptr, E_STB_DP_TTYPE *terr_type, U32BIT *freq_hz,
803  E_STB_DP_TMODE *mode, E_STB_DP_TBWIDTH *bwidth, U8BIT *plp_id);
804 
812 void ADB_GetTransportAnalogTuningParams(void *t_ptr, U32BIT *freq_hz, S8BIT *offset,
813  E_STB_DP_ANALOG_VIDEO_TYPE *vtype);
814 
822 void ADB_GetTransportCableTuningParams(void *t_ptr, U32BIT *freq_hz, E_STB_DP_CMODE *mode,
823  U16BIT *symrate);
824 
835 void ADB_GetTransportSatTuningParams(void *t_ptr, U32BIT *freq_hz, E_STB_DP_POLARITY *polarity,
836  U16BIT *symrate, E_STB_DP_FEC *fec, BOOLEAN *dvb_s2, E_STB_DP_MODULATION *modulation);
837 
843 void* ADB_GetTransportSatellite(void *t_ptr);
844 
852 void* ADB_GetTransportFromIds(U16BIT net_id, U16BIT onet_id, U16BIT tran_id);
853 
860 void ADB_SetTunedTransport(U8BIT path, void *t_ptr);
861 
867 void* ADB_GetTunedTransport(U8BIT path);
868 
880 void* ADB_AddServiceUsingDsd(U8BIT *data, U16BIT service_id);
881 
897 void* ADB_AddIPService(void *t_ptr, U16BIT service_id, ADB_SERVICE_TYPE type, U8BIT *name, U16BIT lcn,
898  U8BIT *url, U16BIT port, E_STB_DP_FEC_LAYER fec_layer, S_STB_DP_FEC_LAYER_INFO *fec_info);
899 
904 U16BIT ADB_GetNumServices(void);
905 
914 U16BIT ADB_GetNumServicesInList(U32BIT list_type, BOOLEAN inc_hidden);
915 
926 void ADB_GetServiceList(U32BIT list_type, void ***slist_ptr, U16BIT *num_entries_ptr);
927 
940 void ADB_GetServiceListIncludingHidden(U32BIT list_type, void ***slist_ptr, U16BIT *num_entries_ptr,
941  BOOLEAN ignore_selectable);
942 
949 U16BIT ADB_GetNumDeletedServices(E_STB_DP_SIGNAL_TYPE tuner_type);
950 
959 U16BIT ADB_GetDeletedServiceList(E_STB_DP_SIGNAL_TYPE tuner_type, void ***slist_ptr);
960 
969 void ADB_GetTransportServiceList(void *t_ptr, void ***slist_ptr, U16BIT *num_entries_ptr);
970 
980 void ADB_GetNetworkServiceList(void *n_ptr, void ***slist_ptr, U16BIT *num_entries_ptr);
981 
990 void ADB_GetUnavailableServiceList(void ***slist_ptr, U16BIT *num_entries_ptr);
991 
1000 void ADB_GetLockedServiceList(void ***slist_ptr, U16BIT *num_entries_ptr);
1001 
1008 void ADB_ReleaseServiceList(void **slist, U16BIT num_servs);
1009 
1018 void ADB_GetServiceListLockedSubset(void **slist, U16BIT num_entries,
1019  void ***locked_slist_ptr, U16BIT *locked_num_entries_ptr);
1020 
1027 void ADB_SortServiceListAlphabetically(void **slist, U16BIT num_entries, BOOLEAN short_name);
1028 
1034 BOOLEAN ADB_IsValidService(void *serv_ptr);
1035 
1043 E_STB_DP_SIGNAL_TYPE ADB_GetServiceSignalType(void *s_ptr, BOOLEAN *is_sig2);
1044 
1053 void* ADB_GetNextServiceInList(U32BIT list_type, void *serv);
1054 
1063 void* ADB_GetPrevServiceInList(U32BIT list_type, void *serv);
1064 
1074 void* ADB_FindServiceByLcn(U32BIT list_type, U16BIT lcn, BOOLEAN show_unselectable);
1075 
1083 void* ADB_FindServiceByNearestLcn(U32BIT list_type, U16BIT lcn);
1084 
1092 void* ADB_FindServiceByIds(U16BIT onet_id, U16BIT tid, U16BIT sid);
1093 
1101 U16BIT ADB_FindLcnInServiceList(U16BIT lcn, void **slist_ptr, U16BIT num_entries);
1102 
1111 U16BIT ADB_FindNearestLcnInServiceList(U16BIT lcn, void **slist_ptr, U16BIT num_entries);
1112 
1120 U16BIT ADB_FindServiceInList(void *s_ptr, void **slist_ptr, U16BIT num_entries);
1121 
1130 U8BIT** ADB_GetServiceListFullNames(void **slist, U16BIT num_entries, BOOLEAN use_pref_names);
1131 
1141 U8BIT** ADB_GetServiceListShortNames(void **slist, U16BIT num_entries, BOOLEAN use_pref_names);
1142 
1151 U16BIT* ADB_GetServiceListLcns(void **slist, U16BIT num_entries);
1152 
1161 U16BIT* ADB_GetServiceListOrigLcns(void **slist, U16BIT num_entries);
1162 
1172 U32BIT* ADB_GetServiceListUnavailableFlag(void **slist, U16BIT num_entries);
1173 
1184 U32BIT* ADB_GetServiceListNewFlag(void **slist, U16BIT num_entries);
1185 
1196 U32BIT* ADB_GetServiceListLockedFlag(void **slist, U16BIT num_entries);
1197 
1204 void ADB_SetServiceListLockedFlag(void **slist, U16BIT num_entries, BOOLEAN locked);
1205 
1215 U32BIT* ADB_GetServiceListScrambledFlag(void **slist, U16BIT num_entries);
1216 
1226 U32BIT* ADB_GetServiceListHdFlag(void **slist, U16BIT num_entries);
1227 
1237 U32BIT* ADB_GetServiceListHiddenFlag(void **slist, U16BIT num_entries);
1238 
1247 U8BIT** ADB_GetServiceListNetworkNames(void **slist, U16BIT num_entries);
1248 
1257 U8BIT** ADB_GetServiceListTransportNames(void **slist, U16BIT num_entries);
1258 
1267 U32BIT* ADB_GetServiceListTransportStrengths(void **slist, U16BIT num_entries);
1268 
1275 void ADB_SetServiceHiddenFlag(void *s_ptr, BOOLEAN hidden);
1276 
1283 BOOLEAN ADB_GetServiceHiddenFlag(void *s_ptr);
1284 
1290 BOOLEAN ADB_GetServiceSelectableFlag(void *s_ptr);
1291 
1297 BOOLEAN ADB_GetServiceLcnEditable(void *s_ptr);
1298 
1305 void ADB_SetServiceDeletedFlag(void *s_ptr, BOOLEAN deleted);
1306 
1314 U8BIT* ADB_GetServiceFullName(void *s_ptr, BOOLEAN use_pref_name);
1315 
1323 U8BIT* ADB_GetServiceShortName(void *s_ptr, BOOLEAN use_pref_name);
1324 
1334 U8BIT* ADB_GetServiceFullNameByLangAndPrefId(void *s_ptr, U8BIT lang, U8BIT pref_name_id);
1335 
1345 U8BIT* ADB_GetServiceShortNameByLangAndPrefId(void *s_ptr, U8BIT lang, U8BIT pref_name_id);
1346 
1352 U16BIT ADB_GetServiceLcn(void *s_ptr);
1353 
1360 void ADB_SetServiceLcn(void *s_ptr, U16BIT lcn);
1361 
1367 U16BIT ADB_GetServiceId(void *s_ptr);
1368 
1376 void ADB_GetServiceIds(void *s_ptr, U16BIT *onet_id, U16BIT *trans_id, U16BIT *serv_id);
1377 
1384 void ADB_SetServiceScheduleState(void *s_ptr, BOOLEAN state);
1385 
1391 BOOLEAN ADB_GetServiceScheduleState(void *s_ptr);
1392 
1399 void ADB_SetServiceNowNextState(void *s_ptr, BOOLEAN state);
1400 
1406 BOOLEAN ADB_GetServiceNowNextState(void *s_ptr);
1407 
1411 void ADB_SortServicesByLcn(void);
1412 
1418 U16BIT ADB_GetServiceOrigLcn(void *s_ptr);
1419 
1425 U16BIT ADB_GetServicePCRPid(void *s_ptr);
1426 
1434 U16BIT ADB_GetServiceAudioPid(void *s_ptr);
1435 
1441 ADB_STREAM_TYPE ADB_GetServiceAudioType(void *s_ptr);
1442 
1448 U16BIT ADB_GetServiceVideoPid(void *s_ptr);
1449 
1455 ADB_STREAM_TYPE ADB_GetServiceVideoType(void *s_ptr);
1456 
1464 U16BIT ADB_GetServiceTextPid(void *s_ptr);
1465 
1471 BOOLEAN ADB_GetServiceIsHd(void *s_ptr);
1472 
1479 U16BIT ADB_GetRequiredAudioPid(void *s_ptr);
1480 
1488 U16BIT ADB_GetRequiredADPid(void *s_ptr, BOOLEAN *broadcast_mix);
1489 
1496 E_STB_DP_AUDIO_MODE ADB_GetRequiredAudioMode(void *s_ptr);
1497 
1507 U16BIT ADB_GetRequiredTtextPid(void *s_ptr, BOOLEAN for_subtitles, U8BIT *magazine, U8BIT *page);
1508 
1517 U16BIT ADB_GetRequiredSubtitleParams(void *s_ptr, U16BIT *cpage_ptr, U16BIT *apage_ptr);
1518 
1524 ADB_SERVICE_TYPE ADB_GetServiceType(void *s_ptr);
1525 
1533 U8BIT* ADB_GetServiceProviderName(void *s_ptr);
1534 
1543 U8BIT* ADB_GetServiceProviderNameByLang(void *s_ptr, U8BIT lang);
1544 
1551 BOOLEAN ADB_GetServiceUnavailableFlag(void *s_ptr);
1552 
1558 U8BIT ADB_GetServiceRunningStatus(void *s_ptr);
1559 
1567 BOOLEAN ADB_GetServiceNotRunningFlag(void *s_ptr);
1568 
1576 BOOLEAN ADB_GetServiceNewFlag(void *s_ptr);
1577 
1584 BOOLEAN ADB_GetServiceLockedFlag(void *s_ptr);
1585 
1591 void ADB_ToggleServiceLockedFlag(void *s_ptr);
1592 
1598 void ADB_SetServiceLockedFlag(void *s_ptr, BOOLEAN locked);
1599 
1607 BOOLEAN ADB_GetServiceScrambledFlag(void *s_ptr);
1608 
1614 BOOLEAN ADB_GetServiceHasCaDesc(void *s_ptr);
1615 
1623 BOOLEAN ADB_GetServiceDoNotScramble(void *s_ptr);
1624 
1631 U8BIT ADB_GetServiceContentProtectionLevel(void *s_ptr);
1632 
1638 BOOLEAN ADB_IsFreesatService(void *s_ptr);
1639 
1645 U16BIT ADB_GetFreesatServiceId(void *s_ptr);
1646 
1652 void* ADB_GetServiceTransportPtr(void *s_ptr);
1653 
1660 U8BIT* ADB_GetServiceDefaultAuthority(void *serv_ptr);
1661 
1668 void ADB_ServiceAddRCTLink(void *serv_ptr, void *link_ptr);
1669 
1674 void ADB_ServiceReleaseRCTLinks(void *serv_ptr);
1675 
1681 U8BIT ADB_GetServiceNumRCTLinks(void *serv_ptr);
1682 
1690 void* ADB_GetServiceRCTLinks(void *serv_ptr, U8BIT *num_links);
1691 
1697 void* ADB_GetNextRCTLink(void *link_ptr);
1698 
1703 void ADB_ReleaseRCTLinks(void *links);
1704 
1710 U8BIT* ADB_GetRCTLinkPromoText(void *link_ptr);
1711 
1717 BOOLEAN ADB_IsRCTLinkGroupTrailer(void *link_ptr);
1718 
1724 U8BIT* ADB_GetRCTLinkName(void *link_ptr);
1725 
1731 U8BIT* ADB_GetRCTLinkUriString(void *link_ptr);
1732 
1739 BOOLEAN ADB_ServiceRCTCanUseDefaultIcon(void *serv_ptr);
1740 
1756 BOOLEAN ADB_ServiceGetRCTIcon(void *serv_ptr, U8BIT **icon_data, U32BIT *data_size, BOOLEAN *pos_valid,
1757  U16BIT *x_pos, U16BIT *y_pos, U16BIT *width, U16BIT *height, E_ICON_COORD_SYSTEM *coord_system);
1758 
1767 BOOLEAN ADB_ServiceAddImageIcon(void *serv_ptr, void *icon_ptr);
1768 
1775 void* ADB_GetAlternativeService(void *s_ptr, U8BIT alt_serv_type);
1776 
1783 U16BIT ADB_ServiceGetSubtitlePid(void *serv_ptr, ADB_SUBT_INFO *subt_info);
1784 
1791 BOOLEAN ADB_ServiceHasSubtitles(void *serv_ptr, E_SUBTITLE_FORMAT *subs_format);
1792 
1799 void ADB_SetTunedService(U8BIT path, void *s_ptr);
1800 
1806 void* ADB_GetTunedService(U8BIT path);
1807 
1812 void ADB_DeleteServiceRec(void *s_ptr);
1813 
1820 U16BIT ADB_GetNumStreams(void *serv_ptr, ADB_STREAM_LIST_TYPE stream_list_type);
1821 
1831 void ADB_GetStreamList(void *serv_ptr, ADB_STREAM_LIST_TYPE stream_list_type, void ***streamlist_ptr, U16BIT *num_entries_ptr);
1832 
1838 void ADB_ReleaseStreamList(void **streamlist_ptr, U16BIT num_entries);
1839 
1845 ADB_STREAM_TYPE ADB_GetStreamType(void *stream_ptr);
1846 
1852 U8BIT ADB_GetStreamNumTags(void *stream_ptr);
1853 
1860 U8BIT ADB_GetStreamTag(void *stream_ptr, U8BIT index);
1861 
1867 U8BIT ADB_GetStreamNumCaptionServices(void *stream_ptr);
1868 
1875 BOOLEAN ADB_GetCaptionServiceDigitalCc(void *stream_ptr, U8BIT index);
1876 
1883 U8BIT ADB_GetCaptionServiceNumber(void *stream_ptr, U8BIT index);
1884 
1891 BOOLEAN ADB_GetCaptionServiceEasyReader(void *stream_ptr, U8BIT index);
1892 
1899 BOOLEAN ADB_GetCaptionServiceWideAspectRatio(void *stream_ptr, U8BIT index);
1900 
1907 U32BIT ADB_GetCaptionServiceLangCode(void *stream_ptr, U8BIT index);
1908 
1917 U16BIT ADB_GetStreamTagContentType(void *stream_ptr, U8BIT index);
1918 
1924 U16BIT ADB_GetStreamPID(void *stream_ptr);
1925 
1932 BOOLEAN ADB_GetStreamInUse(void *stream_ptr);
1933 
1939 S8BIT ADB_GetStreamCcInUse(void *stream_ptr);
1940 
1946 BOOLEAN ADB_GetStreamHasCaDesc(void *stream_ptr);
1947 
1954 U8BIT ADB_GetStreamComponentType(void *stream_ptr);
1955 
1961 U32BIT ADB_GetAudioStreamLangCode(void *stream_ptr);
1962 
1968 ADB_AUDIO_TYPE ADB_GetAudioStreamType(void *stream_ptr);
1969 
1975 E_STB_DP_AUDIO_MODE ADB_GetAudioStreamMode(void *stream_ptr);
1976 
1982 U32BIT ADB_GetTtextStreamLangCode(void *stream_ptr);
1983 
1989 U8BIT ADB_GetTtextStreamType(void *stream_ptr);
1990 
1996 U8BIT ADB_GetTtextStreamMagazine(void *stream_ptr);
1997 
2003 U8BIT ADB_GetTtextStreamPage(void *stream_ptr);
2004 
2010 U32BIT ADB_GetSubtitleStreamLangCode(void *stream_ptr);
2011 
2017 ADB_SUBTITLE_TYPE ADB_GetSubtitleStreamType(void *stream_ptr);
2018 
2024 U16BIT ADB_GetSubtitleStreamCompositionPage(void *stream_ptr);
2025 
2031 U16BIT ADB_GetSubtitleStreamAncillaryPage(void *stream_ptr);
2032 
2038 void ADB_SetAudioLang(U32BIT country_code, U8BIT lang_id);
2039 
2046 void ADB_SetSecondaryAudioLang(U32BIT country_code, U8BIT lang_id);
2047 
2053 void ADB_SetTextLang(U32BIT country_code, U8BIT lang_id);
2054 
2061 void ADB_SetSecondaryTextLang(U32BIT country_code, U8BIT lang_id);
2062 
2063 // now/next and schedule events
2064 
2074 void ADB_GetNowNextEvents(void *serv_ptr, void **now_event, void **next_event);
2075 
2087 void ADB_GetEventSchedule(BOOLEAN include_old_events, void *serv_ptr, void ***elist_ptr,
2088  U16BIT *num_entries_ptr);
2089 
2101 void ADB_GetEventScheduleByGenre(ADB_EVENT_CONTENT genre, BOOLEAN include_old_events,
2102  void *serv_ptr, void ***elist_ptr, U16BIT *num_entries_ptr);
2103 
2108 void ADB_ReleaseEventData(void *event_ptr);
2109 
2115 void ADB_ReleaseEventList(void **elist, U16BIT num_entries);
2116 
2122 void ADB_DeleteServiceEvents(void *serv_ptr, BOOLEAN delete_now_next);
2123 
2128 void ADB_DeleteAllServiceEvents(BOOLEAN delete_now_next);
2129 
2136 void* ADB_GetEvent(void *serv_ptr, U16BIT event_id);
2137 
2151 U8BIT* ADB_GetEventSIDescriptorData(void *serv_ptr, U16BIT event_id, U8BIT dtag_id,
2152  S16BIT ext_dtag_id, U32BIT private_data_specifier, U16BIT *desc_len);
2153 
2159 void ADB_ReleaseEventSIDescriptorData(U8BIT *desc_data, U16BIT desc_len);
2160 
2167 void* ADB_EarlierEvent(void *serv_ptr, U32DHMS time);
2168 
2175 void* ADB_LaterEvent(void *serv_ptr, U32DHMS time);
2176 
2185 void* ADB_GetEarlierEvent(void *serv_ptr, U16BIT date, U8BIT hour, U8BIT min);
2186 
2195 void* ADB_GetLaterEvent(void *serv_ptr, U16BIT date, U8BIT hour, U8BIT min);
2196 
2204 void* ADB_FindEventFromTime(U32DHMS time, void *serv_ptr);
2205 
2212 void* ADB_FindEITScheduleEventFromTime(U32DHMS time, void *serv_ptr);
2213 
2219 U32DHMS ADB_GetEventStartDateTime(void *event_ptr);
2220 
2226 U32DHMS ADB_GetEventDuration(void *event_ptr);
2227 
2233 U32DHMS ADB_GetEventEndDateTime(void *event_ptr);
2234 
2240 U16BIT ADB_GetEventStartDate(void *event_ptr);
2241 
2247 U8BIT ADB_GetEventStartHour(void *event_ptr);
2248 
2254 U8BIT ADB_GetEventStartMin(void *event_ptr);
2255 
2261 U8BIT ADB_GetEventStartSecs(void *event_ptr);
2262 
2268 U8BIT ADB_GetEventDurationHour(void *event_ptr);
2269 
2275 U8BIT ADB_GetEventDurationMin(void *event_ptr);
2276 
2282 U8BIT ADB_GetEventDurationSecs(void *event_ptr);
2283 
2284 #if 0
2285 
2293 BOOLEAN ADB_GetEventEndDateTime(void *event_ptr, U16BIT *end_date, U8BIT *end_hour, U8BIT *end_min);
2294 #endif
2295 
2301 BOOLEAN ADB_GetEventSubtitlesAvailFlag(void *event_ptr);
2302 
2308 ADB_EVENT_CONTENT ADB_GetEventContentDesc(void *event_ptr);
2309 
2316 U8BIT* ADB_GetEventContentData(void *event_ptr, U8BIT *p_len);
2317 
2323 U8BIT ADB_GetEventParentalAge(void *event_ptr);
2324 
2331 U8BIT* ADB_GetEventName(void *event_ptr);
2332 
2339 U8BIT* ADB_GetEventDescription(void *event_ptr);
2340 
2346 BOOLEAN ADB_GetEventHasExtendedDescription(void *event_ptr);
2347 
2354 U8BIT* ADB_GetEventExtendedDescription(void *event_ptr);
2355 
2367 U8BIT* ADB_GetEventGuidance(void *event_ptr, void *serv_ptr, U8BIT *type, U8BIT *mode);
2368 
2374 U16BIT ADB_GetEventId(void *event_ptr);
2375 
2381 BOOLEAN ADB_GetEventAudioDescriptionFlag(void *event_ptr);
2382 
2388 BOOLEAN ADB_GetEventFreeToAir(void *event_ptr);
2389 
2397 BOOLEAN ADB_GetEventDoNotScramble(void *event_ptr);
2398 
2412 BOOLEAN ADB_GetEventHDLinkageInfo(void *event_ptr, BOOLEAN verify_event, BOOLEAN only_simulcast,
2413  void **hd_serv_ptr, void **hd_event_ptr);
2414 
2422 BOOLEAN ADB_IsSameEvent(void *event1_ptr, void *event2_ptr);
2423 
2431 U8BIT* ADB_GetEventFullProgrammeCrid(void *serv_ptr, void *event_ptr);
2432 
2440 U8BIT* ADB_GetEventProgrammeCrid(void *serv_ptr, void *event_ptr);
2441 
2449 U8BIT* ADB_GetFullCrid(void *serv_ptr, U8BIT *event_str);
2450 
2456 U8BIT ADB_GetEventNumSeriesCrids(void *event_ptr);
2457 
2466 U8BIT* ADB_GetEventSeriesCrid(U8BIT index, void *serv_ptr, void *event_ptr);
2467 
2473 U8BIT ADB_GetEventNumRecommendationCrids(void *event_ptr);
2474 
2483 U8BIT* ADB_GetEventRecommendationCrid(U8BIT index, void *serv_ptr, void *event_ptr);
2484 
2493 U8BIT ADB_GetEventComponentList(void *event_ptr, ADB_EVENT_COMPONENT_INFO **component_list);
2494 
2501 BOOLEAN ADB_IsSplitProgrammeCrid(U8BIT *crid);
2502 
2509 U8BIT* ADB_GetAuthorityFromCrid(U8BIT *crid);
2510 
2519 void* ADB_FindEventFromCrid(U8BIT *prog_crid, void *original_event_ptr, void **serv_ptr);
2520 
2529 U8BIT ADB_GetServiceFavGroups(void *s_ptr);
2530 
2539 void ADB_SetServiceFavGroups(void *s_ptr, U8BIT groups);
2540 
2541 #if 0
2542 
2549 void ADB_UnsetServiceFavGroupBit(void *s_ptr, U8BIT fgrp_bit);
2550 
2562 void ADB_SetServiceTaggedFavGroupBit(U32BIT *tag_array, void **slist, U16BIT num_entries, U8BIT fgrp_bit);
2563 
2575 void ADB_UnsetServiceTaggedFavGroupBit(U32BIT *tag_array, void **slist, U16BIT num_entries, U8BIT fgrp_bit);
2576 #endif
2577 
2589 void ADB_SetReqdAudioStreamSettings(void *s_ptr, BOOLEAN valid, U32BIT lang_code,
2590  ADB_AUDIO_TYPE audio_type, ADB_STREAM_TYPE stream_type);
2591 
2601 void ADB_SetReqdAudioStreamPID(void *s_ptr, BOOLEAN valid, U16BIT pid);
2602 
2612 void ADB_GetReqdAudioStreamSettings(void *s_ptr, BOOLEAN *valid, U32BIT *lang_code,
2613  ADB_AUDIO_TYPE *audio_type, ADB_STREAM_TYPE *stream_type);
2614 
2625 void ADB_SetReqdSubtitleStreamSettings(void *s_ptr, BOOLEAN valid, U32BIT lang_code, ADB_SUBTITLE_TYPE subt_type);
2626 
2635 void ADB_GetReqdSubtitleStreamSettings(void *s_ptr, BOOLEAN *valid, U32BIT *lang_code, ADB_SUBTITLE_TYPE *subt_type);
2636 
2647 void ADB_SetReqdTeletextStreamSettings(void *s_ptr, BOOLEAN valid, U32BIT lang_code, ADB_TELETEXT_TYPE ttext_type);
2648 
2657 void ADB_GetReqdTeletextStreamSettings(void *s_ptr, BOOLEAN *valid, U32BIT *lang_code, ADB_TELETEXT_TYPE *ttext_type);
2658 
2675 void ADB_SetReqdCcStreamSettings(void *s_ptr, BOOLEAN valid, U32BIT lang_code, BOOLEAN digital_cc,
2676  U8BIT caption_service, BOOLEAN easy_reader, BOOLEAN wide_aspect_ratio);
2677 
2689 void ADB_GetReqdCcStreamSettings(void *s_ptr, BOOLEAN *valid, U32BIT *lang_code, BOOLEAN *digital_cc,
2690  U8BIT *caption_service, BOOLEAN *easy_reader, BOOLEAN *wide_aspect_ratio);
2691 
2701 void* ADB_AddCridRecord(U8BIT *crid, BOOLEAN series, BOOLEAN recommended);
2702 
2707 void ADB_SaveCridRecord(void *c_ptr);
2708 
2714 void* ADB_FindCridRecord(U8BIT *crid_str);
2715 
2721 void ADB_SetCridDateTime(void *c_ptr, U32DHMS datetime);
2722 
2728 void ADB_SetCridService(void *c_ptr, U16BIT serv_id);
2729 
2735 void ADB_SetCridProgrammeName(void *c_ptr, U8BIT *prog_name);
2736 
2743 U8BIT* ADB_GetCridProgrammeName(void *c_ptr);
2744 
2750 BOOLEAN ADB_IsProgrammeCrid(void *c_ptr);
2751 
2757 BOOLEAN ADB_IsSeriesCrid(void *c_ptr);
2758 
2764 BOOLEAN ADB_IsRecommendationCrid(void *c_ptr);
2765 
2771 void ADB_SetCridDoNotDelete(void *c_ptr, BOOLEAN do_not_delete);
2772 
2778 BOOLEAN ADB_GetCridDoNotDelete(void *c_ptr);
2779 
2784 void ADB_UpdateCridEitDate(void *c_ptr);
2785 
2792 U8BIT* ADB_GetCridString(void *c_ptr);
2793 
2799 U32DHMS ADB_GetCridDateTime(void *c_ptr);
2800 
2806 U16BIT ADB_GetCridService(void *c_ptr);
2807 
2813 U16BIT ADB_GetCridEitDate(void *c_ptr);
2814 
2819 void ADB_DeleteCridRecord(void *c_ptr);
2820 
2831 void ADB_GetCridRecordList(void ***clist_ptr, U16BIT *num_entries_ptr, BOOLEAN inc_series_crids,
2832  BOOLEAN inc_rec_crids, BOOLEAN inc_prog_crids);
2833 
2839 void ADB_ReleaseCridRecordList(void **crid_list, U16BIT num_entries);
2840 
2850 U16BIT ADB_GetProfileList(void ***profile_list, U16BIT *active_profile);
2851 
2857 void ADB_ReleaseProfileList(void **profile_list, U16BIT num_profiles);
2858 
2864 ADB_PROFILE_TYPE ADB_GetProfileType(void *profile);
2865 
2872 ADB_SERVICE_LIST_TYPE ADB_GetServiceListTypeForCurrentProfile(void);
2873 
2874 #ifdef COMMON_INTERFACE
2875 
2880 void* ADB_FindProfileForModule(U32BIT module);
2881 
2887 BOOLEAN ADB_DeleteProfile(void *profile);
2888 
2895 U8BIT* ADB_GetProfileName(void *profile);
2896 
2903 void ADB_MarkCIModulePresent(U16BIT cicam_onet_id, U32BIT cicam_id);
2904 
2910 void ADB_MarkCIModuleNotPresent(U32BIT module);
2911 
2917 BOOLEAN ADB_GetProfileModulePresent(void *profile);
2918 
2924 U32BIT ADB_GetProfileModule(void *profile);
2925 
2933 BOOLEAN ADB_GetProfileCAMInfo(void *profile, U16BIT *cicam_onet_id, U32BIT *cicam_id);
2934 
2944 BOOLEAN ADB_SetProfileSearchRequired(void *profile, BOOLEAN search_required, U16BIT date,
2945  U8BIT hour, U8BIT min);
2946 
2952 BOOLEAN ADB_GetProfileSearchRequired(void *profile);
2953 
2962 BOOLEAN ADB_GetProfileSearchDateTime(void *profile, U16BIT *date, U8BIT *hours, U8BIT *mins);
2963 
2969 void ADB_SetProfileSearchTimer(U32BIT cicam_id, U32BIT timer_handle);
2970 
2976 U32BIT ADB_GetProfileSearchTimer(void *profile);
2977 
2982 void ADB_DeleteCicamTimerbyHandle(U32BIT timer_handle);
2983 
2989 BOOLEAN ADB_GetServiceSDTReceived(void *s_ptr);
2990 
2996 U8BIT* ADB_GetServiceCIProtectionDesc(void *s_ptr);
2997 
3003 BOOLEAN ADB_HasCIProtectionExpired(void *s_ptr);
3004 #endif
3005 
3013 U8BIT* ADB_GetServicePMTData(void *s_ptr, U16BIT *data_len);
3014 
3020 U16BIT ADB_GetServicePmtPid(void *s_ptr);
3021 
3027 U16BIT ADB_GetServiceAitPid(void *s_ptr);
3028 
3037 U8BIT* ADB_GetServiceFullURL(void *s_ptr, U16BIT *port);
3038 
3045 E_STB_DP_FEC_LAYER ADB_GetServiceFecLayer(void *s_ptr, S_STB_DP_FEC_LAYER_INFO *fec_info);
3046 
3052 BOOLEAN ADB_ImportDB(U8BIT *filename);
3053 
3059 BOOLEAN ADB_ExportDB(U8BIT *filename);
3060 
3069 BOOLEAN ADB_ExportEPG(U8BIT *filename, U16BIT utc_date_filter, U32BIT type, BOOLEAN use_dvb_uri);
3070 
3075 U16BIT ADB_GetNumFavouriteLists(void);
3076 
3086 BOOLEAN ADB_AddFavouriteList(U8BIT *name, U32BIT user_data, S16BIT index, U8BIT *list_id);
3087 
3093 U8BIT ADB_GetFavouriteListIdByIndex(U16BIT index);
3094 
3100 U8BIT ADB_GetFavouriteListByUserData(U32BIT user_data);
3101 
3108 U8BIT* ADB_GetFavouriteListName(U8BIT list_id);
3109 
3116 BOOLEAN ADB_SetFavouriteListName(U8BIT list_id, U8BIT *name);
3117 
3123 U32BIT ADB_GetFavouriteListUserData(U8BIT list_id);
3124 
3130 void ADB_SetFavouriteListUserData(U8BIT list_id, U32BIT user_data);
3131 
3139 BOOLEAN ADB_MoveFavouriteListTo(U8BIT list_id, S16BIT index);
3140 
3145 void ADB_DeleteFavouriteList(U8BIT list_id);
3146 
3156 BOOLEAN ADB_AddServiceToFavouriteList(U8BIT list_id, void *serv_ptr, S16BIT index);
3157 
3167 BOOLEAN ADB_MoveFavouriteListServiceTo(U8BIT list_id, void *serv_ptr, S16BIT index);
3168 
3178 BOOLEAN ADB_MoveFavouriteListServiceFromTo(U8BIT list_id, S16BIT current_index, S16BIT new_index);
3179 
3185 void ADB_DeleteServiceFromFavouriteList(U8BIT list_id, void *serv_ptr);
3186 
3191 void ADB_DeleteAllServicesFromFavouriteList(U8BIT list_id);
3192 
3193 #ifdef DEBUG_PRINT_DATABASE
3194 
3197 void ADB_PrintDatabase(void);
3198 #endif
3199 
3200 
3201 //---Global Function prototypes for internal use---------------------------------
3205 void ADB_Initialise(void);
3206 
3207 #if 0
3208 
3211 void ADB_ReloadDBRam(void);
3212 #endif
3213 
3221 void ADB_PrepareDatabaseForSearch(E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite,
3222  BOOLEAN retune, BOOLEAN manual_search);
3223 
3234 void ADB_FinaliseDatabaseAfterSearch(BOOLEAN save_changes, E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite,
3235  BOOLEAN search_completed, BOOLEAN clear_new_flags, BOOLEAN manual_search);
3236 
3243 BOOLEAN ADB_AreLcnsDuplicated(E_STB_DP_SIGNAL_TYPE tuner_type);
3244 
3249 void ADB_AllocateLcns(E_STB_DP_SIGNAL_TYPE tuner_type);
3250 
3256 
3261 void ADB_ReportNoSignalDuringSearch(void *t_ptr);
3262 
3268 BOOLEAN ADB_GetTransportSearchFlag(void *t_ptr);
3269 
3275 void ADB_SetTransportSearchFlag(void *t_ptr, BOOLEAN state);
3276 
3277 #if 0
3278 void ADB_SetServiceListTaggedLockedFlag(U32BIT *tag_array, void **slist, U16BIT num_entries, BOOLEAN locked);
3279 #endif
3280 
3286 E_STB_DP_AUDIO_CODEC ADB_GetAudioCodecFromStream(ADB_STREAM_TYPE audio_stream_type);
3287 
3293 E_STB_DP_VIDEO_CODEC ADB_GetVideoCodecFromStream(ADB_STREAM_TYPE video_stream_type);
3294 
3300 void* ADB_GetEventService(void *event_ptr);
3301 
3308 ADB_EVENT_ITEMIZED_INFO* ADB_GetEventItemizedDescription(void *event_ptr, U16BIT *num_items_ptr);
3309 
3315 void ADB_ReleaseEventItemizedInfo(ADB_EVENT_ITEMIZED_INFO *event_itemized_info, U16BIT num_of_items);
3316 
3317 #endif // _AP_DBACC_H
Definition: ap_dbacc.h:250
E_STB_TUNE_TCODERATE ADB_GetTransportHpCodeRate(void *t_ptr)
Returns the HP coderate of the given DVB-T/T2 transport.
Definition: ap_dbacc.c:2652
E_STB_DP_TMODE ADB_GetTransportTerrMode(void *t_ptr)
Returns the terrestrial mode of the given DVB-T/T2 transport.
Definition: ap_dbacc.c:2508
U8BIT * ADB_GetEventRecommendationCrid(U8BIT index, void *serv_ptr, void *event_ptr)
Returns the full recommendation CRID of the given event The returned string should be freed using STB...
Definition: ap_dbacc.c:9793
U16BIT ADB_FindNearestLcnInServiceList(U16BIT lcn, void **slist_ptr, U16BIT num_entries)
Returns the index in the given list of services of the service matching the given, or preceding, LCN.
Definition: ap_dbacc.c:4232
void ADB_ReleaseEventItemizedInfo(ADB_EVENT_ITEMIZED_INFO *event_itemized_info, U16BIT num_of_items)
Frees the memory used by event itemized data.
Definition: ap_dbacc.c:9267
U8BIT * ADB_GetServiceProviderNameByLang(void *s_ptr, U8BIT lang)
Returns the provider name, as a UTF-8 string, using the given language, of the given service...
Definition: ap_dbacc.c:5650
BOOLEAN ADB_GetServiceNowNextState(void *s_ptr)
Returns whether the EIT now/next data is being held in memory for the service.
Definition: ap_dbacc.c:5215
void ADB_GetReqdTeletextStreamSettings(void *s_ptr, BOOLEAN *valid, U32BIT *lang_code, ADB_TELETEXT_TYPE *ttext_type)
Returns the settings defined by ADB_SetReqdTeletextStreamSettings that will be used for teletext on t...
Definition: ap_dbacc.c:10337
void ADB_SortServicesByLcn(void)
Sort all services in the database according to their LCNs.
Definition: ap_dbacc.c:10464
U16BIT ADB_GetSubtitleStreamCompositionPage(void *stream_ptr)
Returns the composition page value of the given subtitle stream.
Definition: ap_dbacc.c:7737
void ADB_GetServiceListLockedSubset(void **slist, U16BIT num_entries, void ***locked_slist_ptr, U16BIT *locked_num_entries_ptr)
Creates a subset of locked services from the supplied service list. Memory is allocated as TempMemory...
Definition: ap_dbacc.c:3677
U32DHMS ADB_GetEventDuration(void *event_ptr)
Returns a value representing the duration of the given event.
Definition: ap_dbacc.c:8873
BOOLEAN ADB_GetLNBBandParameters(void *band_ptr, S_STB_DP_LNB_BAND *params)
Returns the structure describing the band and the expected LNB behaviour in it.
Definition: ap_dbacc.c:844
U8BIT * ADB_GetEventSeriesCrid(U8BIT index, void *serv_ptr, void *event_ptr)
Returns the full series CRID of the given event The returned string should be freed using STB_AppFree...
Definition: ap_dbacc.c:9715
U16BIT ADB_GetNumTransports(void)
Returns the number of transports in the database.
Definition: ap_dbacc.c:1851
BOOLEAN ADB_AddServiceToFavouriteList(U8BIT list_id, void *serv_ptr, S16BIT index)
Adds the given service to the favourite list defined by list_id, with the service being optionally ad...
Definition: ap_dbacc.c:11471
U16BIT ADB_GetNumServices(void)
Returns the total number of services in the database.
Definition: ap_dbacc.c:3266
void ADB_SaveDatabase(void)
Saves the database to non-volatile memory.
Definition: ap_dbacc.c:514
void * ADB_GetAlternativeService(void *s_ptr, U8BIT alt_serv_type)
Searches for a replacement service of the given type for the given service.
Definition: ap_dbacc.c:6805
Definition: stbdpc.h:314
void ADB_ToggleServiceLockedFlag(void *s_ptr)
Changes the current state of the given service from locked to unlocked, or vide versa.
Definition: ap_dbacc.c:5926
void ADB_DeleteAssociatedLNBBands(void *lnb_ptr)
Deletes LNB bands associated with a given LNB.
Definition: ap_dbacc.c:874
U8BIT * ADB_GetEventContentData(void *event_ptr, U8BIT *p_len)
Returns the level 1 and 2 values for all content identifiers for the given event. ...
Definition: ap_dbacc.c:9035
U32BIT ADB_GetTransportFreqHz(void *t_ptr)
Returns the frequency, in Hz for DVB-T/T2 and DVB-C, and MHz for DVB-S/S2, of the given transport...
Definition: ap_dbacc.c:2468
void ADB_DeleteServiceEvents(void *serv_ptr, BOOLEAN delete_now_next)
Deletes all events and event related data for the given service.
Definition: ap_dbacc.c:8307
void * ADB_AddIPTransport(U16BIT onet_id, U16BIT tran_id, U8BIT *url)
Adds an IP transport record.
Definition: ap_dbacc.c:1831
void * ADB_GetServiceTransportPtr(void *s_ptr)
Returns a pointer to the service&#39;s parent transport record.
Definition: ap_dbacc.c:6098
BOOLEAN ADB_GetServiceNotRunningFlag(void *s_ptr)
Returns the status of the &#39;not running&#39; flag of the given service. This flag indicates whether a serv...
Definition: ap_dbacc.c:5753
void ADB_Initialise(void)
Initialises database access.
Definition: ap_dbacc.c:179
U16BIT ADB_GetNumLNBs(void)
Returns the number of LNBs in the database.
Definition: ap_dbacc.c:621
U8BIT * ADB_GetEventFullProgrammeCrid(void *serv_ptr, void *event_ptr)
Returns the full programme CRID of the given event (including IMI). The returned string should be fre...
Definition: ap_dbacc.c:9553
void * ADB_GetNextRCTLink(void *link_ptr)
Returns the RCT link following the given link.
Definition: ap_dbacc.c:6394
U32BIT * ADB_GetServiceListLockedFlag(void **slist, U16BIT num_entries)
Allocates and returns an array of the &#39;locked&#39; flags for each of the services in the given service li...
Definition: ap_dbacc.c:4602
U8BIT * ADB_GetServiceDefaultAuthority(void *serv_ptr)
Returns a copy of the default authority CRID string for the given service. This string will be return...
Definition: ap_dbacc.c:6188
S8BIT ADB_GetStreamCcInUse(void *stream_ptr)
Returns the index of the caption service being used for subtitles.
Definition: ap_dbacc.c:7528
void * ADB_GetFullSITransport(void *n_ptr)
Returns a transport that is signalled as containing a complete set of SI data via an NIT linkage desc...
Definition: ap_dbacc.c:11093
U16BIT ADB_GetRequiredAudioPid(void *s_ptr)
Returns the audio PID to be used for the given service based on language settings, output format, etc.
Definition: ap_dbacc.c:5395
void * ADB_GetEvent(void *serv_ptr, U16BIT event_id)
Returns a copy of the event with the given event ID on the given service.
Definition: ap_dbacc.c:8384
U8BIT ADB_GetServiceContentProtectionLevel(void *s_ptr)
Returns the content protection level value for the service that will have been set by the Nordig cont...
Definition: ap_dbacc.c:5850
U8BIT * ADB_GetSatelliteName(void *sat_ptr)
Returns the pointer to the name of the satellite.
Definition: ap_dbacc.c:974
void ADB_SetServiceNowNextState(void *s_ptr, BOOLEAN state)
Sets whether the now/next EIT events for this service are held in memory. All services save now/next ...
Definition: ap_dbacc.c:5173
BOOLEAN ADB_GetServiceLockedFlag(void *s_ptr)
Returns the status of the &#39;locked&#39; flag of the given service, which is used by the parental control...
Definition: ap_dbacc.c:5904
void ADB_ReleaseProfileList(void **profile_list, U16BIT num_profiles)
Frees a profile list acquired using ADB_GetProfileList.
Definition: ap_dbacc.c:11921
U32BIT * ADB_GetTransportListOriginalNetworkIds(void **tlist, U16BIT num_entries)
Allocates and returns an array of original network ids for each transport in the given list was tuned...
Definition: ap_dbacc.c:2007
BOOLEAN ADB_ServiceGetRCTIcon(void *serv_ptr, U8BIT **icon_data, U32BIT *data_size, BOOLEAN *pos_valid, U16BIT *x_pos, U16BIT *y_pos, U16BIT *width, U16BIT *height, E_ICON_COORD_SYSTEM *coord_system)
Searches all the RCT links for a service to see if any of them define an icon to be used...
Definition: ap_dbacc.c:6707
U8BIT ADB_GetNetworkTargetCountries(U32BIT **code_array)
Returns a combined array of country codes for all discovered networks.
Definition: ap_dbacc.c:1308
ADB_STREAM_TYPE ADB_GetServiceVideoType(void *s_ptr)
Returns the video type being used by the given service.
Definition: ap_dbacc.c:5570
BOOLEAN ADB_AreLcnsDuplicated(E_STB_DP_SIGNAL_TYPE tuner_type)
Checks through all services after a service search and determines whether any of them require the sam...
Definition: ap_dbacc.c:380
U8BIT * ADB_GetFavouriteListName(U8BIT list_id)
Returns the name of the given favourite list, as a Unicode string.
Definition: ap_dbacc.c:11304
U16BIT ADB_GetNumServicesInList(U32BIT list_type, BOOLEAN inc_hidden)
Returns the number of services in the database that would be returned with the given list type...
Definition: ap_dbacc.c:3299
ADB_EVENT_ITEMIZED_INFO * ADB_GetEventItemizedDescription(void *event_ptr, U16BIT *num_items_ptr)
Returns the items of extended event descriptor as item descriptor and item itself.
Definition: ap_dbacc.c:9234
void * ADB_AddServiceUsingDsd(U8BIT *data, U16BIT service_id)
Add service record defined by the given delivery system descriptor. If the DSD defines a transport th...
Definition: ap_dbacc.c:3097
void ADB_SetReqdSubtitleStreamSettings(void *s_ptr, BOOLEAN valid, U32BIT lang_code, ADB_SUBTITLE_TYPE subt_type)
Explicitly sets or clears the stream that will be used for subtitles on the given service...
Definition: ap_dbacc.c:10263
U16BIT ADB_GetServiceOrigLcn(void *s_ptr)
Returns the logical channel number originally requested by the given service.
Definition: ap_dbacc.c:5240
void * ADB_GetSatelliteLNB(void *sat_ptr)
Returns the LNB associated with the given satellite.
Definition: ap_dbacc.c:1004
Header file - macros and function prototypes for public use.
BOOLEAN ADB_ExportEPG(U8BIT *filename, U16BIT utc_date_filter, U32BIT type, BOOLEAN use_dvb_uri)
Exports the current event schedule as an XML file.
void * ADB_FindServiceByLcn(U32BIT list_type, U16BIT lcn, BOOLEAN show_unselectable)
Returns the service matching the given LCN and list type.
Definition: ap_dbacc.c:4033
void * ADB_GetTunedNetwork(U8BIT path)
Returns the network currently tuned to on the given decode path.
Definition: ap_dbacc.c:1681
U8BIT ADB_GetFavouriteListIdByIndex(U16BIT index)
Returns the list id of the favourite list defined by the given index.
Definition: ap_dbacc.c:11230
U8BIT ADB_GetTtextStreamPage(void *stream_ptr)
Returns the page value of the given teletext stream.
Definition: ap_dbacc.c:7697
U8BIT ADB_GetTransportTunedQuality(void *t_ptr)
Returns the signal quality, as a percentage, of the tuned transport.
Definition: ap_dbacc.c:2400
U32DHMS ADB_GetCridDateTime(void *c_ptr)
Returns a value representing the date & time held in the given CRID record.
Definition: ap_dbacc.c:10857
void * ADB_GetPrevServiceInList(U32BIT list_type, void *serv)
Returns the previous service, in LCN order, for the given list type, starting from the given service...
Definition: ap_dbacc.c:3949
BOOLEAN ADB_ServiceAddImageIcon(void *serv_ptr, void *icon_ptr)
Adds the given image icon to the end of the service&#39;s icon list. The icon id is checked and if it mat...
Definition: ap_dbacc.c:6567
BOOLEAN ADB_IsRCTLinkGroupTrailer(void *link_ptr)
Returns whether the given link is for a group trailer.
Definition: ap_dbacc.c:6484
U16BIT ADB_GetTransportCableSymbolRate(void *t_ptr)
Returns the symbol rate of the given cable transport.
Definition: ap_dbacc.c:2745
BOOLEAN ADB_MoveFavouriteListTo(U8BIT list_id, S16BIT index)
Change the order of the favourite lists by moving the given list to the given position.
Definition: ap_dbacc.c:11416
U8BIT ADB_GetTtextStreamMagazine(void *stream_ptr)
Returns the magazine value of the given teletext stream.
Definition: ap_dbacc.c:7677
void * ADB_FindEventFromTime(U32DHMS time, void *serv_ptr)
Finds the event scheduled to be broadcast at the specified time on the specified service.
Definition: ap_dbacc.c:8692
BOOLEAN ADB_GetServiceDoNotScramble(void *s_ptr)
Returns the do_not_scramble flag for the service which is based on the presence of an FTA descriptor...
Definition: ap_dbacc.c:5826
void ADB_ReleaseStreamList(void **streamlist_ptr, U16BIT num_entries)
Frees the memory allocated for a stream list using ADB_GetStreamList.
Definition: ap_dbacc.c:7209
U16BIT * ADB_GetServiceListOrigLcns(void **slist, U16BIT num_entries)
Allocates and returns an array of the logical channel numbers that each of the services in the given ...
Definition: ap_dbacc.c:4438
U16BIT ADB_GetRequiredADPid(void *s_ptr, BOOLEAN *broadcast_mix)
Returns the PID to be used for audio description for the given service based on language settings...
Definition: ap_dbacc.c:5423
U32DHMS ADB_GetEventStartDateTime(void *event_ptr)
Returns a value representing the date and time of the start of the given event.
Definition: ap_dbacc.c:8801
U16BIT * ADB_GetServiceListLcns(void **slist, U16BIT num_entries)
Allocates and returns an array of the logical channel numbers that have been assigned to all the serv...
Definition: ap_dbacc.c:4400
E_STB_DP_CMODE ADB_GetTransportCableMode(void *t_ptr)
Returns the QAM mode of the given cable transport.
Definition: ap_dbacc.c:2714
BOOLEAN ADB_GetEventHasExtendedDescription(void *event_ptr)
Checks whether the given event has any extended event descriptors.
Definition: ap_dbacc.c:9165
U8BIT ADB_GetCaptionServiceNumber(void *stream_ptr, U8BIT index)
Returns the caption service number of the given stream.
Definition: ap_dbacc.c:7400
U8BIT * ADB_GetEventProgrammeCrid(void *serv_ptr, void *event_ptr)
Returns the programme CRID of the given event (excluding IMI) The returned string should be freed usi...
Definition: ap_dbacc.c:9628
void ADB_DeleteFavouriteList(U8BIT list_id)
Deletes the favourite list with the given list id.
Definition: ap_dbacc.c:11444
U16BIT ADB_GetEventStartDate(void *event_ptr)
Returns the MJD date code for the start of the given event.
Definition: ap_dbacc.c:8833
U8BIT * ADB_GetEventDescription(void *event_ptr)
Returns the short event description text of the event as a UTF-8 string. The returned string should b...
Definition: ap_dbacc.c:9133
U8BIT ** ADB_GetTransportListNames(void **tlist, U16BIT num_entries)
Returns a list of names, in UTF-8 format, corresponding to the given transport list. The returned list should be freed using ADB_ReleaseNameList.
Definition: ap_dbacc.c:1892
Structure representing the component information as found in the EIT component_descriptor.
Definition: ap_dbacc.h:242
Definition: ap_common.h:63
U8BIT * ADB_GetRCTLinkUriString(void *link_ptr)
Returns the uri string of the given RCT link.
Definition: ap_dbacc.c:6539
void ADB_ServiceReleaseRCTLinks(void *serv_ptr)
Frees all RCT link info for the given service.
Definition: ap_dbacc.c:6251
void ADB_GetServiceListIncludingHidden(U32BIT list_type, void ***slist_ptr, U16BIT *num_entries_ptr, BOOLEAN ignore_selectable)
Allocates and returns a list of all services in the database for the given list type, including hidden services.
Definition: ap_dbacc.c:3369
BOOLEAN ADB_IsRecommendationCrid(void *c_ptr)
Returns TRUE if the CRID record given represents a recommendation.
Definition: ap_dbacc.c:10748
BOOLEAN ADB_GetLNBSettings(void *lnb_ptr, ADB_LNB_SETTINGS *settings)
Returns the current settings for the given LNB.
Definition: ap_dbacc.c:705
void * ADB_GetLNBBandLNB(void *band_ptr)
Returns the LNB associated with the band.
Definition: ap_dbacc.c:814
U16BIT ADB_GetNumSatellites(void)
Returns the number of satellites in the database.
Definition: ap_dbacc.c:905
U32BIT * ADB_GetNetworkListIds(void **nlist, U16BIT num_entries)
Allocates and returns an array of network ids for the given networks The returned array should be fre...
Definition: ap_dbacc.c:1210
U32BIT * ADB_GetTransportListFreqs(void **tlist, U16BIT num_entries)
Allocates and returns an array of tuning frequencies for each transport in the given list...
Definition: ap_dbacc.c:2045
U8BIT ADB_GetFavouriteListByUserData(U32BIT user_data)
Returns the list id of the favourite list with the given user data value.
Definition: ap_dbacc.c:11267
BOOLEAN ADB_SetFavouriteListName(U8BIT list_id, U8BIT *name)
Set the name of the given favourite list.
Definition: ap_dbacc.c:11333
void * ADB_FindEITScheduleEventFromTime(U32DHMS time, void *serv_ptr)
Finds the event in the event schedule to be broadcast at the specified time on the specified service...
Definition: ap_dbacc.c:8757
U16BIT ADB_GetStreamPID(void *stream_ptr)
Returns the PID for the given stream.
Definition: ap_dbacc.c:7487
void ADB_SaveCridRecord(void *c_ptr)
Saves a CRID record to non-volatile storage.
Definition: ap_dbacc.c:10507
U8BIT * ADB_GetFullCrid(void *serv_ptr, U8BIT *event_str)
Returns the full CRID for the given CRID string The returned string should be freed using STB_AppFree...
Definition: ap_dbacc.c:9686
void ADB_DeleteServices(E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite)
Deletes all networks, transports and services related to the given type of tuner. ...
Definition: ap_dbacc.c:565
void * ADB_GetTransportSatellite(void *t_ptr)
Returns the parent satellite for the given transport.
Definition: ap_dbacc.c:2970
void ADB_ReleaseNameList(U8BIT **name_list, U16BIT num_names)
Frees the memory used by any of the name lists (e.g. networks, services, etc)
Definition: ap_dbacc.c:598
Definition: stbdpc.h:308
U8BIT ** ADB_GetServiceListFullNames(void **slist, U16BIT num_entries, BOOLEAN use_pref_names)
Allocates and returns a list of the fullnames for all the services in the given service list...
Definition: ap_dbacc.c:4303
void ADB_ReportNoSignalDuringSearch(void *t_ptr)
Set the signal level to 0 and searched flag to TRUE for the given transport.
Definition: ap_dbacc.c:2288
U16BIT ADB_GetServiceTextPid(void *s_ptr)
Returns the PID being used for DVB subtitles and/or teletext for the given service. This will be the one chosen based on the settings for language, etc, or the one explicitly set (e.g. due to user selection).
Definition: ap_dbacc.c:5336
void * ADB_AddSatellite(U8BIT *name_str, U16BIT dish_pos, U16BIT long_pos, BOOLEAN east_west, void *lnb_ptr)
Creates a new satellite in the database with the given settings.
Definition: ap_dbacc.c:930
ADB_PROFILE_TYPE ADB_GetProfileType(void *profile)
Returns the type of the given profile.
Definition: ap_dbacc.c:11935
BOOLEAN ADB_GetEventSubtitlesAvailFlag(void *event_ptr)
Returns whether DVB subtitles are signalled as being available for the given event.
Definition: ap_dbacc.c:8967
ADB_STREAM_TYPE ADB_GetServiceAudioType(void *s_ptr)
Returns the audio type being used by the given service.
Definition: ap_dbacc.c:5311
void ADB_GetNetworkTransportList(void *n_ptr, void ***tlist_ptr, U16BIT *num_entries_ptr)
Allocates and returns a list of all transport records in the database for the given network...
Definition: ap_dbacc.c:1776
void * ADB_FindServiceByIds(U16BIT onet_id, U16BIT tid, U16BIT sid)
Returns a pointer to the service matching the given IDs.
Definition: ap_dbacc.c:4170
U8BIT ADB_GetServiceRunningStatus(void *s_ptr)
Returns the running status of the given service as reported by the SDT.
Definition: ap_dbacc.c:5726
U8BIT ADB_GetServiceNumRCTLinks(void *serv_ptr)
Returns the number of RCT links for the given service.
Definition: ap_dbacc.c:6278
void ADB_SetReqdAudioStreamSettings(void *s_ptr, BOOLEAN valid, U32BIT lang_code, ADB_AUDIO_TYPE audio_type, ADB_STREAM_TYPE stream_type)
Explicitly sets or clears the stream that will be used for audio on the given service. If &#39;valid&#39; is TRUE then the stream is set according to the given language and types, but if FALSE then the audio stream selected for the service will be based on the default settings.
Definition: ap_dbacc.c:10183
U8BIT * ADB_GetServicePMTData(void *s_ptr, U16BIT *data_len)
Returns the current PMT data for the given service.
Definition: ap_dbacc.c:11732
U8BIT * ADB_GetServiceFullURL(void *s_ptr, U16BIT *port)
Returns the full URL for an IP service as a UTF-8 string, and the port. The returned string should be...
Definition: ap_dbacc.c:11811
S8BIT ADB_GetTransportOffset(void *t_ptr)
Returns the tuning offset of the given DVB-T/T2 transport.
Definition: ap_dbacc.c:2539
void ADB_GetTransportList(void ***tlist_ptr, U16BIT *num_entries_ptr)
Allocates and returns a list of all transport records in the database.
Definition: ap_dbacc.c:1703
BOOLEAN ADB_GetCaptionServiceDigitalCc(void *stream_ptr, U8BIT index)
Returns the digital_cc setting of the given stream.
Definition: ap_dbacc.c:7371
U16BIT ADB_GetNetworkPrimaryTargetRegions(U32BIT country_code, U8BIT **code_array, U8BIT ***name_array)
Returns an array of primary region codes and names for the given country.
Definition: ap_dbacc.c:1384
U32BIT * ADB_GetServiceListScrambledFlag(void **slist, U16BIT num_entries)
Allocates and returns an array of the scrambled flags for each of the services in the given service l...
Definition: ap_dbacc.c:4641
void ADB_GetReqdAudioStreamSettings(void *s_ptr, BOOLEAN *valid, U32BIT *lang_code, ADB_AUDIO_TYPE *audio_type, ADB_STREAM_TYPE *stream_type)
Returns the settings defined by ADB_SetReqdAudioStreamSettings that will be used for audio on the giv...
Definition: ap_dbacc.c:10235
void ADB_GetNowNextEvents(void *serv_ptr, void **now_event, void **next_event)
Makes copies of the now and/or next events (EITp/f) for the given service. The returned events should...
Definition: ap_dbacc.c:7945
E_STB_TUNE_TCONST ADB_GetTransportConstellation(void *t_ptr)
Returns the constellation of the given DVB-T/T2 transport.
Definition: ap_dbacc.c:2559
void * ADB_GetNextLNB(void *lnb_ptr)
Returns the next LNB from the database.
Definition: ap_dbacc.c:684
ADB_SERVICE_LIST_TYPE ADB_GetServiceListTypeForCurrentProfile(void)
Returns the default list type for the current profile. This function returns ADB_SERVICE_LIST_ALL if ...
Definition: ap_dbacc.c:11959
void ADB_ReleaseCridRecordList(void **crid_list, U16BIT num_entries)
Frees memory allocated for a CRID list due to a call to ADB_GetCridRecordList.
Definition: ap_dbacc.c:11073
U32BIT ADB_GetCaptionServiceLangCode(void *stream_ptr, U8BIT index)
Returns the 3 char language code of the given stream.
Definition: ap_dbacc.c:7342
void ADB_ReleaseTransportList(void **tlist, U16BIT num_transports)
Frees a transport list returned from one of the ADB_GetTransportList functions.
Definition: ap_dbacc.c:1871
U16BIT ADB_GetNumLNBBands(void)
Returns the number of LNB bands in the database.
Definition: ap_dbacc.c:751
BOOLEAN ADB_ExportDB(U8BIT *filename)
Exports the database as an XML file.
Definition: ap_dbxml.c:2660
U8BIT ADB_GetEventStartMin(void *event_ptr)
Returns the minute (0-59) value for the start of the given event.
Definition: ap_dbacc.c:8853
void ADB_GetUnavailableServiceList(void ***slist_ptr, U16BIT *num_entries_ptr)
Allocates and returns a list of all services that are marked as being unavailable. A service becomes unavailable when it disappears from the SDT.
Definition: ap_dbacc.c:3547
E_STB_TUNE_THIERARCHY ADB_GetTransportHierarchy(void *t_ptr)
Returns the hierarchy of the given DVB-T/T2 transport.
Definition: ap_dbacc.c:2590
U32BIT ADB_GetAudioStreamLangCode(void *stream_ptr)
Returns the language code associated with the given audio stream.
Definition: ap_dbacc.c:7576
E_STB_DP_AUDIO_MODE ADB_GetAudioStreamMode(void *stream_ptr)
Returns the audio mode of the given stream.
Definition: ap_dbacc.c:7616
void ADB_SetFavouriteListUserData(U8BIT list_id, U32BIT user_data)
Set the user data of the given favourite list.
Definition: ap_dbacc.c:11391
U16BIT ADB_GetSatelliteLongitude(void *sat_ptr)
Returns the longitudinal position of the given satellite in 1/10ths degree.
Definition: ap_dbacc.c:1033
U8BIT * ADB_GetServiceFullNameByLangAndPrefId(void *s_ptr, U8BIT lang, U8BIT pref_name_id)
Returns the full name of the given service as a UTF-8 string using the given language and preferred n...
Definition: ap_dbacc.c:4995
void ADB_GetStreamList(void *serv_ptr, ADB_STREAM_LIST_TYPE stream_list_type, void ***streamlist_ptr, U16BIT *num_entries_ptr)
Allocates and returns an array of the streams of the given type and for the given service...
Definition: ap_dbacc.c:7000
BOOLEAN ADB_GetServiceSelectableFlag(void *s_ptr)
Returns the selectable status of the given service.
Definition: ap_dbacc.c:10037
void ADB_ReleaseEventSIDescriptorData(U8BIT *desc_data, U16BIT desc_len)
Frees the data returned by ADB_GetEventSIDescriptorData.
Definition: ap_dbacc.c:8513
void * ADB_GetTransportFromIds(U16BIT net_id, U16BIT onet_id, U16BIT tran_id)
Finds the transport with the given ids.
Definition: ap_dbacc.c:3003
U16BIT ADB_FindServiceInList(void *s_ptr, void **slist_ptr, U16BIT num_entries)
Returns the index in the given list of services of the given service.
Definition: ap_dbacc.c:4269
BOOLEAN ADB_GetEventHDLinkageInfo(void *event_ptr, BOOLEAN verify_event, BOOLEAN only_simulcast, void **hd_serv_ptr, void **hd_event_ptr)
Returns whether there&#39;s an HD event linked to the SD event and returns the info for it...
Definition: ap_dbacc.c:9457
void ADB_SetServiceLcn(void *s_ptr, U16BIT lcn)
Sets the assigned logical channel number of the given service. This will override any LCN assigned wh...
Definition: ap_dbacc.c:10101
U16BIT ADB_GetRequiredTtextPid(void *s_ptr, BOOLEAN for_subtitles, U8BIT *magazine, U8BIT *page)
Returns the PID to be used for teletext for the given service based on language settings.
Definition: ap_dbacc.c:5483
BOOLEAN ADB_AddFavouriteList(U8BIT *name, U32BIT user_data, S16BIT index, U8BIT *list_id)
Creates a new favourite list and adds it to the existing lists, if any.
Definition: ap_dbacc.c:11194
BOOLEAN ADB_GetServiceScheduleState(void *s_ptr)
Returns whether the EIT schedule events are being held in memory for the service. ...
Definition: ap_dbacc.c:5147
E_STB_TUNE_TGUARDINT ADB_GetTransportGuardInt(void *t_ptr)
Returns the guard interval of the given DVB-T/T2 transport.
Definition: ap_dbacc.c:2683
BOOLEAN ADB_GetEventAudioDescriptionFlag(void *event_ptr)
Returns whether audio description is signalled as being available for the given event.
Definition: ap_dbacc.c:9351
U8BIT ADB_GetEventParentalAge(void *event_ptr)
Returns the parental age value for the given event.
Definition: ap_dbacc.c:9067
void ADB_SetReqdCcStreamSettings(void *s_ptr, BOOLEAN valid, U32BIT lang_code, BOOLEAN digital_cc, U8BIT caption_service, BOOLEAN easy_reader, BOOLEAN wide_aspect_ratio)
Explicitly sets or clears the stream that will be used for subtitles on the given service...
Definition: ap_dbacc.c:10369
U16BIT ADB_GetNumNetworks(void)
Returns the number of network records in the database.
Definition: ap_dbacc.c:1090
ADB_EVENT_CONTENT ADB_GetEventContentDesc(void *event_ptr)
Returns the level 1 value of the first content identifier for the given event.
Definition: ap_dbacc.c:8999
void * ADB_GetNextSatellite(void *sat_ptr)
Returns the next satellite from the database.
Definition: ap_dbacc.c:954
void * ADB_GetTransportNetworkPtr(void *t_ptr)
Returns the network of the given transport.
Definition: ap_dbacc.c:2440
E_STB_DP_SIGNAL_TYPE ADB_GetTransportSignalType(void *t_ptr)
Returns the signal type for the given transport.
Definition: ap_dbacc.c:2312
void ADB_ReleaseServiceList(void **slist, U16BIT num_servs)
Frees a list of services returned from one of the functions that returns a service list...
Definition: ap_dbacc.c:3655
U8BIT ADB_GetEventComponentList(void *event_ptr, ADB_EVENT_COMPONENT_INFO **component_list)
Retrieves a list of components associated with the specified event, as described by component descrip...
Definition: ap_dbacc.c:9821
void ADB_SetServiceScheduleState(void *s_ptr, BOOLEAN state)
Sets whether the EIT schedule events for this service are held in memory. All services hold schedule ...
Definition: ap_dbacc.c:5114
U8BIT * ADB_GetRCTLinkPromoText(void *link_ptr)
Returns the RCT link&#39;s promotional text based on the default language.
Definition: ap_dbacc.c:6430
void ADB_GetNetworkServiceList(void *n_ptr, void ***slist_ptr, U16BIT *num_entries_ptr)
Allocates and returns a list of all services in the database on all transports on the given network...
Definition: ap_dbacc.c:3487
U32BIT * ADB_GetServiceListHdFlag(void **slist, U16BIT num_entries)
Allocates and returns an array indicating whether each service in the given service list is an HD ser...
Definition: ap_dbacc.c:4680
U8BIT ADB_GetTransportTunedStrength(void *t_ptr)
Returns the signal strength, as a percentage, of the tuned transport.
Definition: ap_dbacc.c:2380
U8BIT ADB_GetEventNumRecommendationCrids(void *event_ptr)
Returns the number of recommendation CRIDs for the given event.
Definition: ap_dbacc.c:9765
E_STB_TUNE_TCODERATE ADB_GetTransportLpCodeRate(void *t_ptr)
Returns the LP coderate of the given DVB-T/T2 transport.
Definition: ap_dbacc.c:2621
U8BIT ** ADB_GetServiceListShortNames(void **slist, U16BIT num_entries, BOOLEAN use_pref_names)
Allocates and returns a list of the short names for all the services in the given service list...
Definition: ap_dbacc.c:4353
void ADB_GetTransportAnalogTuningParams(void *t_ptr, U32BIT *freq_hz, S8BIT *offset, E_STB_DP_ANALOG_VIDEO_TYPE *vtype)
Returns the settings to tune to the given terrestrial analog transport.
Definition: ap_dbacc.c:2859
U32BIT * ADB_GetServiceListHiddenFlag(void **slist, U16BIT num_entries)
Allocates and returns an array indicating whether each service in the given service list is signalled...
Definition: ap_dbacc.c:4760
ADB_AUDIO_TYPE ADB_GetAudioStreamType(void *stream_ptr)
Returns the audio type of the given stream.
Definition: ap_dbacc.c:7596
void ADB_SetReqdAudioStreamPID(void *s_ptr, BOOLEAN valid, U16BIT pid)
Explicitly sets or clears the stream that will be used for audio on the given service. If &#39;valid&#39; is TRUE then the stream is set according to the given PID, but if FALSE then the audio stream selected for the service will be based on the default settings.
Definition: ap_dbacc.c:10211
U16BIT ADB_GetNetworkTertiaryTargetRegions(U32BIT country_code, U8BIT primary_region, U8BIT secondary_region, U16BIT **code_array, U8BIT ***name_array)
Returns an array of tertiary region codes and names for the given country, primary region and seconda...
Definition: ap_dbacc.c:1585
void * ADB_GetNextLNBBand(void *band_ptr)
Returns the next LNB band from the database.
Definition: ap_dbacc.c:794
void * ADB_AddIPService(void *t_ptr, U16BIT service_id, ADB_SERVICE_TYPE type, U8BIT *name, U16BIT lcn, U8BIT *url, U16BIT port, E_STB_DP_FEC_LAYER fec_layer, S_STB_DP_FEC_LAYER_INFO *fec_info)
Add IP service record.
Definition: ap_dbacc.c:3217
U16BIT ADB_GetDeletedServiceList(E_STB_DP_SIGNAL_TYPE tuner_type, void ***slist_ptr)
Returns a list of services that have been marked as &#39;deleted&#39; for the given tuner type...
Definition: ap_dbacc.c:3408
void ADB_ReleaseDatabaseSearchData(void)
Frees all data that&#39;s only required for service search. This should be called after the search is com...
Definition: ap_dbacc.c:421
U8BIT ADB_GetEventDurationMin(void *event_ptr)
Returns the minute value (0-59) for the duration of the given event.
Definition: ap_dbacc.c:8915
U16BIT ADB_GetServiceAitPid(void *s_ptr)
Returns the current AIT PID for the given service.
Definition: ap_dbacc.c:11784
void ADB_SetReqdTeletextStreamSettings(void *s_ptr, BOOLEAN valid, U32BIT lang_code, ADB_TELETEXT_TYPE ttext_type)
Explicitly sets or clears the stream that will be used for teletext on the given service. If &#39;valid&#39; is TRUE then the stream is set according to the given language and type, but if FALSE then the stream selected for the service will be based on the default settings.
Definition: ap_dbacc.c:10313
U8BIT * ADB_GetCridProgrammeName(void *c_ptr)
Returns the programme name field of the given CRID record. The returned string should be freed using ...
Definition: ap_dbacc.c:10636
U16BIT ADB_GetTransportTid(void *t_ptr)
Returns the transport id of the given transport.
Definition: ap_dbacc.c:2360
U8BIT ADB_GetEventStartSecs(void *event_ptr)
Returns the seconds (0-59) value for the start of the given event.
Definition: ap_dbacc.c:8863
U16BIT ADB_GetServiceLcn(void *s_ptr)
Returns the logical channel number assigned to the given service.
Definition: ap_dbacc.c:5039
U8BIT * ADB_GetEventGuidance(void *event_ptr, void *serv_ptr, U8BIT *type, U8BIT *mode)
Returns the guidance text for an event, either from the event itself or the event&#39;s service...
Definition: ap_dbacc.c:9296
BOOLEAN ADB_GetServiceHiddenFlag(void *s_ptr)
Returns the hidden status of the given service. A hidden service should not be present to teh user in...
Definition: ap_dbacc.c:10014
U32BIT * ADB_GetServiceListNewFlag(void **slist, U16BIT num_entries)
Allocates and returns an array of the &#39;new&#39; flags for each of the services in the given service list...
Definition: ap_dbacc.c:4562
Header file - macros and function prototypes for public use.
void ADB_SetCridDoNotDelete(void *c_ptr, BOOLEAN do_not_delete)
Sets the do not delete flag for the given CRID.
Definition: ap_dbacc.c:10778
void * ADB_GetTunedTransport(U8BIT path)
Returns the transport that&#39;s tuned to on the given decode path.
Definition: ap_dbacc.c:3050
U32BIT * ADB_GetServiceListUnavailableFlag(void **slist, U16BIT num_entries)
Allocates and returns an array of the unavailable flags for each of the services in the given service...
Definition: ap_dbacc.c:4522
Header file - macros and function prototypes for public use.
BOOLEAN ADB_MoveFavouriteListServiceTo(U8BIT list_id, void *serv_ptr, S16BIT index)
Change the order of the services in the given favourite lists by moving it to the given position...
Definition: ap_dbacc.c:11507
U16BIT ADB_GetCridService(void *c_ptr)
Returns the service ID held in the given CRID record.
Definition: ap_dbacc.c:10887
BOOLEAN ADB_GetServiceScrambledFlag(void *s_ptr)
Returns the status of the &#39;scrambled&#39; flag of the given service. This flag is set depending on the sc...
Definition: ap_dbacc.c:5778
void * ADB_GetTunedService(U8BIT path)
Returns the tuned service for the given decode path.
Definition: ap_dbacc.c:6167
U8BIT * ADB_GetRCTLinkName(void *link_ptr)
Returns the name of the given RCT link.
Definition: ap_dbacc.c:6509
void ADB_SetTunedService(U8BIT path, void *s_ptr)
Sets the tuned service for the given path, together with the associated tuned transport and network...
Definition: ap_dbacc.c:6122
BOOLEAN ADB_IsSeriesCrid(void *c_ptr)
Returns TRUE if the CRID record given represents a series.
Definition: ap_dbacc.c:10718
BOOLEAN ADB_IsValidService(void *serv_ptr)
Checks whether the given service is in the current service list.
Definition: ap_dbacc.c:3776
U16BIT ADB_GetNumStreams(void *serv_ptr, ADB_STREAM_LIST_TYPE stream_list_type)
Returns the number of streams of the given type for the given service.
Definition: ap_dbacc.c:6963
void ADB_ReleaseNetworkList(void **nlist)
Frees a network list returned by ADB_GetNetworkList.
Definition: ap_dbacc.c:1153
U8BIT ADB_GetEventDurationHour(void *event_ptr)
Returns the hour value for the duration of the given event.
Definition: ap_dbacc.c:8905
U32BIT * ADB_GetTransportListTids(void **tlist, U16BIT num_entries)
Allocates and returns an array of transport ids for the given transports. The returned array should b...
Definition: ap_dbacc.c:1929
void * ADB_FindServiceByNearestLcn(U32BIT list_type, U16BIT lcn)
Returns the service matching the given, or preceding, LCN and list type.
Definition: ap_dbacc.c:4125
U32BIT * ADB_GetTransportListTunedStrengths(void **tlist, U16BIT num_entries)
Allocates and returns an array of percentage values representing the signal strength when each transp...
Definition: ap_dbacc.c:1968
void ADB_DeleteAllServicesFromFavouriteList(U8BIT list_id)
Removes all services from the favourite list defined by list_id.
Definition: ap_dbacc.c:11611
BOOLEAN ADB_GetSatelliteDirection(void *sat_ptr)
Returns the position direction of the given satellite.
Definition: ap_dbacc.c:1064
U16BIT ADB_ServiceGetSubtitlePid(void *serv_ptr, ADB_SUBT_INFO *subt_info)
Determines subtitle PID and whether it is DVB or teletext, for the given service. ...
Definition: ap_dbacc.c:6844
U16BIT ADB_GetSubtitleStreamAncillaryPage(void *stream_ptr)
Returns the ancillary page value of the given subtitle stream.
Definition: ap_dbacc.c:7757
void * ADB_GetLaterEvent(void *serv_ptr, U16BIT date, U8BIT hour, U8BIT min)
Returns a copy of the event following the given date/time on the given service.
Definition: ap_dbacc.c:8681
void ADB_SetTextLang(U32BIT country_code, U8BIT lang_id)
Sets the primary subtitle and teletext language to be used.
Definition: ap_dbacc.c:7896
BOOLEAN ADB_GetCaptionServiceWideAspectRatio(void *stream_ptr, U8BIT index)
Returns the wide aspect ratio setting of the given stream.
Definition: ap_dbacc.c:7459
void ADB_ReleaseRCTLinks(void *links)
Frees the given list of RCT links.
Definition: ap_dbacc.c:6416
U16BIT ADB_GetTransportOriginalNetworkId(void *t_ptr)
Returns the original network id of the given transport.
Definition: ap_dbacc.c:2420
BOOLEAN ADB_MoveFavouriteListServiceFromTo(U8BIT list_id, S16BIT current_index, S16BIT new_index)
Change the order of the services in the given favourite lists by moving it to the given position...
Definition: ap_dbacc.c:11544
U32BIT ADB_GetFavouriteListUserData(U8BIT list_id)
Returns the user data value of the given favourite list.
Definition: ap_dbacc.c:11363
void ADB_DeleteAllServiceEvents(BOOLEAN delete_now_next)
Deletes all events and event related data for all services.
Definition: ap_dbacc.c:8352
U8BIT ADB_GetStreamNumTags(void *stream_ptr)
Returns the number of tag values defined for the given stream.
Definition: ap_dbacc.c:7265
U16BIT ADB_GetRequiredSubtitleParams(void *s_ptr, U16BIT *cpage_ptr, U16BIT *apage_ptr)
Returns the PID to be used for DVB subtitles for the given service based on language settings...
Definition: ap_dbacc.c:5510
void ADB_GetReqdSubtitleStreamSettings(void *s_ptr, BOOLEAN *valid, U32BIT *lang_code, ADB_SUBTITLE_TYPE *subt_type)
Returns the settings defined by ADB_SetReqdSubtitleStreamSettings that will be used for subtitles on ...
Definition: ap_dbacc.c:10287
U16BIT ADB_GetServiceVideoPid(void *s_ptr)
Returns the video PID for the given service.
Definition: ap_dbacc.c:5547
U8BIT * ADB_GetAuthorityFromCrid(U8BIT *crid)
Returns a copy of the authority part of the CRID string The returned string should be freed using STB...
Definition: ap_dbacc.c:9854
void * ADB_FindEventFromCrid(U8BIT *prog_crid, void *original_event_ptr, void **serv_ptr)
Finds an alternative event for the given programme CRID and returns a pointer to a copy of the event ...
Definition: ap_dbacc.c:9895
void * ADB_GetEarlierEvent(void *serv_ptr, U16BIT date, U8BIT hour, U8BIT min)
Returns a copy of the event preceeding the given date/time on the given service.
Definition: ap_dbacc.c:8604
void ADB_AllocateLcns(E_STB_DP_SIGNAL_TYPE tuner_type)
Allocates LCNs to services after a service search. This function assumes that ADB_FinaliseDatabaseAft...
Definition: ap_dbacc.c:403
void ADB_SetTransportSearchFlag(void *t_ptr, BOOLEAN state)
Sets whether a transport has been used during a service scan operation.
Definition: ap_dbacc.c:2270
BOOLEAN ADB_GetEventFreeToAir(void *event_ptr)
Returns whether the event is signalled with none of its streams being CA scrambled.
Definition: ap_dbacc.c:9383
void ADB_SetServiceLockedFlag(void *s_ptr, BOOLEAN locked)
Locks or unlocks the given service.
Definition: ap_dbacc.c:5961
BOOLEAN ADB_GetCaptionServiceEasyReader(void *stream_ptr, U8BIT index)
Returns the easy reader setting of the given stream.
Definition: ap_dbacc.c:7430
ADB_SUBTITLE_TYPE ADB_GetSubtitleStreamType(void *stream_ptr)
Returns the type, as defined in the PMT, of the given subtitle stream.
Definition: ap_dbacc.c:7831
BOOLEAN ADB_IsFreesatService(void *s_ptr)
Returns a value indicating whether the given service is a Freesat service.
Definition: ap_dbacc.c:5984
BOOLEAN ADB_GetServiceUnavailableFlag(void *s_ptr)
Returns the status of the unavailable flag of the given service. This flag indicates whether a servic...
Definition: ap_dbacc.c:5703
void ADB_GetServiceList(U32BIT list_type, void ***slist_ptr, U16BIT *num_entries_ptr)
Allocates and returns a list of all services in the database for the given list type.
Definition: ap_dbacc.c:3348
U8BIT ** ADB_GetNetworkListNames(void **nlist, U16BIT num_entries, BOOLEAN short_names)
Returns a list of names, in UTF-8 format, corresponding to the given network list. The returned list should be freed using ADB_ReleaseNameList.
Definition: ap_dbacc.c:1173
void ADB_SetAudioLang(U32BIT country_code, U8BIT lang_id)
Sets the primary audio language to be used.
Definition: ap_dbacc.c:7851
void ADB_GetTransportSatTuningParams(void *t_ptr, U32BIT *freq_hz, E_STB_DP_POLARITY *polarity, U16BIT *symrate, E_STB_DP_FEC *fec, BOOLEAN *dvb_s2, E_STB_DP_MODULATION *modulation)
Returns the parameters needed to tune a satellite tuner to a transport.
Definition: ap_dbacc.c:2930
void ADB_FinaliseDatabaseAfterSearch(BOOLEAN save_changes, E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite, BOOLEAN search_completed, BOOLEAN clear_new_flags, BOOLEAN manual_search)
Completes the database setup after a search has completed or been stopped.
Definition: ap_dbacc.c:295
U16BIT ADB_GetServiceId(void *s_ptr)
Returns the signalled service id of the given service.
Definition: ap_dbacc.c:5059
void * ADB_AddLNBBand(S_STB_DP_LNB_BAND *band_parameters, void *lnb_ptr)
Creates a new LNB band in the database with the given settings.
Definition: ap_dbacc.c:772
void ADB_SetCridDateTime(void *c_ptr, U32DHMS datetime)
Sets the date and time fields on the given CRID record.
Definition: ap_dbacc.c:10563
void ADB_GetNetworkList(void ***nlist_ptr, U16BIT *num_entries_ptr)
Allocates and returns a list of the network records in the database.
Definition: ap_dbacc.c:1112
U16BIT ADB_FindLcnInServiceList(U16BIT lcn, void **slist_ptr, U16BIT num_entries)
Returns the index into the given list of services of the service with the given LCN.
Definition: ap_dbacc.c:4194
void ADB_SaveEventSchedule(E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite)
Saves the event schedule for all services for the given type of tuner to the database. Note: the database has to support this operation.
Definition: ap_dbacc.c:536
E_STB_DP_AUDIO_MODE ADB_GetRequiredAudioMode(void *s_ptr)
Returns the mode to be used for audio for the given service based on language settings, output format, etc.
Definition: ap_dbacc.c:5454
void ADB_GetTransportListForTunerType(E_STB_DP_SIGNAL_TYPE tuner_type, void ***tlist_ptr, U16BIT *num_entries_ptr)
Allocates and returns a list of all transport records in the database for the given type of tuner...
Definition: ap_dbacc.c:1723
void ADB_GetCridRecordList(void ***clist_ptr, U16BIT *num_entries_ptr, BOOLEAN inc_series_crids, BOOLEAN inc_rec_crids, BOOLEAN inc_prog_crids)
Creates an array of CRID record pointers to pass back to the caller with the number of entries in the...
Definition: ap_dbacc.c:10970
System Wide Global Technical Data Type Definitions.
U16BIT ADB_GetNetworkSecondaryTargetRegions(U32BIT country_code, U8BIT primary_region, U8BIT **code_array, U8BIT ***name_array)
Returns an array of secondary region codes and names for the given country and primary region...
Definition: ap_dbacc.c:1483
BOOLEAN ADB_GetServiceHasCaDesc(void *s_ptr)
Used to query whether the given service has a CA descriptor.
Definition: ap_dbacc.c:5801
void ADB_PrepareDatabaseForSearch(E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite, BOOLEAN retune, BOOLEAN manual_search)
Sets up the database for a search.
Definition: ap_dbacc.c:200
U16BIT ADB_GetProfileList(void ***profile_list, U16BIT *active_profile)
Returns an array of available profiles. The array will be allocated within the function and should be...
Definition: ap_dbacc.c:11901
BOOLEAN ADB_ServiceRCTCanUseDefaultIcon(void *serv_ptr)
Checks all the RCT links for the given service to determine whether any of them specify that the defa...
Definition: ap_dbacc.c:6657
void ADB_SetServiceFavGroups(void *s_ptr, U8BIT groups)
Sets the favourite group value for the given service. This is an 8-bit value that can define whether ...
Definition: ap_dbacc.c:10158
U8BIT * ADB_GetServiceShortNameByLangAndPrefId(void *s_ptr, U8BIT lang, U8BIT pref_name_id)
Returns the short name of the given service as a UTF-8 string using the given language and preferred ...
Definition: ap_dbacc.c:5019
U16BIT ADB_GetCridEitDate(void *c_ptr)
Returns the EIT update date contained in the given CRID record.
Definition: ap_dbacc.c:10917
void ADB_SetSecondaryAudioLang(U32BIT country_code, U8BIT lang_id)
Sets the secondary audio language to be used. This will be selected if the primary audio language isn...
Definition: ap_dbacc.c:7874
U8BIT ADB_GetServiceFavGroups(void *s_ptr)
Returns the favourite group value for the given service. This is an 8-bit value that can define wheth...
Definition: ap_dbacc.c:10132
U32BIT ADB_GetSubtitleStreamLangCode(void *stream_ptr)
Returns the 3 char language code of the given subtitle stream.
Definition: ap_dbacc.c:7717
void * ADB_GetEPGService(void *n_ptr)
Returns a service that is signalled as containing EPG data via an NIT linkage descriptor.
Definition: ap_dbacc.c:11132
void * ADB_GetServiceRCTLinks(void *serv_ptr, U8BIT *num_links)
Returns a copy of the RCT links for the given service. The returned list should be freed using ADB_Re...
Definition: ap_dbacc.c:6311
void ADB_DeleteServiceFromFavouriteList(U8BIT list_id, void *serv_ptr)
Removes the given service from the favourite list defined by the list id.
Definition: ap_dbacc.c:11584
void ADB_SetServiceHiddenFlag(void *s_ptr, BOOLEAN hidden)
Sets the hidden status of the given service, which means the service would not be presented to the us...
Definition: ap_dbacc.c:9988
U8BIT * ADB_GetCridString(void *c_ptr)
Returns the CRID string from the given CRID record. The returned value should not be freed...
Definition: ap_dbacc.c:10827
BOOLEAN ADB_GetServiceNewFlag(void *s_ptr)
Returns the status of the &#39;new&#39; flag of the given service. This flag indicates whether a service has ...
Definition: ap_dbacc.c:5881
void ADB_SetCridService(void *c_ptr, U16BIT serv_id)
Sets the service ID on the given CRID record.
Definition: ap_dbacc.c:10587
U8BIT ADB_GetEventStartHour(void *event_ptr)
Returns the hour (0-23) value for the start of the given event.
Definition: ap_dbacc.c:8843
void * ADB_LaterEvent(void *serv_ptr, U32DHMS time)
Returns a copy of the event following the given date/time on the given service.
Definition: ap_dbacc.c:8615
ADB_SERVICE_TYPE ADB_GetServiceType(void *s_ptr)
Returns the signalled type of the given service.
Definition: ap_dbacc.c:5593
E_STB_DP_FEC_LAYER ADB_GetServiceFecLayer(void *s_ptr, S_STB_DP_FEC_LAYER_INFO *fec_info)
Returns the FEC layer used for a service.
Definition: ap_dbacc.c:11877
U8BIT ** ADB_GetServiceListTransportNames(void **slist, U16BIT num_entries)
Allocates and returns a list of transport names for all the services in the given service list...
Definition: ap_dbacc.c:4845
U8BIT * ADB_GetEventSIDescriptorData(void *serv_ptr, U16BIT event_id, U8BIT dtag_id, S16BIT ext_dtag_id, U32BIT private_data_specifier, U16BIT *desc_len)
Returns a copy of the raw SI descriptor data with the given descriptor tag id and, optionally, extended descriptor tag id, for the event with the given event id. The data must be freed using ADB_ReleaseEventSIDescriptorData.
Definition: ap_dbacc.c:8424
void * ADB_EarlierEvent(void *serv_ptr, U32DHMS time)
Returns a copy of the event preceeding the given date/time on the given service.
Definition: ap_dbacc.c:8531
void ADB_SetSecondaryTextLang(U32BIT country_code, U8BIT lang_id)
Sets the secondary subtitle and teletext language to be used. This will be used if the primary langua...
Definition: ap_dbacc.c:7919
void ADB_GetLockedServiceList(void ***slist_ptr, U16BIT *num_entries_ptr)
Allocates and returns a list of all services that are marked as locked for parental control purposes...
Definition: ap_dbacc.c:3602
U8BIT ADB_GetTransportBwidth(void *t_ptr)
Returns the bandwidth value of the given DVB-T/T2 transport.
Definition: ap_dbacc.c:2488
void ADB_GetReqdCcStreamSettings(void *s_ptr, BOOLEAN *valid, U32BIT *lang_code, BOOLEAN *digital_cc, U8BIT *caption_service, BOOLEAN *easy_reader, BOOLEAN *wide_aspect_ratio)
Returns the settings defined by ADB_SetReqdCcStreamSettings that will be used for CC on the given ser...
Definition: ap_dbacc.c:10406
U16BIT ADB_GetServicePCRPid(void *s_ptr)
Returns the PCR PID for the given service.
Definition: ap_dbacc.c:5263
U16BIT ADB_GetStreamTagContentType(void *stream_ptr, U8BIT index)
For the given stream and index into component tag array for stream, return stream content and compone...
Definition: ap_dbacc.c:7802
application level common header
void * ADB_GetEventService(void *event_ptr)
Returns the service pointer of event.
Definition: ap_dbacc.c:12672
void ADB_GetServiceIds(void *s_ptr, U16BIT *onet_id, U16BIT *trans_id, U16BIT *serv_id)
Returns the original network id, transport id and service id for the given service.
Definition: ap_dbacc.c:5081
void ADB_GetTransportCableTuningParams(void *t_ptr, U32BIT *freq_hz, E_STB_DP_CMODE *mode, U16BIT *symrate)
Returns the parameters needed to tune a cable tuner to a transport.
Definition: ap_dbacc.c:2891
U8BIT ADB_GetStreamNumCaptionServices(void *stream_ptr)
Returns the number of caption services values defined for the given stream.
Definition: ap_dbacc.c:7318
U8BIT * ADB_GetEventExtendedDescription(void *event_ptr)
Returns the extended event description text of the event as a UTF-8 string. The returned string shoul...
Definition: ap_dbacc.c:9201
E_STB_DP_AUDIO_CODEC ADB_GetAudioCodecFromStream(ADB_STREAM_TYPE audio_stream_type)
Derive audio codec from stream.
Definition: ap_dbacc.c:12608
U16BIT ADB_GetNetworkId(void *n_ptr)
Returns the network id of the given network.
Definition: ap_dbacc.c:1288
U32DHMS ADB_GetEventEndDateTime(void *event_ptr)
Returns a value representing the date and time of the end of the given event.
Definition: ap_dbacc.c:8935
U8BIT ** ADB_GetServiceListNetworkNames(void **slist, U16BIT num_entries)
Allocates and returns a list of network names for all the services in the given service list...
Definition: ap_dbacc.c:4798
U8BIT * ADB_GetServiceShortName(void *s_ptr, BOOLEAN use_pref_name)
Returns the short name of the given service as a UTF-8 string. The returned string should be freed us...
Definition: ap_dbacc.c:4963
U8BIT * ADB_GetTransportName(void *t_ptr)
Returns the name, in UTF-8 format, of the given transport. The returned name should be freed using ST...
Definition: ap_dbacc.c:2340
void * ADB_FindCridRecord(U8BIT *crid_str)
Searches for and returns the CRID record with the given CRID string.
Definition: ap_dbacc.c:10528
Definition: ap_dbacc.h:221
BOOLEAN ADB_GetEventDoNotScramble(void *event_ptr)
Returns the do_not_scramble flag for the event, which will have been found by looking backwards in th...
Definition: ap_dbacc.c:9417
void ADB_GetTransportServiceList(void *t_ptr, void ***slist_ptr, U16BIT *num_entries_ptr)
Allocates and returns a list of all services in the database on the given transport.
Definition: ap_dbacc.c:3431
void ADB_UpdateCridEitDate(void *c_ptr)
Updates the time the CRID was last seen in the EIT.
Definition: ap_dbacc.c:10665
void * ADB_GetNextServiceInList(U32BIT list_type, void *serv)
Returns the next service, in LCN order, for the given list type, starting from the given service...
Definition: ap_dbacc.c:3866
void ADB_GetEventSchedule(BOOLEAN include_old_events, void *serv_ptr, void ***elist_ptr, U16BIT *num_entries_ptr)
Allocates and returns an array containing copies of events for the given service from the service&#39;s E...
Definition: ap_dbacc.c:7992
BOOLEAN ADB_GetServiceIsHd(void *s_ptr)
Returns whether the service is signalled as an HD service.
Definition: ap_dbacc.c:5359
U8BIT ADB_GetEventDurationSecs(void *event_ptr)
Returns the seconds value (0-59) for the duration of the given event.
Definition: ap_dbacc.c:8925
U32BIT ADB_GetTtextStreamLangCode(void *stream_ptr)
Returns the 3 char language code of the given teletext stream.
Definition: ap_dbacc.c:7637
U16BIT ADB_GetEventId(void *event_ptr)
Returns the event id for the given event.
Definition: ap_dbacc.c:9330
BOOLEAN ADB_GetServiceLcnEditable(void *s_ptr)
Returns whether the LCN assigned to the given service can be changed.
Definition: ap_dbacc.c:10060
U8BIT ADB_GetStreamTag(void *stream_ptr, U8BIT index)
Returns the requested tag value of the given stream.
Definition: ap_dbacc.c:7289
U16BIT ADB_GetTransportSatelliteSymbolRate(void *t_ptr)
Returns the symbol rate of the given satellite transponder.
Definition: ap_dbacc.c:2776
BOOLEAN ADB_IsProgrammeCrid(void *c_ptr)
Returns TRUE if the CRID record given represents a programme (split event)
Definition: ap_dbacc.c:10684
U8BIT ADB_GetStreamComponentType(void *stream_ptr)
Returns the component type as defined in the EITp/f&#39;s component descriptor for the given stream...
Definition: ap_dbacc.c:7778
BOOLEAN ADB_IsSameEvent(void *event1_ptr, void *event2_ptr)
Checks whether the two events are the same. Not all fields are checked, just date, time, duration and event ID.
Definition: ap_dbacc.c:9509
void ADB_SetServiceListLockedFlag(void **slist, U16BIT num_entries, BOOLEAN locked)
Sets the locked state of all services in the given service list.
Definition: ap_dbacc.c:4725
U8BIT * ADB_GetNetworkNameByLang(void *n_ptr, U8BIT lang)
Returns the name in the language defined by lang, in UTF-8 format, of the given network. The returned name should be freed using STB_ReleaseUnicodeString.
Definition: ap_dbacc.c:1268
U8BIT ADB_GetTtextStreamType(void *stream_ptr)
Returns the type, as defined in the PMT, of the given teletext stream.
Definition: ap_dbacc.c:7657
U16BIT ADB_GetServiceAudioPid(void *s_ptr)
Returns the audio PID for the given service. This will be the one chosen based on the settings for la...
Definition: ap_dbacc.c:5288
BOOLEAN ADB_GetStreamHasCaDesc(void *stream_ptr)
Returns whether the given stream has a CA descriptor.
Definition: ap_dbacc.c:7556
void ADB_ServiceAddRCTLink(void *serv_ptr, void *link_ptr)
Adds the given RCT link info to the end of the list of existing RCT links already defined for the giv...
Definition: ap_dbacc.c:6209
U16BIT ADB_GetServicePmtPid(void *s_ptr)
Returns the current PMT PID for the given service.
Definition: ap_dbacc.c:11764
U8BIT * ADB_GetEventName(void *event_ptr)
Returns the name of the event as a UTF-8 string. The returned string should be freed using STB_Releas...
Definition: ap_dbacc.c:9100
BOOLEAN ADB_ImportDB(U8BIT *filename)
Imports the database from an XML file.
Definition: ap_dbxml.c:325
U16BIT ADB_GetNumDeletedServices(E_STB_DP_SIGNAL_TYPE tuner_type)
Returns the number of services marked as deleted with the given tuner type.
Definition: ap_dbacc.c:3385
U16BIT ADB_GetNumFavouriteLists(void)
Returns the number of favourite lists.
Definition: ap_dbacc.c:11170
void ADB_ReleaseEventList(void **elist, U16BIT num_entries)
Frees all teh events in the given list and all associated memory for those events.
Definition: ap_dbacc.c:8282
U16BIT ADB_GetFreesatServiceId(void *s_ptr)
Returns Freesat service ID of the given service.
Definition: ap_dbacc.c:6013
BOOLEAN ADB_GetStreamInUse(void *stream_ptr)
Returns whether the given stream is marked as being &#39;in use&#39;, which means it will be the stream being...
Definition: ap_dbacc.c:7508
void ADB_DeleteCridRecord(void *c_ptr)
Deletes the given CRID record from the database.
Definition: ap_dbacc.c:10946
void * ADB_AddLNB(ADB_LNB_SETTINGS *settings)
Creates a new LNB in the database with the given settings.
Definition: ap_dbacc.c:641
void ADB_SortServiceListAlphabetically(void **slist, U16BIT num_entries, BOOLEAN short_name)
Sorts the given list of services into alphabetical order. Case is significant.
Definition: ap_dbacc.c:3731
U8BIT * ADB_GetNetworkName(void *n_ptr)
Returns the name, in UTF-8 format, of the given network. The returned name should be freed using STB_...
Definition: ap_dbacc.c:1246
U8BIT ADB_GetEventNumSeriesCrids(void *event_ptr)
Returns the number of series CRIDs for the given event.
Definition: ap_dbacc.c:9740
void ADB_ResetDatabase(void)
Clears the service database and resets everything to defaults values.
Definition: ap_dbacc.c:487
U8BIT * ADB_GetServiceFullName(void *s_ptr, BOOLEAN use_pref_name)
Returns the full name of the given service as a UTF-8 string. The returned string should be freed usi...
Definition: ap_dbacc.c:4932
void ADB_SetCridProgrammeName(void *c_ptr, U8BIT *prog_name)
Sets the programme name field of the given CRID record.
Definition: ap_dbacc.c:10611
void ADB_DeleteServiceRec(void *s_ptr)
Deletes the given service from the database.
Definition: ap_dbacc.c:6785
BOOLEAN ADB_ServiceHasSubtitles(void *serv_ptr, E_SUBTITLE_FORMAT *subs_format)
Determines whether the given service has subtitles, DVB or teletext.
Definition: ap_dbacc.c:6902
void ADB_GetEventScheduleByGenre(ADB_EVENT_CONTENT genre, BOOLEAN include_old_events, void *serv_ptr, void ***elist_ptr, U16BIT *num_entries_ptr)
Creates a copy of the event schedule for the given service, but only includes events of the given gen...
Definition: ap_dbacc.c:8125
void * ADB_AddCridRecord(U8BIT *crid, BOOLEAN series, BOOLEAN recommended)
Adds a CRID record to the database; use ADB_SaveCridRecord to store it If a CRID record with the give...
Definition: ap_dbacc.c:10484
void ADB_SetServiceDeletedFlag(void *s_ptr, BOOLEAN deleted)
Sets the &#39;deleted&#39; flag for the given service as a deleted service. If it&#39;s marked as deleted then it...
Definition: ap_dbacc.c:10084
ADB_STREAM_TYPE ADB_GetStreamType(void *stream_ptr)
Returns the type of the given stream.
Definition: ap_dbacc.c:7244
U8BIT * ADB_GetServiceProviderName(void *s_ptr)
Returns the provider name, as a UTF-8 string, using the default language, of the given service...
Definition: ap_dbacc.c:5618
BOOLEAN ADB_GetTransportSearchFlag(void *t_ptr)
Returns whether a transport has been used during a service scan operation.
Definition: ap_dbacc.c:2245
void ADB_GetTransportTerrestrialTuningParams(void *t_ptr, E_STB_DP_TTYPE *terr_type, U32BIT *freq_hz, E_STB_DP_TMODE *mode, E_STB_DP_TBWIDTH *bwidth, U8BIT *plp_id)
Returns the settings to tune to the given DVB-T/T2 transport.
Definition: ap_dbacc.c:2811
void ADB_SetTunedTransport(U8BIT path, void *t_ptr)
Sets the given transport as the one tuned to on the given decode path. The transport&#39;s network is als...
Definition: ap_dbacc.c:3023
BOOLEAN ADB_GetCridDoNotDelete(void *c_ptr)
Returns the value of the do not delete flag for the given CRID record.
Definition: ap_dbacc.c:10797
U32BIT * ADB_GetServiceListTransportStrengths(void **slist, U16BIT num_entries)
Allocates and returns an array of the signal strengths of the transports containing the given list of...
Definition: ap_dbacc.c:4886
Header file - Function prototypes for tuner control.
E_STB_DP_VIDEO_CODEC ADB_GetVideoCodecFromStream(ADB_STREAM_TYPE video_stream_type)
Derive video codec from stream.
Definition: ap_dbacc.c:12645
BOOLEAN ADB_IsSplitProgrammeCrid(U8BIT *crid)
Returns TRUE if the given CRID represents a split event (i.e. it contains an Instance Metadata Identi...
Definition: ap_dbacc.c:9579
E_STB_DP_SIGNAL_TYPE ADB_GetServiceSignalType(void *s_ptr, BOOLEAN *is_sig2)
Returns the signal type for transport of given service. It also indicates the mode (T2...
Definition: ap_dbacc.c:3812
void ADB_ReleaseEventData(void *event_ptr)
Frees any memory allocated for the given event and the event itself.
Definition: ap_dbacc.c:8265