37 #define ADB_LANG_CODE_UNDEF            0x756e64    38 #define ADB_LANG_CODE_QAA              0x716161    39 #define ADB_LANG_CODE_NAR              0x6e6172    42 #define LINKAGE_DTAG                   0x4a    43 #define SHORT_EVENT_DTAG               0x4d    44 #define EXTENDED_EVENT_DTAG            0x4e    45 #define COMPONENT_DTAG                 0x50    46 #define CONTENT_DTAG                   0x54    47 #define PARENTAL_RATING_DTAG           0x55    48 #define PRIVATE_DATA_SPEC_DTAG         0x5f    49 #define CONT_ID_DESC_DTAG              0x76    50 #define FTA_CONTENT_DESC_DTAG          0x7e    51 #define EXTENSION_DTAG                 0x7f    52 #define USER_DEFINED_DTAG_0x85         0x85    53 #define USER_DEFINED_DTAG_0x89         0x89    55 #define LINK_TYPE_EVENT                0x0d    56 #define LINK_TYPE_EXT_EVENT            0x0e    58 #define INVALID_FREESAT_SERV_ID        0x8000    61 #define TVA_PROGRAMME_CRID             0x01    62 #define TVA_SERIES_CRID                0x02    63 #define TVA_RECOMMENDATION_CRID        0x03    65 #define UK_PROGRAMME_CRID              0x31    66 #define UK_SERIES_CRID                 0x32    67 #define UK_RECOMMENDATION_CRID         0x33    76    STREAM_MATCH_NOT_ZERO,
    78 } E_STREAM_MATCH_TYPE;
    98    E_STB_DP_LNB_TYPE type;
    99    E_STB_DP_LNB_POWER power;
   102    BOOLEAN is_pulse_posn;
   103    BOOLEAN is_diseqc_posn;
   104    E_STB_DP_DISEQC_TONE diseqc_tone;
   105    E_STB_DP_DISEQC_CSWITCH c_switch;
   108    U8BIT diseqc_repeats;      
   132    BOOLEAN has_fta_desc;
   133    BOOLEAN do_not_scramble;
   158    BOOLEAN nit_version_changed;
   161    ADB_STRING *name_array[ACFG_NUM_DB_LANGUAGES];
   162    BOOLEAN has_fta_desc;
   163    BOOLEAN do_not_scramble;
   168    U16BIT num_linkage_entries;
   171    ADB_PROFILE_TYPE profile_type;
   173 #ifdef COMMON_INTERFACE   174    BOOLEAN module_present;
   176    U16BIT cicam_onet_id;
   177    U32BIT cicam_identifier;
   178    BOOLEAN op_search_required;
   179    U16BIT op_search_date;
   180    U16BIT op_search_time;
   208    E_STB_DP_SIGNAL_TYPE sig_type;
   209    U16BIT signal_level_at_search;
   211    U8BIT num_additional_frequencies;
   212    U32BIT *additional_frequencies;
   217       struct _analog_trans_rec
   220          E_STB_DP_ANALOG_VIDEO_TYPE vtype;
   222       struct _terr_trans_rec
   224          E_STB_DP_TBWIDTH bwidth;
   225          E_STB_DP_TMODE tmode;
   226          E_STB_DP_TTYPE terr_type;
   229          E_STB_TUNE_TCONST constellation;
   230          E_STB_TUNE_THIERARCHY hierarchy;
   231          E_STB_TUNE_TCODERATE lp_code_rate;
   232          E_STB_TUNE_TCODERATE hp_code_rate;
   233          E_STB_TUNE_TGUARDINT guard_int;
   236       struct _cable_trans_rec
   238          E_STB_DP_CMODE cmode;
   241       struct _sat_trans_rec
   244          E_STB_DP_POLARITY polarity;
   245          E_STB_DP_FEC fec_code;
   246          E_STB_DP_FEC_TYPE fec_type;
   248          E_STB_DP_MODULATION modulation;
   257    BOOLEAN sdt_received;
   258    BOOLEAN sdt_version_changed;
   261    BOOLEAN has_fta_desc;
   262    BOOLEAN do_not_scramble;
   275    E_STB_DP_AUDIO_MODE mode;
   281    ADB_SUBTITLE_TYPE type;
   282    U16BIT composition_page;
   283    U16BIT ancillary_page;
   305    U8BIT caption_service_number;
   307    BOOLEAN wide_aspect_ratio;
   313    ADB_STREAM_TYPE type;
   320    BOOLEAN has_ca_descriptor;
   322    U8BIT num_caption_services;
   339    U8BIT running_status;
   344    BOOLEAN has_content_management_desc;
   345    BOOLEAN do_not_scramble;
   377    BOOLEAN position_defined;
   378    E_ICON_COORD_SYSTEM coord_system;
   383    E_ICON_TYPE icon_type;
   384    E_ICON_TRANSPORT_MODE transport_mode;
   388    void (*destroy_func)(
void *);
   395    BOOLEAN is_group_trailer;
   397    BOOLEAN can_use_default_icon;
   399    ADB_STRING *promo_text[ACFG_NUM_DB_LANGUAGES];
   416    ADB_SERVICE_TYPE serv_type;
   419    U16BIT allocated_lcn;
   420    U16BIT old_allocated_lcn;
   424    ADB_STRING *short_name_array[ACFG_NUM_DB_LANGUAGES];
   425    ADB_STRING *name_array[ACFG_NUM_DB_LANGUAGES][ADB_NUM_SERV_NAME_IDS];
   426    ADB_STRING *provider_array[ACFG_NUM_DB_LANGUAGES];
   430    U8BIT num_component_desc;
   435    BOOLEAN sched_disabled;
   436    BOOLEAN now_next_disabled;
   438    BOOLEAN eit_now_next_avail;
   442    BOOLEAN eit_sched_avail;
   443    U16BIT num_events_in_schedule;
   446    BOOLEAN pmt_received;
   456    U16BIT subtitle_cpage;
   457    U16BIT subtitle_apage;
   460    U8BIT cc_service_number;
   461    ADB_STREAM_TYPE video_type;
   462    ADB_STREAM_TYPE audio_type;
   464    BOOLEAN reqd_audio_valid;
   465    U32BIT reqd_audio_lang_code;
   466    ADB_AUDIO_TYPE reqd_audio_type;
   467    ADB_STREAM_TYPE reqd_stream_type;
   468    U16BIT reqd_audio_pid;
   469    BOOLEAN reqd_subtitle_valid;
   470    U32BIT reqd_subtitle_lang_code;
   471    ADB_SUBTITLE_TYPE reqd_subtitle_type;
   472    BOOLEAN reqd_ttext_valid;
   473    U32BIT reqd_ttext_lang_code;
   474    ADB_TELETEXT_TYPE reqd_ttext_type;
   475    BOOLEAN reqd_cc_valid;
   476    U32BIT reqd_cc_lang_code;
   477    BOOLEAN reqd_cc_digital_cc;
   478    U8BIT reqd_cc_caption_service;
   479    BOOLEAN reqd_cc_easy_reader;
   480    BOOLEAN reqd_cc_wide_aspect_ratio;
   483    U8BIT running_status;
   490    BOOLEAN lcn_editable;
   493    BOOLEAN has_fta_desc;
   494    BOOLEAN do_not_scramble;
   495    U8BIT content_protection_level;
   505 #ifdef COMMON_INTERFACE   506    BOOLEAN sdt_received;
   507    U8BIT *ci_protection_desc;
   508    U32BIT ci_prot_last_update;
   515    U16BIT num_linkage_entries;
   518    BOOLEAN has_ca_descriptor;
   523    E_STB_DP_FEC_LAYER fec_layer;
   532    U16BIT eit_pf_plus_pid;
   533    U16BIT eit_sched_pid;
   538 #ifdef INTEGRATE_HBBTV   554    BOOLEAN recommended_flag;  
   555    BOOLEAN do_not_delete;     
   593    BOOLEAN change_service;
   603    BOOLEAN event_triggered;
   608    U8BIT prog_crid[TMR_PVR_CRID_LEN_MAX];
   609    U8BIT other_crid[TMR_PVR_CRID_LEN_MAX];
   611    BOOLEAN recommendation;
   615    U32BIT recording_handle;
   616    U8BIT additional_info[TMR_PVR_ADDINFO_LEN_MAX];
   617    BOOLEAN has_start_padding;
   618    S32BIT start_padding;
   619    BOOLEAN has_end_padding;
   621    BOOLEAN do_not_delete;
   622    BOOLEAN programme_started;
   623    BOOLEAN programme_finished;
   634    U8BIT name[TMR_MAX_NAME_LENGTH];
   635    E_TIMER_FREQ frequency;
   649 #ifdef COMMON_INTERFACE   655    U32BIT cicam_identifier;
   657 } ADB_CICAM_TIMER_REC;
   688 BOOLEAN DBDEF_SaveDatabase(
void);
   707 BOOLEAN DBDEF_AllocateLcnsDefault(E_STB_DP_SIGNAL_TYPE tuner_type);
   709 BOOLEAN DBDEF_AllocateLcnsUK(E_STB_DP_SIGNAL_TYPE tuner_type);
   711 #ifdef COUNTRY_FINLAND   712 BOOLEAN DBDEF_AllocateLcnsFinland(E_STB_DP_SIGNAL_TYPE tuner_type);
   714 #ifdef COUNTRY_IRELAND   715 BOOLEAN DBDEF_AllocateLcnsIreland(E_STB_DP_SIGNAL_TYPE tuner_type);
   717 #ifdef COUNTRY_DENMARK   718 BOOLEAN DBDEF_AllocateLcnsDenmark(E_STB_DP_SIGNAL_TYPE tuner_type);
   720 #ifdef COUNTRY_NORWAY   721 BOOLEAN DBDEF_AllocateLcnsNorway(E_STB_DP_SIGNAL_TYPE tuner_type);
   723 #ifdef COUNTRY_SWEDEN   724 BOOLEAN DBDEF_AllocateLcnsSweden(E_STB_DP_SIGNAL_TYPE tuner_type);
   971 void DBDEF_SetCableTransportSymbolRate(
ADB_TRANSPORT_REC *t_ptr, U16BIT symbol_rate);
   972 void DBDEF_SetCableTransportMode(
ADB_TRANSPORT_REC *t_ptr, E_STB_DP_CMODE cmode);
   985    E_STB_DP_POLARITY polarity, BOOLEAN dvb_s2, E_STB_DP_MODULATION modulation,
   997    E_STB_DP_POLARITY polarity, BOOLEAN dvb_s2, E_STB_DP_MODULATION modulation, 
void *satellite);
   999 #ifdef COMMON_INTERFACE  1019    U16BIT symbol_rate, E_STB_DP_POLARITY polarity, BOOLEAN dvb_s2, E_STB_DP_MODULATION modulation,
  1040    U32BIT onet_id, U32BIT tran_id);
  1180    U32BIT tran_id, U32BIT serv_id);
  1202    BOOLEAN *broadcast_mix);
  1204    U8BIT *magazine, U8BIT *page);
  1206    U16BIT *cpage_ptr, U16BIT *apage_ptr);
  1208    U8BIT *caption_service_number, S8BIT *cc_index);
  1320    U32BIT private_data_specifier);
  1518    BOOLEAN search_completed, BOOLEAN manual);
  1521 void DBDEF_TidyDatabaseUK(E_STB_DP_SIGNAL_TYPE tuner_type, BOOLEAN search_completed, BOOLEAN manual);
  1844 #ifdef COMMON_INTERFACE  1852 void DBDEF_SelectCIPlusProfile(U16BIT onet_id, U32BIT cicam_id);
  1860 void DBDEF_PushCIPlusProfile(U16BIT onet_id, U32BIT cicam_id);
  1892 #ifdef COMMON_INTERFACE  1893 ADB_NETWORK_REC* DBDEF_FindNetworkForCIPlusProfile(U16BIT cicam_onet_id, U32BIT cicam_identifier);
  1908 ADB_CICAM_TIMER_REC* DBDEF_AddCicamTimer(U32BIT cicam_id, U32BIT timer_handle);
  1914 void DBDEF_DeleteCicamTimerRec(ADB_CICAM_TIMER_REC *cicam_timer_ptr);
  1922 ADB_CICAM_TIMER_REC* DBDEF_GetNextCicamTimerRec(ADB_CICAM_TIMER_REC *cicam_timer_ptr);
  1929 ADB_CICAM_TIMER_REC* DBDEF_FindCicamTimer(U32BIT cicam_id);
  1936 ADB_CICAM_TIMER_REC* DBDEF_FindCicamTimerByHandle(U32BIT handle);
  1947 #ifdef DEBUG_PRINT_DATABASE  1948 void DBDEF_PrintAllRecords(
void);
  1984 #endif //  _AP_DBDEF_H Definition: ap_dbacc.h:248
ADB_STRING * DBDEF_GetServiceName(ADB_SERVICE_REC *s_ptr, BOOLEAN short_name, BOOLEAN pref_name)
Returns a pointer to the service name, taking into account perferred names and short names...
Definition: ap_dbdef.c:6810
U8BIT * DBDEF_GetEventGuidance(ADB_EVENT_REC *e_ptr, ADB_SERVICE_REC *s_ptr, U8BIT *type, U8BIT *mode)
Returns the guidance text for an event, either from the event itself or the event's service...
Definition: ap_dbdef.c:2800
void DBDEF_SetAudioLang(U8BIT *lang_ids)
sets current audio lang 
Definition: ap_dbdef.c:8377
U16BIT DBDEF_GetNumServices(void)
Returns the total number of services. 
Definition: ap_dbdef.c:5645
void DBDEF_SetTunedNetwork(U8BIT path, ADB_NETWORK_REC *n_ptr)
sets the currently tuned network 
Definition: ap_dbdef.c:8186
ADB_EVENT_CONTENT DBDEF_GetEventGenre(ADB_EVENT_REC *e_ptr, ADB_SERVICE_REC *s_ptr)
Returns the genre of an event. 
Definition: ap_dbdef.c:3508
void DBDEF_GetTransportAdditionalFrequencies(ADB_TRANSPORT_REC *t_ptr, U8BIT *num_freqs, U32BIT **freqs)
Returns the additional frequencies associated with a transport. The returned array should not be modi...
Definition: ap_dbdef.c:5539
Definition: ap_dbdef.h:576
BOOLEAN DBDEF_NetworkInProfile(ADB_NETWORK_REC *n_ptr)
Checks whether the given network is valid for the current profile. There may be multiple CI+ profiles...
Definition: ap_dbdef.c:10538
Definition: ap_dbdef.h:286
ADB_STRING * DBDEF_ConcatSIString(ADB_STRING *str1, SI_STRING_DESC *str2)
Concatenates an SI_STRING_DESC string to the end of an ADB_STRING string, removing any terminating '\...
Definition: ap_dbdef.c:4016
void DBDEF_SetServicePort(ADB_SERVICE_REC *s_ptr, U16BIT port)
Set the port for a service. 
Definition: ap_dbdef.c:7129
U16BIT DBDEF_GetNumProfiles(void)
Returns the number of network profiles. 
Definition: ap_dbdef.c:10178
BOOLEAN DBDEF_IsValidCridRecord(ADB_CRID_REC *c_ptr)
Checks whether the given crid record is in the list of valid crid records. 
Definition: ap_dbdef.c:9197
Definition: ap_dbdef.h:310
void DBDEF_SortTimers(BOOLEAN date_time_order)
Sorts timer list into date/time or alphabetical order. 
Definition: ap_dbdef.c:10136
void DBDEF_SetNetworkName(ADB_NETWORK_REC *n_ptr, U8BIT *name)
Set or change the name of the given network. 
Definition: ap_dbdef.c:4776
BOOLEAN DBDEF_SetLNBUnicable(ADB_LNB_REC *lnb, U32BIT inter_freq, U8BIT chan)
Sets the LNB Unicable settings. 
Definition: ap_dbdef.c:4379
void DBDEF_ReleaseProfileList(void **profile_list, U16BIT num_profiles)
Frees a profile list returned by DBDEF_GetProfileList. 
Definition: ap_dbdef.c:10294
ADB_SERVICE_REC * DBDEF_GetNextServiceOnTransport(ADB_SERVICE_REC *s_ptr, ADB_TRANSPORT_REC *t_ptr)
Find the next service following the given service that's on the given transport. 
Definition: ap_dbdef.c:6244
void DBDEF_DeleteNetworkRec(ADB_NETWORK_REC *n_ptr)
Deletes specified network record. 
Definition: ap_dbdef.c:4764
U8BIT * DBDEF_GetEventContentData(ADB_EVENT_REC *e_ptr, U8BIT *p_len)
Returns the level 1 and 2 values for all content identifiers for the given event. ...
Definition: ap_dbdef.c:3474
U8BIT * DBDEF_GetSecondaryTextLang(void)
returns array of secondary text langs 
Definition: ap_dbdef.c:8359
ADB_CRID_REC * DBDEF_AddCridRecord(U8BIT *crid, BOOLEAN series, BOOLEAN recommended)
Creates a CRID record and adds it to the database. 
Definition: ap_dbdef.c:8983
void DBDEF_UpdateCridEitDate(ADB_CRID_REC *c_ptr)
Updates the stored EIT date of this CRID with the current GMT date. 
Definition: ap_dbdef.c:9110
ADB_NETWORK_REC * DBDEF_GetTunedNetwork(U8BIT path)
gets the currently tuned network 
Definition: ap_dbdef.c:8205
void DBDEF_SetServicePmtPid(ADB_SERVICE_REC *s_ptr, U16BIT pmt_pid)
Updates the pmt pid. 
Definition: ap_dbdef.c:7338
U8BIT * DBDEF_GetAudioLang(void)
returns current audio lang 
Definition: ap_dbdef.c:8413
Definition: ap_dbdef.h:626
void DBDEF_SetTextLang(U8BIT *lang_ids)
sets current text lang 
Definition: ap_dbdef.c:8305
ADB_TRANSPORT_REC * DBDEF_GetTunedTransport(U8BIT path)
gets the currently tuned transport 
Definition: ap_dbdef.c:8243
ADB_TIMER_REC * DBDEF_GetNextTimerRec(ADB_TIMER_REC *timer_ptr)
Returns the next timer record after the one given. If the argument is NULL then the first record is r...
Definition: ap_dbdef.c:10112
E_STREAM_MATCH_TYPE DBDEF_GetReqdTtextPid(ADB_SERVICE_REC *s_ptr, BOOLEAN for_subtitles, U16BIT *pid_ptr, U8BIT *magazine, U8BIT *page)
Gets the appropriate teletext pid - looks first for the params matching exactly the required teletext...
Definition: ap_dbdef.c:6565
Definition: ap_dbdef.h:294
BOOLEAN DBDEF_TransportInProfile(ADB_TRANSPORT_REC *t_ptr)
Checks whether the given transport is valid for the current profile. There may be multiple CI+ profil...
Definition: ap_dbdef.c:10502
void DBDEF_SetServiceDeletedFlag(ADB_SERVICE_REC *s_ptr, BOOLEAN deleted)
Marks whether a service is deleted or not. 
Definition: ap_dbdef.c:6945
BOOLEAN DBDEF_SetLNB12V(ADB_LNB_REC *lnb, BOOLEAN is_12v)
Sets the LNB 12V setting. 
Definition: ap_dbdef.c:4178
Definition: stbsitab.h:432
Definition: stbsitab.h:135
U8BIT * DBDEF_GetServiceGuidance(ADB_SERVICE_REC *s_ptr)
Returns the guidance text for the service, as a UTF-8 string. The returned string should be freed usi...
Definition: ap_dbdef.c:2986
void DBDEF_SetSatTransportTuningParams(ADB_TRANSPORT_REC *t_ptr, U32BIT freq_hz, U16BIT symbol_rate, E_STB_DP_POLARITY polarity, BOOLEAN dvb_s2, E_STB_DP_MODULATION modulation, ADB_NETWORK_REC *network)
Sets the tuning parameters for an existing satellite transport. 
Definition: ap_dbdef.c:5339
Application configuration. 
Definition: ap_dbdef.h:600
ADB_TIMER_REC * DBDEF_AddTimerRec(BOOLEAN store_in_nvm)
Creates a new timer record in the database, assigning it a unique handle. 
Definition: ap_dbdef.c:10023
ADB_TRANSPORT_REC * DBDEF_AddIPTransportRec(U16BIT onet_id, U16BIT tran_id, U8BIT *url)
Adds an IP transport record. 
Definition: ap_dbdef.c:5381
ADB_SERVICE_REC * DBDEF_AddServiceRec(U16BIT serv_id, ADB_TRANSPORT_REC *t_ptr)
Adds a new service record to the service database with the given service ID and parent transport...
Definition: ap_dbdef.c:5737
Definition: ap_dbdef.h:192
ADB_TIMER_REC * DBDEF_FindTimerRec(U32BIT handle)
Returns the timer record with the given timer handle. 
Definition: ap_dbdef.c:10089
void DBDEF_RequestAccess(void)
Requests access to the app's database. 
Definition: ap_dbdef.c:234
ADB_SERVICE_REC * DBDEF_GetPrevServiceRec(ADB_SERVICE_REC *s_ptr)
Returns the service before the one given. If NULL is passed then the last service in the list is retu...
Definition: ap_dbdef.c:5705
U8BIT * DBDEF_GetEventName(ADB_EVENT_REC *e_ptr)
Returns the name of the event as a UTF-8 string in the currently selected language. The returned string should be freed using STB_ReleaseUnicodeString. 
Definition: ap_dbdef.c:2123
void DBDEF_DeleteRCTLinks(ADB_RCT_LINK_INFO *links)
Frees the given list of RCT links. 
Definition: ap_dbdef.c:3883
Definition: ap_dbdef.h:151
BOOLEAN DBDEF_LoadDatabase(U8BIT *db_pathname)
Loads the service database from non-volatile storage and creates the RAM version of this data that wi...
Definition: ap_dbdef.c:258
ADB_LNB_BAND_REC * DBDEF_GetNextLNBBandRec(ADB_LNB_BAND_REC *band_ptr)
Returns the next LNB band record after the one given. If the argument is NULL then the first record i...
Definition: ap_dbdef.c:4655
void DBDEF_PushBroadcastProfile(void)
Saves the current profile and any related data so that it can restored using DBDEF_PopProfile(), and sets the broadcast profile type for for all network, transport and service record accesses. 
Definition: ap_dbdef.c:10376
void DBDEF_SetCridService(ADB_CRID_REC *c_ptr, U16BIT serv_id)
Sets the service ID in the crid record. 
Definition: ap_dbdef.c:9053
Structure representing the component information as found in the EIT component_descriptor. 
Definition: ap_dbacc.h:240
Definition: ap_dbdef.h:547
ADB_FAVSERV_REC * DBDEF_GetNextServiceFromFavouriteList(ADB_FAVLIST_REC *fav_list, ADB_FAVSERV_REC *fav_serv)
Returns the next favourite list service record. 
Definition: ap_dbdef.c:9719
BOOLEAN DBDEF_SetLNBSmatv(ADB_LNB_REC *lnb, BOOLEAN is_smatv)
Sets the LNB SMATV setting. 
Definition: ap_dbdef.c:4328
ADB_SERVICE_REC * DBDEF_FindServiceRec(U16BIT serv_id, ADB_TRANSPORT_REC *t_ptr)
Search for the service with the given service ID on the given transport. 
Definition: ap_dbdef.c:6280
BOOLEAN DBDEF_ServiceInProfile(ADB_SERVICE_REC *s_ptr)
Checks whether the given service is valid for the current profile. There may be multiple CI+ profiles...
Definition: ap_dbdef.c:10466
U16BIT DBDEF_GetReqdVideoPid(ADB_SERVICE_REC *s_ptr, ADB_STREAM_TYPE *video_type)
Returns the video pid and type that should be used for the given service from the list of video strea...
Definition: ap_dbdef.c:6755
BOOLEAN DBDEF_TransportForTunerType(ADB_TRANSPORT_REC *t_ptr, E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite)
Checks whether the given transport is a terrestrial, cable or satellite transport, and optionally check whether it's on a particular satellite. 
Definition: ap_dbdef.c:9995
BOOLEAN DBDEF_ServiceForTunerType(ADB_SERVICE_REC *s_ptr, E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite)
Checks whether the given service is a terrestrial, cable or satellite service, and optionally check w...
Definition: ap_dbdef.c:9965
BOOLEAN DBDEF_AddAnalogService(void)
Adds an analogue service, transport and, if necessary, network to the database based on the current t...
Definition: ap_dbdef.c:7204
U8BIT * DBDEF_GetServiceDefaultAuthority(ADB_SERVICE_REC *s_ptr)
Returns a copy of the default authority CRID string for the given service. This string will be return...
Definition: ap_dbdef.c:3768
void DBDEF_DeleteServiceFromFavouriteList(ADB_FAVLIST_REC *fav_list, ADB_FAVSERV_REC *fav_serv)
Delete the given service from the given favourite list. 
Definition: ap_dbdef.c:9829
void DBDEF_DeleteAllServicesFromFavouriteList(ADB_FAVLIST_REC *fav_list)
Delete the all services from the given favourite list. 
Definition: ap_dbdef.c:9863
ADB_SATELLITE_REC * DBDEF_GetNextSatelliteRec(ADB_SATELLITE_REC *sat_ptr)
Returns the next satellite record after the one given. If the argument is NULL then the first record ...
Definition: ap_dbdef.c:4537
ADB_SATELLITE_REC * DBDEF_AddSatelliteRec(ADB_STRING *name_str, U16BIT dish_pos, U16BIT long_pos, BOOLEAN east_west, ADB_LNB_REC *associated_lnb)
Add a satellite record to the database. 
Definition: ap_dbdef.c:4446
U8BIT * DBDEF_GetTextLang(void)
returns array of current text langs 
Definition: ap_dbdef.c:8323
ADB_FAVSERV_REC * DBDEF_FindServiceInFavouriteList(ADB_FAVLIST_REC *fav_list, void *serv_ptr)
Returns the ADB_FAVSERV_REC from the given favourite list for the given service. 
Definition: ap_dbdef.c:9691
Definition: ap_dbdef.h:271
void DBDEF_ClearTableVersionHistory(ADB_TRANSPORT_REC *t_ptr)
Clears the version histories stored in the transport records. 
Definition: ap_dbdef.c:5618
U16BIT DBDEF_GetNumSatellites(void)
Returns the number of satellite records in the database. 
Definition: ap_dbdef.c:4430
Definition: ap_dbdef.h:360
ADB_NETWORK_REC * DBDEF_FindOrAddPrivateNetwork(void *satellite)
Find or add a private network, assigning an unused private network ID. 
Definition: ap_dbdef.c:10793
ADB_SERVICE_REC * DBDEF_GetNextServiceRec(ADB_SERVICE_REC *s_ptr)
Returns the service after the one given. If NULL is passed then the first service in the list is retu...
Definition: ap_dbdef.c:5674
ADB_TRANSPORT_REC * DBDEF_FindCableTransportRec(U32BIT freq_hz, U32BIT symbol_rate)
Find the cable transport record in the database matching the given params. 
Definition: ap_dbdef.c:5108
ADB_EVENT_DESC * DBDEF_FindEventDescriptor(ADB_EVENT_DESC *start_desc, U8BIT desc_tag, U32BIT private_data_specifier)
Searches a descriptor list for the first descriptor with the given descriptor tag. 
Definition: ap_dbdef.c:2071
Application timer functions and defines. 
U16BIT DBDEF_GetNumTransports(void)
Returns the number of transports in ther service database. 
Definition: ap_dbdef.c:4897
void DBDEF_SetServiceFecLayer(ADB_SERVICE_REC *s_ptr, E_STB_DP_FEC_LAYER fec_layer, S_STB_DP_FEC_LAYER_INFO *fec_info)
Set the port for a service. 
Definition: ap_dbdef.c:7145
void DBDEF_SetCridDateTime(ADB_CRID_REC *c_ptr, U32DHMS date_time)
Sets the date and time fields in the crid record. 
Definition: ap_dbdef.c:9035
void DBDEF_DeleteLNBBandRec(ADB_LNB_BAND_REC *band_ptr)
Deletes an LNB band record from the database. 
Definition: ap_dbdef.c:4679
void DBDEF_SetFavouriteListUserData(ADB_FAVLIST_REC *fav_list, U32BIT user_data)
Saves the given user data with a favourite list. 
Definition: ap_dbdef.c:9453
ADB_TRANSPORT_REC * DBDEF_FindSatTransportRec(U32BIT freq_hz, U16BIT symbol_rate, E_STB_DP_POLARITY polarity, BOOLEAN dvb_s2, E_STB_DP_MODULATION modulation, void *satellite)
Find the satellite transport record in the database matching the given params. 
Definition: ap_dbdef.c:5238
Definition: ap_dbdef.h:331
void DBDEF_TidyDatabaseNordig(E_STB_DP_SIGNAL_TYPE tuner_type, BOOLEAN search_completed, BOOLEAN manual)
Iterates through all the services following a search search to see whether any need to be deleted bas...
Definition: ap_dbdef.c:8522
BOOLEAN DBDEF_SetLNBDiSEqCPosition(ADB_LNB_REC *lnb, BOOLEAN is_diseqc_posn)
Sets the LNB DiSEqC position setting. 
Definition: ap_dbdef.c:4228
ADB_NETWORK_REC * DBDEF_GetNextNetworkRec(ADB_NETWORK_REC *n_ptr)
Returns the network following the one given. If the argument is NULL then the first network will be r...
Definition: ap_dbdef.c:4868
void DBDEF_SetSecondaryAudioLang(U8BIT *lang_ids)
sets the secondary audio lang 
Definition: ap_dbdef.c:8395
U8BIT * DBDEF_GetEventExtendedDescription(ADB_EVENT_REC *e_ptr)
Returns the extended event description text of the event as a UTF-8 string. The returned string shoul...
Definition: ap_dbdef.c:2370
void DBDEF_DeleteStreamList(ADB_STREAM_REC *slist)
Deletes all records in a service stream list. 
Definition: ap_dbdef.c:2004
U16BIT DBDEF_GetNumLNBBands(void)
Returns the number of LNB band records in the database. 
Definition: ap_dbdef.c:4561
BOOLEAN DBDEF_SetServiceProviderName(ADB_SERVICE_REC *s_ptr, U8BIT *name)
Set or change the name of a service's provider. 
Definition: ap_dbdef.c:6071
E_STREAM_MATCH_TYPE DBDEF_GetReqdSubtitleParams(ADB_SERVICE_REC *s_ptr, U16BIT *pid_ptr, U16BIT *cpage_ptr, U16BIT *apage_ptr)
Gets the appropriate subtitle pid and page ids - looks first for the params matching exactly the requ...
Definition: ap_dbdef.c:6633
void DBDEF_SetFavouriteListName(ADB_FAVLIST_REC *f_ptr, U8BIT *name)
Set or change the name of the given favourite list. 
Definition: ap_dbdef.c:9896
void DBDEF_TidyDatabaseDefault(E_STB_DP_SIGNAL_TYPE tuner_type, BOOLEAN search_completed, BOOLEAN manual)
Iterates through all the services following a search search to see whether any need to be deleted bas...
Definition: ap_dbdef.c:8846
E_STB_DP_FEC_LAYER DBDEF_GetServiceFecLayer(ADB_SERVICE_REC *s_ptr, S_STB_DP_FEC_LAYER_INFO *fec_info)
Set the port for a service. 
Definition: ap_dbdef.c:7174
U8BIT * DBDEF_GetServiceGuidanceData(ADB_SERVICE_REC *s_ptr, U8BIT *type, U8BIT *mode)
Returns the guidance text for the service, as a UTF-8 string. The returned string should be freed usi...
Definition: ap_dbdef.c:2947
void DBDEF_MoveFavouriteListTo(ADB_FAVLIST_REC *fav_list, S16BIT index)
Changes the order of the favourite lists by moving the given list to the given position. 
Definition: ap_dbdef.c:9473
U8BIT DBDEF_GetEventParentalAge(ADB_EVENT_REC *e_ptr)
Returns the parental age value for the given event. 
Definition: ap_dbdef.c:3006
BOOLEAN DBDEF_GetEventSubtitlesAvailFlag(ADB_EVENT_REC *e_ptr)
Returns whether DVB subtitles are signalled as being available for the given event. 
Definition: ap_dbdef.c:3431
U8BIT DBDEF_NumberOfCridsOfType(ADB_EVENT_REC *e_ptr, U8BIT crid_type)
Returns the number of CRIDs of the given type for the event. 
Definition: ap_dbdef.c:3655
ADB_STRING * DBDEF_GetServiceURL(ADB_SERVICE_REC *s_ptr)
Gets the URL for an IP service. 
Definition: ap_dbdef.c:7106
Definition: ap_dbdef.h:325
Definition: ap_dbdef.h:139
void DBDEF_SetTransportTransportId(ADB_TRANSPORT_REC *t_ptr, U16BIT tran_id)
Sets the transport ID of the given transport. 
Definition: ap_dbdef.c:5499
Definition: ap_dbdef.h:278
void DBDEF_TidyDatabaseSatUK(E_STB_DP_SIGNAL_TYPE tuner_type, BOOLEAN search_completed, BOOLEAN manual)
Iterates through all the services following a search search to see whether any need to be deleted bas...
Definition: ap_dbdef.c:8752
U16BIT DBDEF_GetServicePmtPid(ADB_SERVICE_REC *s_ptr)
gets the PMT PID associated with the service 
Definition: ap_dbdef.c:7359
BOOLEAN DBDEF_SetServiceName(ADB_SERVICE_REC *s_ptr, U8BIT *name)
Set or change the name of a service. 
Definition: ap_dbdef.c:5944
Definition: ap_dbdef.h:591
ADB_TRANSPORT_REC * DBDEF_AddSatTransportRec(U32BIT freq_hz, U16BIT symbol_rate, E_STB_DP_POLARITY polarity, BOOLEAN dvb_s2, E_STB_DP_MODULATION modulation, ADB_NETWORK_REC *network)
Adds a satellite transport record with the given frequency, symbol rate and polarity. 
Definition: ap_dbdef.c:5170
Definition: ap_dbdef.h:373
void DBDEF_DeleteRecordsForTunerType(E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite)
Deletes all network, transport and services records for the given tuner type. 
Definition: ap_dbdef.c:1633
Definition: ap_dbdef.h:403
ADB_FAVLIST_REC * DBDEF_AddFavouriteList(U8BIT list_id, U8BIT *name, U32BIT user_data, S16BIT index)
Creates a new favourite list and adds it to the list of favourite lists. Creation of the new list wil...
Definition: ap_dbdef.c:9251
BOOLEAN DBDEF_SetLNB22k(ADB_LNB_REC *lnb, BOOLEAN is_22k)
Sets the LNB 22k setting. 
Definition: ap_dbdef.c:4153
ADB_CRID_REC * DBDEF_GetNextCridRecord(ADB_CRID_REC *c_ptr)
Returns the next CRID record after the one specified. If the record specified is NULL then the first ...
Definition: ap_dbdef.c:9172
BOOLEAN DBDEF_SetServiceURL(ADB_SERVICE_REC *s_ptr, U8BIT *url)
Set or change the URL for accessing an IP service. 
Definition: ap_dbdef.c:7043
void DBDEF_MoveFavouriteListServiceTo(ADB_FAVLIST_REC *fav_list, ADB_FAVSERV_REC *fav_serv, S16BIT index)
Changes the order of the services in the favourite list by moving the given service to the given posi...
Definition: ap_dbdef.c:9771
void DBDEF_ReleaseString(ADB_STRING *string)
Releases an ADB_STRING. 
Definition: ap_dbdef.c:4051
Header file - Function prototypes for linked lists. 
Header file - macros and function prototypes for public use. 
U8BIT * DBDEF_GetFullCrid(ADB_SERVICE_REC *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_dbdef.c:3717
ADB_EVENT_REC * DBDEF_FindScheduleEventById(ADB_SERVICE_REC *s_ptr, U16BIT event_id)
Find an event for a service from its event_id. 
Definition: ap_dbdef.c:2035
Definition: ap_dbdef.h:301
ADB_SERVICE_REC * DBDEF_GetTunedService(U8BIT path)
Returns the currently tuned service on the given path. 
Definition: ap_dbdef.c:8274
Definition: ap_dbdef.h:410
U8BIT * DBDEF_GetEventCrid(ADB_SERVICE_REC *serv_ptr, ADB_EVENT_REC *e_ptr, U8BIT crid_type, U8BIT index)
Returns the full CRID of the type given for the given event. 
Definition: ap_dbdef.c:3583
void DBDEF_SortServicesByLcn(void)
Sort the full service list into ascending logical channel number order. 
Definition: ap_dbdef.c:7396
ADB_LNB_REC * DBDEF_GetNextLNBRec(ADB_LNB_REC *lnb_ptr)
Returns the next LNB record after the one given. If the argument is NULL then the first record is ret...
Definition: ap_dbdef.c:4406
U8BIT DBDEF_GetEventComponentList(ADB_EVENT_REC *e_ptr, ADB_EVENT_COMPONENT_INFO **component_list)
Retrieves a list of components associated with the specified event, as described by component descrip...
Definition: ap_dbdef.c:3366
void DBDEF_DeleteImageIcons(ADB_IMAGE_ICON *icon_list)
Frees given list of image icons and any associated memory. 
Definition: ap_dbdef.c:3917
U16BIT DBDEF_GetReqdAudioPid(ADB_SERVICE_REC *s_ptr, E_STB_DP_AUDIO_MODE *audio_mode, ADB_STREAM_TYPE *audio_type)
Gets the appropriate audio pid - looks first for the pid matching exactly the required audio settings...
Definition: ap_dbdef.c:6459
BOOLEAN DBDEF_SetLNBPulsePosition(ADB_LNB_REC *lnb, BOOLEAN is_pulse_posn)
Sets the LNB pulse position setting. 
Definition: ap_dbdef.c:4203
void DBDEF_RemoveEmptyTransports(E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite)
Delete all transport records that don't have any services. 
Definition: ap_dbdef.c:8935
ADB_TRANSPORT_REC * DBDEF_FindTransportRecByIds(ADB_TRANSPORT_REC *transp, U32BIT net_id, U32BIT onet_id, U32BIT tran_id)
Find a transport record matching the given set of IDs, starting from the given transport. 
Definition: ap_dbdef.c:5445
BOOLEAN DBDEF_AllocateLcns(E_STB_DP_SIGNAL_TYPE tuner_type, BOOLEAN assign_lcns)
allocates lcns - expects allocated lcn for all services to be 0 
Definition: ap_dbdef.c:7417
BOOLEAN DBDEF_GetEventAudioDescriptionFlag(ADB_EVENT_REC *e_ptr)
Returns whether audio description is signalled as being available for the given event. 
Definition: ap_dbdef.c:3052
BOOLEAN DBDEF_SetLNBPower(ADB_LNB_REC *lnb, E_STB_DP_LNB_POWER power)
Sets the LNB power setting. 
Definition: ap_dbdef.c:4128
void DBDEF_DeleteTimerRec(ADB_TIMER_REC *timer)
Deletes the given timer from the database. 
Definition: ap_dbdef.c:10156
ADB_STRING * DBDEF_MakeString(U32BIT lang_code, U8BIT *str_ptr, U16BIT nbytes)
Creates an ADB_STRING, copying the given data into it. If the string passed in is NULL or the number ...
Definition: ap_dbdef.c:3958
void DBDEF_DeleteEventList(ADB_EVENT_REC *elist)
Deletes all events in the given list. 
Definition: ap_dbdef.c:3822
void DBDEF_Initialise(void)
Initialises the database, preparing for it to be accessed. 
Definition: ap_dbdef.c:200
void DBDEF_PopProfile(void)
Restores a previously pushed profile. 
Definition: ap_dbdef.c:10443
Definition: stbsitab.h:178
Definition: ap_dbdef.h:121
Definition: stbsitab.h:141
ADB_STREAM_REC * DBDEF_CopyStreamList(ADB_STREAM_REC *slist)
Creates a copy of a stream list, allocating new memory as required. 
Definition: ap_dbdef.c:1928
U16BIT DBDEF_GetNumLNBs(void)
Returns the number of LNB records in the database. 
Definition: ap_dbdef.c:4067
System Wide Global Technical Data Type Definitions. 
ADB_PROFILE_TYPE DBDEF_GetCurrentProfileType(void)
Returns the current profile type. 
Definition: ap_dbdef.c:10353
ADB_EVENT_ITEMIZED_INFO * DBDEF_GetEventItemizedDescription(ADB_EVENT_REC *e_ptr, U16BIT *num_items_ptr)
Returns the items of extended event descriptor as item descriptor and item itself. 
Definition: ap_dbdef.c:2571
ADB_TRANSPORT_REC * DBDEF_AddTerrestrialTransportRec(U32BIT freq_hz, U8BIT plp_id, ADB_NETWORK_REC *network)
Adds a terrestrial transport record with the given frequency and PLP id. 
Definition: ap_dbdef.c:4942
Definition: ap_dbdef.h:93
U16BIT DBDEF_NumStreamsInList(ADB_STREAM_REC *slist)
Returns the number of stream records in the given list. 
Definition: ap_dbdef.c:1907
Definition: ap_dbdef.h:566
void DBDEF_DeleteAltServList(ADB_ALT_SERV_REC *aslist)
Deletes all records in a service alternate service list. 
Definition: ap_dbdef.c:3865
BOOLEAN DBDEF_SetLNBRepeats(ADB_LNB_REC *lnb, U8BIT repeats)
Sets the LNB message repeat setting in the range 0 to 3. 
Definition: ap_dbdef.c:4353
E_STREAM_MATCH_TYPE DBDEF_GetReqdCcParams(ADB_SERVICE_REC *s_ptr, U16BIT *pid_ptr, BOOLEAN *digital_cc, U8BIT *caption_service_number, S8BIT *cc_index)
Gets the appropriate caption service - looks first for the params matching exactly the required subti...
Definition: ap_dbdef.c:6696
ADB_SERVICE_REC * DBDEF_FindServiceRecByLcn(U16BIT lcn, ADB_TRANSPORT_REC *t_ptr, BOOLEAN allocated_lcn)
Find the service with the given LCN, and optionally on the given transport. 
Definition: ap_dbdef.c:6379
void DBDEF_ReleaseAccess(void)
Releases access to the app's database. 
Definition: ap_dbdef.c:244
U16BIT DBDEF_GetNumCridRecords(void)
Returns the number of CRID records in the database. 
Definition: ap_dbdef.c:9159
ADB_NETWORK_REC * DBDEF_AddNetworkRec(U16BIT net_id, ADB_SATELLITE_REC *satellite)
Adds a new network record to the database with the given network ID. 
Definition: ap_dbdef.c:4712
U16BIT DBDEF_GetProfileList(void ***profile_list, U16BIT *active_profile)
Gets a list of the available network profiles. 
Definition: ap_dbdef.c:10221
ADB_TRANSPORT_REC * DBDEF_AddCableTransportRec(U32BIT freq_hz, U32BIT symbol_rate, ADB_NETWORK_REC *network)
Adds a cable transport record with the given frequency and symbol rate. 
Definition: ap_dbdef.c:5050
ADB_TRANSPORT_REC * DBDEF_FindTerrestrialTransportRec(U32BIT freq_hz, U8BIT plp_id)
Find the terrestrial transport record in the database matching the given params. 
Definition: ap_dbdef.c:5020
BOOLEAN DBDEF_SetLNBCSwitch(ADB_LNB_REC *lnb, E_STB_DP_DISEQC_CSWITCH cswitch)
Sets the LNB committed switch setting. 
Definition: ap_dbdef.c:4278
void DBDEF_SetCridProgrammeName(ADB_CRID_REC *c_ptr, U8BIT *prog_name)
Sets the programme name field of the given CRID record. 
Definition: ap_dbdef.c:9071
ADB_LNB_REC * DBDEF_AddLNB(E_STB_DP_LNB_TYPE type, ADB_STRING *name)
Add an LNB record to the database. 
Definition: ap_dbdef.c:4080
Definition: ap_dbdef.h:392
void DBDEF_TidyDatabaseAfterSearch(E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite, BOOLEAN search_completed, BOOLEAN manual)
Calls any country and tuner type specific function to tidy up the database following a search...
Definition: ap_dbdef.c:8446
void DBDEF_SetAnalogServiceName(ADB_SERVICE_REC *s_ptr, U8BIT *new_name, U8BIT new_len)
Updates analog service names - ASSUMES NORMAL ASCII CODED. 
Definition: ap_dbdef.c:7282
ADB_FAVSERV_REC * DBDEF_GetPrevServiceFromFavouriteList(ADB_FAVLIST_REC *fav_list, ADB_FAVSERV_REC *fav_serv)
Returns the previous favourite list service record. 
Definition: ap_dbdef.c:9744
void DBDEF_SetTunedTransport(U8BIT path, ADB_TRANSPORT_REC *t_ptr)
sets the currently tuned transport 
Definition: ap_dbdef.c:8224
void DBDEF_DeleteCridRecord(ADB_CRID_REC *c_ptr)
Deletes the given CRID record from the database. 
Definition: ap_dbdef.c:9129
Definition: ap_dbdef.h:83
ADB_STRING * DBDEF_GetServiceProviderName(ADB_SERVICE_REC *s_ptr)
Returns a pointer to the service provider name. 
Definition: ap_dbdef.c:6906
void DBDEF_SetServiceFavGroups(ADB_SERVICE_REC *s_ptr, U8BIT groups)
Sets the favourite groups for a service. 
Definition: ap_dbdef.c:7380
U16BIT DBDEF_GetNumServicesInFavouriteList(ADB_FAVLIST_REC *fav_list)
Returns the number of services in the given favourite list. 
Definition: ap_dbdef.c:9579
U16BIT DBDEF_GetReqdADPid(ADB_SERVICE_REC *s_ptr, E_STB_DP_AUDIO_MODE *ad_mode, ADB_STREAM_TYPE *ad_type, BOOLEAN *broadcast_mix)
Gets the appropriate audio description pid - looks first for the pid matching exactly the required au...
Definition: ap_dbdef.c:6513
void DBDEF_SetSecondaryTextLang(U8BIT *lang_ids)
sets secondary text lang 
Definition: ap_dbdef.c:8341
Definition: ap_dbdef.h:114
ADB_TRANSPORT_REC * DBDEF_GetNextTransportRec(ADB_TRANSPORT_REC *t_ptr)
Returns the transport following the one given. If the argument is NULL then the first transport will ...
Definition: ap_dbdef.c:4910
ADB_NETWORK_REC * DBDEF_FindNetworkRec(U16BIT net_id, ADB_SATELLITE_REC *satellite)
Finds the network with the given network ID. 
Definition: ap_dbdef.c:4840
void DBDEF_DeleteFavouriteList(ADB_FAVLIST_REC *fav_list)
Deletes the given favourite list. 
Definition: ap_dbdef.c:9529
ADB_LNB_BAND_REC * DBDEF_AddLNBBandRec(S_STB_DP_LNB_BAND *band_parameters, ADB_LNB_REC *associated_lnb)
Add an LNB band record to the database. 
Definition: ap_dbdef.c:4574
void DBDEF_DeleteTransportRec(ADB_TRANSPORT_REC *t_ptr)
Deletes the given transport from the service database. 
Definition: ap_dbdef.c:5562
ADB_STRING * DBDEF_CopyString(ADB_STRING *src_str)
Creates a copy of the given ADB_STRING. 
Definition: ap_dbdef.c:3990
Definition: ap_dbdef.h:351
void DBDEF_SaveServiceEventSchedule(ADB_SERVICE_REC *s_ptr)
Saves the event schedule of a service to the service database. 
Definition: ap_dbdef.c:6155
U16BIT DBDEF_GetNumFavouriteLists(void)
Returns the number of favourite lists. 
Definition: ap_dbdef.c:9231
ADB_SERVICE_REC * DBDEF_FindServiceRecByFreesatId(ADB_SERVICE_REC *servp, U16BIT freesat_id)
Search for a service with the given Freesat ID. 
Definition: ap_dbdef.c:6413
void DBDEF_SelectBroadcastProfile(void)
Sets the broadcast profile type for for all network, transport and service record accesses...
Definition: ap_dbdef.c:10364
Definition: stbsitab.h:540
void DBDEF_TidyDatabaseUK(E_STB_DP_SIGNAL_TYPE tuner_type, BOOLEAN search_completed, BOOLEAN manual)
Iterates through all the services following a search search to see whether any need to be deleted bas...
Definition: ap_dbdef.c:8664
ADB_FAVSERV_REC * DBDEF_AddServiceToFavouriteList(ADB_FAVLIST_REC *fav_list, ADB_SERVICE_REC *serv_ptr, S16BIT index)
Adds a new service to the given favourite list at the given position. 
Definition: ap_dbdef.c:9594
U16BIT DBDEF_GetNumDeletedServices(E_STB_DP_SIGNAL_TYPE tuner_type)
Returns the number of services that are marked as deleted for the given tuner type. 
Definition: ap_dbdef.c:6961
void DBDEF_SetTransportOrigNetworkId(ADB_TRANSPORT_REC *t_ptr, U16BIT orig_net_id)
Sets the original network ID of the given transport. 
Definition: ap_dbdef.c:5518
void DBDEF_DeleteAllRecords(void)
Deletes all records in the database. 
Definition: ap_dbdef.c:1531
U16BIT DBDEF_GetDeletedServiceList(E_STB_DP_SIGNAL_TYPE tuner_type, void ***slist_ptr)
Definition: ap_dbdef.c:6996
BOOLEAN DBDEF_GetEventHDLinkageInfo(ADB_EVENT_REC *e_ptr, BOOLEAN verify_event, BOOLEAN only_simulcast, ADB_SERVICE_REC **hd_serv_ptr, ADB_EVENT_REC **hd_event_ptr)
Returns whether there's an HD event linked to the SD event and returns the info for it...
Definition: ap_dbdef.c:3110
BOOLEAN DBDEF_IsActiveProfile(ADB_NETWORK_REC *profile)
Is the given profile the currently active profile? 
Definition: ap_dbdef.c:10312
Definition: stbllist.h:45
BOOLEAN DBDEF_SetServiceType(ADB_SERVICE_REC *s_ptr, ADB_SERVICE_TYPE serv_type)
Sets the service type for the given service record. 
Definition: ap_dbdef.c:6130
ADB_SERVICE_REC * DBDEF_CopyServiceRec(ADB_SERVICE_REC *orig_serv)
Creates a copy of the given service, copying the service's attributes, e.g. service name...
Definition: ap_dbdef.c:5803
void DBDEF_SetCridDoNotDelete(ADB_CRID_REC *c_ptr, BOOLEAN do_not_delete)
Sets the do not delete flag in the crid record. 
Definition: ap_dbdef.c:9093
BOOLEAN DBDEF_SetLNBUSwitch(ADB_LNB_REC *lnb, U8BIT uswitch)
Sets the LNB uncommitted switch setting. 
Definition: ap_dbdef.c:4303
Application database access functions. 
Definition: ap_dbdef.h:662
void DBDEF_DeleteServiceRec(ADB_SERVICE_REC *s_ptr)
Deletes specified service record. 
Definition: ap_dbdef.c:1791
ADB_FAVLIST_REC * DBDEF_FindFavouriteList(U8BIT list_id)
Return the favourite list with the given list id. 
Definition: ap_dbdef.c:9427
BOOLEAN DBDEF_SetServiceShortName(ADB_SERVICE_REC *s_ptr, U8BIT *name)
Set or change the short name of a service. 
Definition: ap_dbdef.c:6011
void DBDEF_SetTunedService(U8BIT path, ADB_SERVICE_REC *s_ptr)
Sets the currently tuned service. 
Definition: ap_dbdef.c:8256
U8BIT * DBDEF_GetEventDescription(ADB_EVENT_REC *e_ptr)
Returns the short event description text of the event as a UTF-8 string. The returned string should b...
Definition: ap_dbdef.c:2243
ADB_FAVLIST_REC * DBDEF_GetNextFavouriteList(ADB_FAVLIST_REC *fav_list)
Returns the favourite list following the given item. 
Definition: ap_dbdef.c:9402
Definition: stbllist.h:38
Definition: ap_dbdef.h:199
BOOLEAN DBDEF_SetLNBDiSEqCTone(ADB_LNB_REC *lnb, E_STB_DP_DISEQC_TONE diseqc_tone)
Sets the LNB DiSEqC tone setting. 
Definition: ap_dbdef.c:4253
Header file - macros and function prototypes for public use. 
ADB_SERVICE_REC * DBDEF_FindServiceRecByIds(ADB_SERVICE_REC *servp, U32BIT net_id, U32BIT onet_id, U32BIT tran_id, U32BIT serv_id)
Search for a service with the given IDs. 
Definition: ap_dbdef.c:6311
U16BIT DBDEF_GetNumNetworks(void)
Returns the number of networks in ther service database. 
Definition: ap_dbdef.c:4699
U8BIT * DBDEF_GetSecondaryAudioLang(void)
returns current secondary audio lang 
Definition: ap_dbdef.c:8431