![]() |
DVBCore
20.3.0
DVBCore Documentation
|
Application database control. More...
#include "techtype.h"
#include "stbsiflt.h"
#include "stbsitab.h"
#include "stbllist.h"
#include "ap_cfg.h"
#include "ap_tmr.h"
#include "ap_dbacc.h"
Go to the source code of this file.
Classes | |
struct | adb_string |
struct | adb_lnb_rec |
struct | adb_bat_version_rec |
struct | adb_satellite_rec |
struct | adb_lnb_band_rec |
struct | adb_network_rec |
struct | adb_pmt_version_rec |
struct | adb_transport_rec |
struct | adb_audio_stream_data |
struct | adb_subtitle_stream_data |
struct | adb_ttext_stream_data |
union | adb_stream_data |
struct | adb_stream_rec |
struct | adb_event_desc |
struct | adb_event_rec |
struct | adb_alt_serv_rec |
struct | adb_icon_image |
struct | adb_rct_link_info |
struct | ADB_GUIDANCE_DESC |
struct | adb_service_rec |
struct | adb_crid_record |
struct | adb_favserv_rec |
struct | adb_favlist_rec |
struct | ADB_ALARM_REC |
struct | ADB_PVR_RECORD_REC |
struct | ADB_TIMER_REC |
struct | s_event |
Typedefs | |
typedef struct adb_string | ADB_STRING |
typedef struct adb_lnb_rec | ADB_LNB_REC |
typedef struct adb_bat_version_rec | ADB_BAT_VERSION_REC |
typedef struct adb_satellite_rec | ADB_SATELLITE_REC |
typedef struct adb_lnb_band_rec | ADB_LNB_BAND_REC |
typedef struct adb_network_rec | ADB_NETWORK_REC |
typedef struct adb_pmt_version_rec | ADB_PMT_VERSION_REC |
typedef struct adb_transport_rec | ADB_TRANSPORT_REC |
typedef struct adb_audio_stream_data | ADB_AUDIO_STREAM_DATA |
typedef struct adb_subtitle_stream_data | ADB_SUBTITLE_STREAM_DATA |
typedef struct adb_ttext_stream_data | ADB_TTEXT_STREAM_DATA |
typedef union adb_stream_data | ADB_STREAM_DATA |
typedef struct adb_stream_rec | ADB_STREAM_REC |
typedef struct adb_event_desc | ADB_EVENT_DESC |
typedef struct adb_event_rec | ADB_EVENT_REC |
typedef struct adb_alt_serv_rec | ADB_ALT_SERV_REC |
typedef struct adb_icon_image | ADB_IMAGE_ICON |
typedef struct adb_rct_link_info | ADB_RCT_LINK_INFO |
typedef struct adb_service_rec | ADB_SERVICE_REC |
typedef struct adb_crid_record | ADB_CRID_REC |
typedef struct adb_favserv_rec | ADB_FAVSERV_REC |
typedef struct adb_favlist_rec | ADB_FAVLIST_REC |
typedef struct s_event | S_EVENT |
Functions | |
void | DBDEF_Initialise (void) |
Initialises the database, preparing for it to be accessed. | |
void | DBDEF_RequestAccess (void) |
Requests access to the app's database. | |
void | DBDEF_ReleaseAccess (void) |
Releases access to the app's database. | |
BOOLEAN | DBDEF_LoadDatabase (U8BIT *db_pathname) |
Loads the service database from non-volatile storage and creates the RAM version of this data that will be used by the DVB stack. More... | |
void | DBDEF_DeleteAllRecords (void) |
Deletes all records in the database. | |
BOOLEAN | DBDEF_SaveDatabase (void) |
void | DBDEF_DeleteRecordsForTunerType (E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite) |
Deletes all network, transport and services records for the given tuner type. More... | |
void | DBDEF_DeleteServiceRec (ADB_SERVICE_REC *s_ptr) |
Deletes specified service record. More... | |
U16BIT | DBDEF_NumStreamsInList (ADB_STREAM_REC *slist) |
Returns the number of stream records in the given list. More... | |
ADB_STREAM_REC * | DBDEF_CopyStreamList (ADB_STREAM_REC *slist) |
Creates a copy of a stream list, allocating new memory as required. More... | |
void | DBDEF_DeleteStreamList (ADB_STREAM_REC *slist) |
Deletes all records in a service stream list. More... | |
void | DBDEF_DeleteAltServList (ADB_ALT_SERV_REC *aslist) |
Deletes all records in a service alternate service list. More... | |
void | DBDEF_DeleteRCTLinks (ADB_RCT_LINK_INFO *links) |
Frees the given list of RCT links. More... | |
void | DBDEF_DeleteImageIcons (ADB_IMAGE_ICON *icon_list) |
Frees given list of image icons and any associated memory. More... | |
void | DBDEF_SortServicesByLcn (void) |
Sort the full service list into ascending logical channel number order. | |
BOOLEAN | DBDEF_AllocateLcns (E_STB_DP_SIGNAL_TYPE tuner_type, BOOLEAN assign_lcns) |
allocates lcns - expects allocated lcn for all services to be 0 More... | |
BOOLEAN | DBDEF_AllocateLcnsDefault (E_STB_DP_SIGNAL_TYPE tuner_type) |
U16BIT | DBDEF_GetNumLNBs (void) |
Returns the number of LNB records in the database. More... | |
ADB_LNB_REC * | DBDEF_AddLNB (E_STB_DP_LNB_TYPE type, ADB_STRING *name) |
Add an LNB record to the database. More... | |
BOOLEAN | DBDEF_SetLNBPower (ADB_LNB_REC *lnb, E_STB_DP_LNB_POWER power) |
Sets the LNB power setting. More... | |
BOOLEAN | DBDEF_SetLNB22k (ADB_LNB_REC *lnb, BOOLEAN is_22k) |
Sets the LNB 22k setting. More... | |
BOOLEAN | DBDEF_SetLNB12V (ADB_LNB_REC *lnb, BOOLEAN is_12v) |
Sets the LNB 12V setting. More... | |
BOOLEAN | DBDEF_SetLNBPulsePosition (ADB_LNB_REC *lnb, BOOLEAN is_pulse_posn) |
Sets the LNB pulse position setting. More... | |
BOOLEAN | DBDEF_SetLNBDiSEqCPosition (ADB_LNB_REC *lnb, BOOLEAN is_diseqc_posn) |
Sets the LNB DiSEqC position setting. More... | |
BOOLEAN | DBDEF_SetLNBDiSEqCTone (ADB_LNB_REC *lnb, E_STB_DP_DISEQC_TONE diseqc_tone) |
Sets the LNB DiSEqC tone setting. More... | |
BOOLEAN | DBDEF_SetLNBCSwitch (ADB_LNB_REC *lnb, E_STB_DP_DISEQC_CSWITCH cswitch) |
Sets the LNB committed switch setting. More... | |
BOOLEAN | DBDEF_SetLNBUSwitch (ADB_LNB_REC *lnb, U8BIT uswitch) |
Sets the LNB uncommitted switch setting. More... | |
BOOLEAN | DBDEF_SetLNBSmatv (ADB_LNB_REC *lnb, BOOLEAN is_smatv) |
Sets the LNB SMATV setting. More... | |
BOOLEAN | DBDEF_SetLNBRepeats (ADB_LNB_REC *lnb, U8BIT repeats) |
Sets the LNB message repeat setting in the range 0 to 3. More... | |
BOOLEAN | DBDEF_SetLNBUnicable (ADB_LNB_REC *lnb, U32BIT inter_freq, U8BIT chan) |
Sets the LNB Unicable settings. More... | |
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 returned. More... | |
U16BIT | DBDEF_GetNumSatellites (void) |
Returns the number of satellite records in the database. More... | |
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. More... | |
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 is returned. More... | |
U16BIT | DBDEF_GetNumLNBBands (void) |
Returns the number of LNB band records in the database. More... | |
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. More... | |
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 is returned. More... | |
void | DBDEF_DeleteLNBBandRec (ADB_LNB_BAND_REC *band_ptr) |
Deletes an LNB band record from the database. More... | |
U16BIT | DBDEF_GetNumNetworks (void) |
Returns the number of networks in ther service database. More... | |
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. More... | |
void | DBDEF_DeleteNetworkRec (ADB_NETWORK_REC *n_ptr) |
Deletes specified network record. More... | |
void | DBDEF_SetNetworkName (ADB_NETWORK_REC *n_ptr, U8BIT *name) |
Set or change the name of the given network. More... | |
ADB_NETWORK_REC * | DBDEF_FindNetworkRec (U16BIT net_id, ADB_SATELLITE_REC *satellite) |
Finds the network with the given network ID. More... | |
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 returned. More... | |
U16BIT | DBDEF_GetNumTransports (void) |
Returns the number of transports in ther service database. More... | |
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 be returned. More... | |
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. More... | |
ADB_TRANSPORT_REC * | DBDEF_FindTerrestrialTransportRec (U32BIT freq_hz, U8BIT plp_id) |
Find the terrestrial transport record in the database matching the given params. More... | |
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. More... | |
ADB_TRANSPORT_REC * | DBDEF_FindCableTransportRec (U32BIT freq_hz, U32BIT symbol_rate) |
Find the cable transport record in the database matching the given params. More... | |
void | DBDEF_SetCableTransportSymbolRate (ADB_TRANSPORT_REC *t_ptr, U16BIT symbol_rate) |
void | DBDEF_SetCableTransportMode (ADB_TRANSPORT_REC *t_ptr, E_STB_DP_CMODE cmode) |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
void | DBDEF_SetTransportTransportId (ADB_TRANSPORT_REC *t_ptr, U16BIT tran_id) |
Sets the transport ID of the given transport. More... | |
void | DBDEF_SetTransportOrigNetworkId (ADB_TRANSPORT_REC *t_ptr, U16BIT orig_net_id) |
Sets the original network ID of the given transport. More... | |
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 modified or freed. More... | |
void | DBDEF_DeleteTransportRec (ADB_TRANSPORT_REC *t_ptr) |
Deletes the given transport from the service database. More... | |
void | DBDEF_ClearTableVersionHistory (ADB_TRANSPORT_REC *t_ptr) |
Clears the version histories stored in the transport records. | |
U16BIT | DBDEF_GetNumServices (void) |
Returns the total number of services. More... | |
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 returned. More... | |
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 returned. More... | |
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. More... | |
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, scrambled, locked, hidde, etc, but not the runtime specific data such as the stream list or event schedule data. More... | |
BOOLEAN | DBDEF_SetServiceName (ADB_SERVICE_REC *s_ptr, U8BIT *name) |
Set or change the name of a service. More... | |
BOOLEAN | DBDEF_SetServiceShortName (ADB_SERVICE_REC *s_ptr, U8BIT *name) |
Set or change the short name of a service. More... | |
BOOLEAN | DBDEF_SetServiceProviderName (ADB_SERVICE_REC *s_ptr, U8BIT *name) |
Set or change the name of a service's provider. More... | |
BOOLEAN | DBDEF_SetServiceType (ADB_SERVICE_REC *s_ptr, ADB_SERVICE_TYPE serv_type) |
Sets the service type for the given service record. More... | |
void | DBDEF_SaveServiceEventSchedule (ADB_SERVICE_REC *s_ptr) |
Saves the event schedule of a service to the service database. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
ADB_SERVICE_REC * | DBDEF_FindServiceRecByFreesatId (ADB_SERVICE_REC *servp, U16BIT freesat_id) |
Search for a service with the given Freesat ID. More... | |
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 in the database, then for the pid matching the default language, then the first audip pid in the stream list. If no pid found the returned pid value will be 0. More... | |
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 audio settings in the database, then for the pid matching the default language, then the first audip pid in the stream list. If no pid found the returned pid value will be 0. More... | |
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 settings in the database, then for the pid matching the default language, then the first teletext stream in the stream list. If no teletext found the returned pid will be 0. More... | |
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 required subtitle settings in the database, then for the pid matching the default language, then the first subtitle stream in the stream list. If no subtitles found the returned pid will be 0. More... | |
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 streams available. The "best one" is based on HD being better than SD and uses the priorities from the Nordig spec. More... | |
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, if available. More... | |
ADB_STRING * | DBDEF_GetServiceProviderName (ADB_SERVICE_REC *s_ptr) |
Returns a pointer to the service provider name. More... | |
void | DBDEF_SetServiceDeletedFlag (ADB_SERVICE_REC *s_ptr, BOOLEAN deleted) |
Marks whether a service is deleted or not. More... | |
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. More... | |
U16BIT | DBDEF_GetDeletedServiceList (E_STB_DP_SIGNAL_TYPE tuner_type, void ***slist_ptr) |
BOOLEAN | DBDEF_AddAnalogService (void) |
Adds an analogue service, transport and, if necessary, network to the database based on the current tuning parameters in the decode path. More... | |
void | DBDEF_SetAnalogServiceName (ADB_SERVICE_REC *s_ptr, U8BIT *new_name, U8BIT new_len) |
Updates analog service names - ASSUMES NORMAL ASCII CODED. More... | |
void | DBDEF_SetServicePmtPid (ADB_SERVICE_REC *s_ptr, U16BIT pmt_pid) |
Updates the pmt pid. More... | |
U16BIT | DBDEF_GetServicePmtPid (ADB_SERVICE_REC *s_ptr) |
gets the PMT PID associated with the service More... | |
void | DBDEF_SetServiceFavGroups (ADB_SERVICE_REC *s_ptr, U8BIT groups) |
Sets the favourite groups for a service. More... | |
ADB_EVENT_REC * | DBDEF_FindScheduleEventById (ADB_SERVICE_REC *s_ptr, U16BIT event_id) |
Find an event for a service from its event_id. More... | |
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. More... | |
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. More... | |
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 be freed using STB_ReleaseUnicodeString. More... | |
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 should be freed using STB_ReleaseUnicodeString. More... | |
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. More... | |
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, as a UTF-8 string. The returned string should be freed using STB_ReleaseUnicodeString. More... | |
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 using STB_ReleaseUnicodeString. More... | |
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 using STB_ReleaseUnicodeString. More... | |
U8BIT | DBDEF_GetEventParentalAge (ADB_EVENT_REC *e_ptr) |
Returns the parental age value for the given event. More... | |
BOOLEAN | DBDEF_GetEventAudioDescriptionFlag (ADB_EVENT_REC *e_ptr) |
Returns whether audio description is signalled as being available for the given event. More... | |
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. The DVB info is checked to ensure it relates to a known service. More... | |
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 descriptors in the EIT. More... | |
BOOLEAN | DBDEF_GetEventSubtitlesAvailFlag (ADB_EVENT_REC *e_ptr) |
Returns whether DVB subtitles are signalled as being available for the given event. More... | |
ADB_EVENT_CONTENT | DBDEF_GetEventGenre (ADB_EVENT_REC *e_ptr, ADB_SERVICE_REC *s_ptr) |
Returns the genre of an event. More... | |
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. More... | |
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. More... | |
U8BIT | DBDEF_NumberOfCridsOfType (ADB_EVENT_REC *e_ptr, U8BIT crid_type) |
Returns the number of CRIDs of the given type for the event. More... | |
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_AppFreeMemory. More... | |
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 returned as broadcast and should be freed using STB_AppFreMemory. More... | |
void | DBDEF_DeleteEventList (ADB_EVENT_REC *elist) |
Deletes all events in the given list. More... | |
void | DBDEF_SetTunedNetwork (U8BIT path, ADB_NETWORK_REC *n_ptr) |
sets the currently tuned network More... | |
ADB_NETWORK_REC * | DBDEF_GetTunedNetwork (U8BIT path) |
gets the currently tuned network More... | |
void | DBDEF_SetTunedTransport (U8BIT path, ADB_TRANSPORT_REC *t_ptr) |
sets the currently tuned transport More... | |
ADB_TRANSPORT_REC * | DBDEF_GetTunedTransport (U8BIT path) |
gets the currently tuned transport More... | |
void | DBDEF_SetTunedService (U8BIT path, ADB_SERVICE_REC *s_ptr) |
Sets the currently tuned service. More... | |
ADB_SERVICE_REC * | DBDEF_GetTunedService (U8BIT path) |
Returns the currently tuned service on the given path. More... | |
void | DBDEF_SetTextLang (U8BIT *lang_ids) |
sets current text lang More... | |
U8BIT * | DBDEF_GetTextLang (void) |
returns array of current text langs More... | |
void | DBDEF_SetSecondaryTextLang (U8BIT *lang_ids) |
sets secondary text lang More... | |
U8BIT * | DBDEF_GetSecondaryTextLang (void) |
returns array of secondary text langs More... | |
void | DBDEF_SetAudioLang (U8BIT *lang_ids) |
sets current audio lang More... | |
U8BIT * | DBDEF_GetAudioLang (void) |
returns current audio lang More... | |
U8BIT * | DBDEF_GetSecondaryAudioLang (void) |
returns current secondary audio lang More... | |
void | DBDEF_SetSecondaryAudioLang (U8BIT *lang_ids) |
sets the secondary audio lang More... | |
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, such as removing duplicate services, etc. More... | |
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 based on the rules for that country. More... | |
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 based on the rules for that country. More... | |
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 based on the rules for that country. More... | |
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 based on the rules for that country. More... | |
void | DBDEF_RemoveEmptyTransports (E_STB_DP_SIGNAL_TYPE tuner_type, void *satellite) |
Delete all transport records that don't have any services. More... | |
void | DBDEF_DeleteLinkageDescripterArray (SI_LINKAGE_DESC_ENTRY *list_ptr) |
ADB_CRID_REC * | DBDEF_AddCridRecord (U8BIT *crid, BOOLEAN series, BOOLEAN recommended) |
Creates a CRID record and adds it to the database. More... | |
void | DBDEF_SetCridDateTime (ADB_CRID_REC *c_ptr, U32DHMS date_time) |
Sets the date and time fields in the crid record. More... | |
void | DBDEF_SetCridService (ADB_CRID_REC *c_ptr, U16BIT serv_id) |
Sets the service ID in the crid record. More... | |
void | DBDEF_SetCridProgrammeName (ADB_CRID_REC *c_ptr, U8BIT *prog_name) |
Sets the programme name field of the given CRID record. More... | |
void | DBDEF_SetCridDoNotDelete (ADB_CRID_REC *c_ptr, BOOLEAN do_not_delete) |
Sets the do not delete flag in the crid record. More... | |
void | DBDEF_UpdateCridEitDate (ADB_CRID_REC *c_ptr) |
Updates the stored EIT date of this CRID with the current GMT date. More... | |
void | DBDEF_DeleteCridRecord (ADB_CRID_REC *c_ptr) |
Deletes the given CRID record from the database. More... | |
U16BIT | DBDEF_GetNumCridRecords (void) |
Returns the number of CRID records in the database. More... | |
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 record is returned. More... | |
BOOLEAN | DBDEF_IsValidCridRecord (ADB_CRID_REC *c_ptr) |
Checks whether the given crid record is in the list of valid crid records. More... | |
U16BIT | DBDEF_GetNumFavouriteLists (void) |
Returns the number of favourite lists. More... | |
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 will fail if a list_id can't be found for it, or memory allocation fails. More... | |
ADB_FAVLIST_REC * | DBDEF_GetNextFavouriteList (ADB_FAVLIST_REC *fav_list) |
Returns the favourite list following the given item. More... | |
ADB_FAVLIST_REC * | DBDEF_FindFavouriteList (U8BIT list_id) |
Return the favourite list with the given list id. More... | |
void | DBDEF_SetFavouriteListUserData (ADB_FAVLIST_REC *fav_list, U32BIT user_data) |
Saves the given user data with a favourite list. More... | |
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. More... | |
void | DBDEF_DeleteFavouriteList (ADB_FAVLIST_REC *fav_list) |
Deletes the given favourite list. More... | |
U16BIT | DBDEF_GetNumServicesInFavouriteList (ADB_FAVLIST_REC *fav_list) |
Returns the number of services in the given favourite list. More... | |
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. More... | |
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. More... | |
ADB_FAVSERV_REC * | DBDEF_GetNextServiceFromFavouriteList (ADB_FAVLIST_REC *fav_list, ADB_FAVSERV_REC *fav_serv) |
Returns the next favourite list service record. More... | |
ADB_FAVSERV_REC * | DBDEF_GetPrevServiceFromFavouriteList (ADB_FAVLIST_REC *fav_list, ADB_FAVSERV_REC *fav_serv) |
Returns the previous favourite list service record. More... | |
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 position. More... | |
void | DBDEF_DeleteServiceFromFavouriteList (ADB_FAVLIST_REC *fav_list, ADB_FAVSERV_REC *fav_serv) |
Delete the given service from the given favourite list. More... | |
void | DBDEF_DeleteAllServicesFromFavouriteList (ADB_FAVLIST_REC *fav_list) |
Delete the all services from the given favourite list. More... | |
void | DBDEF_SetFavouriteListName (ADB_FAVLIST_REC *f_ptr, U8BIT *name) |
Set or change the name of the given favourite list. More... | |
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 whether it's on a particular satellite. More... | |
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. More... | |
ADB_TIMER_REC * | DBDEF_AddTimerRec (BOOLEAN store_in_nvm) |
Creates a new timer record in the database, assigning it a unique handle. More... | |
ADB_TIMER_REC * | DBDEF_FindTimerRec (U32BIT handle) |
Returns the timer record with the given timer handle. More... | |
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 returned. More... | |
void | DBDEF_SortTimers (BOOLEAN date_time_order) |
Sorts timer list into date/time or alphabetical order. More... | |
void | DBDEF_DeleteTimerRec (ADB_TIMER_REC *timer) |
Deletes the given timer from the database. More... | |
U16BIT | DBDEF_GetNumProfiles (void) |
Returns the number of network profiles. | |
U16BIT | DBDEF_GetProfileList (void ***profile_list, U16BIT *active_profile) |
Gets a list of the available network profiles. More... | |
void | DBDEF_ReleaseProfileList (void **profile_list, U16BIT num_profiles) |
Frees a profile list returned by DBDEF_GetProfileList. More... | |
BOOLEAN | DBDEF_IsActiveProfile (ADB_NETWORK_REC *profile) |
Is the given profile the currently active profile? More... | |
ADB_PROFILE_TYPE | DBDEF_GetCurrentProfileType (void) |
Returns the current profile type. More... | |
void | DBDEF_SelectBroadcastProfile (void) |
Sets the broadcast profile type for for all network, transport and service record accesses. | |
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. | |
void | DBDEF_PopProfile (void) |
Restores a previously pushed profile. | |
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 and so data related to the CAM is also checked. More... | |
BOOLEAN | DBDEF_TransportInProfile (ADB_TRANSPORT_REC *t_ptr) |
Checks whether the given transport is valid for the current profile. There may be multiple CI+ profiles and so data related to the CAM is also checked. More... | |
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 and so data related to the CAM is also checked. More... | |
ADB_NETWORK_REC * | DBDEF_FindOrAddPrivateNetwork (void *satellite) |
Find or add a private network, assigning an unused private network ID. More... | |
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 of bytes is 0, then no string will be created. More... | |
ADB_STRING * | DBDEF_CopyString (ADB_STRING *src_str) |
Creates a copy of the given ADB_STRING. More... | |
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 '\0' chars from the first string, and returns a new string. More... | |
void | DBDEF_ReleaseString (ADB_STRING *string) |
Releases an ADB_STRING. More... | |
BOOLEAN DBDEF_AddAnalogService | ( | void | ) |
Adds an analogue service, transport and, if necessary, network to the database based on the current tuning parameters in the decode path.
Definition at line 6825 of file ap_dbdef.c.
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.
freq_hz | frequency in Hz |
symbol_rate | symbol rate |
network | network the transport is on |
Definition at line 4982 of file ap_dbdef.c.
ADB_CRID_REC* DBDEF_AddCridRecord | ( | U8BIT * | crid, |
BOOLEAN | series, | ||
BOOLEAN | recommended | ||
) |
Creates a CRID record and adds it to the database.
crid | CRID string |
series | TRUE if this is a series CRID |
recommended | TRUE if this is a recommended programme CRID |
Definition at line 8793 of file ap_dbdef.c.
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 will fail if a list_id can't be found for it, or memory allocation fails.
list_id | id to be given to the list, should be passed as 0 to have an id assigned. If an id is supplied and a list already exists with that id then no list will be created. |
name | name to be given to the list, call be NULL |
user_data | user defined valueto be stored in the list, |
index | where to add the new list into the existing lists, 0 = at start, negative = at end, else 0 based index |
list_id | id to be given to the list, should be passed as 0 to have an id assigned. If an id is supplied and a list already exists with that id then no list will be created. |
name | name to be given to the list, call be NULL |
user_data | user defined value to be stored in the list, |
index | where to add the new list into the existing lists, 0 = at start, negative = at end, else 0 based index |
Definition at line 9061 of file ap_dbdef.c.
ADB_LNB_REC* DBDEF_AddLNB | ( | E_STB_DP_LNB_TYPE | type, |
ADB_STRING * | name | ||
) |
Add an LNB record to the database.
type | single, universal, unicable or used defined |
name | LNB name, NULL for no name |
Definition at line 4012 of file ap_dbdef.c.
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.
band_parameters | Structure describing the band and the expected LNB behaviour. |
associated_lnb | LNB record the band record is associated with. |
Definition at line 4506 of file ap_dbdef.c.
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.
net_id | network ID |
satellite | satellite that contains the network, can be NULL |
Definition at line 4644 of file ap_dbdef.c.
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.
name_str | satellite name |
dish_pos | |
long_pos | position in 1/10ths of a degree |
east_west | TRUE=east, FALSE=west |
associated_lnb | LNB record the satellite record is associated with |
Definition at line 4378 of file ap_dbdef.c.
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.
freq_hz | frequency in Hz |
symbol_rate | symbol rate |
polarity | polarity |
dvb_s2 | TRUE for DVB-S2 |
modulation | modulation type |
network | network the transport is on |
Definition at line 5102 of file ap_dbdef.c.
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.
serv_id | service ID for the new service |
t_ptr | parent transport for the new service |
Definition at line 5598 of file ap_dbdef.c.
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.
fav_list | list service is to be added to |
serv_ptr | service to be added to the list |
index | position to add the service in the list, 0 = at start, negative = at end, any other value is the position |
Definition at line 9404 of file ap_dbdef.c.
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.
freq_hz | frequency in Hz |
plp_id | PLP id for T2, pass 0 for T |
network | network the transport is on |
Definition at line 4874 of file ap_dbdef.c.
ADB_TIMER_REC* DBDEF_AddTimerRec | ( | BOOLEAN | store_in_nvm | ) |
Creates a new timer record in the database, assigning it a unique handle.
store_in_nvm | save the timer in non-volatile memory |
Definition at line 9833 of file ap_dbdef.c.
BOOLEAN DBDEF_AllocateLcns | ( | E_STB_DP_SIGNAL_TYPE | tuner_type, |
BOOLEAN | assign_lcns | ||
) |
allocates lcns - expects allocated lcn for all services to be 0
assign_lcns | - if set to FALSE the LCNs assigned to the services as a result of running this function will be reset at the end. |
use_target_region | - TRUE if the target region info is to be used when services with duplicate LCNs are encountered. |
Definition at line 7038 of file ap_dbdef.c.
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 '\0' chars from the first string, and returns a new string.
str1 | string 1 |
str2 | string 2 |
Definition at line 3948 of file ap_dbdef.c.
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, scrambled, locked, hidde, etc, but not the runtime specific data such as the stream list or event schedule data.
orig_serv | service to be copied |
Creates a copy of the given service, copying the service's attributes, e.g. service name, scrambled, locked, hidde, etc, but not the runtime specific data such as the stream list or event schedule data.
orig_serv | service to be copied |
Definition at line 5663 of file ap_dbdef.c.
ADB_STREAM_REC* DBDEF_CopyStreamList | ( | ADB_STREAM_REC * | slist | ) |
Creates a copy of a stream list, allocating new memory as required.
slist | list of stream recs to be copied |
Definition at line 1881 of file ap_dbdef.c.
ADB_STRING* DBDEF_CopyString | ( | ADB_STRING * | src_str | ) |
Creates a copy of the given ADB_STRING.
src_str | string to be copied |
Definition at line 3922 of file ap_dbdef.c.
void DBDEF_DeleteAllServicesFromFavouriteList | ( | ADB_FAVLIST_REC * | fav_list | ) |
Delete the all services from the given favourite list.
fav_list | favourite list |
Definition at line 9673 of file ap_dbdef.c.
void DBDEF_DeleteAltServList | ( | ADB_ALT_SERV_REC * | aslist | ) |
Deletes all records in a service alternate service list.
aslist | - the first alt serv record in the list |
Definition at line 3797 of file ap_dbdef.c.
void DBDEF_DeleteCridRecord | ( | ADB_CRID_REC * | c_ptr | ) |
Deletes the given CRID record from the database.
c_ptr | pointer to CRID record to be deleted |
Definition at line 8939 of file ap_dbdef.c.
void DBDEF_DeleteEventList | ( | ADB_EVENT_REC * | elist | ) |
Deletes all events in the given list.
elist | list of events to be deleted |
Definition at line 3754 of file ap_dbdef.c.
void DBDEF_DeleteFavouriteList | ( | ADB_FAVLIST_REC * | fav_list | ) |
Deletes the given favourite list.
fav_list | favourite list to be deleted |
Definition at line 9339 of file ap_dbdef.c.
void DBDEF_DeleteImageIcons | ( | ADB_IMAGE_ICON * | icon_list | ) |
Frees given list of image icons and any associated memory.
icon_list | icon list to be freed |
Definition at line 3849 of file ap_dbdef.c.
void DBDEF_DeleteLNBBandRec | ( | ADB_LNB_BAND_REC * | band_ptr | ) |
Deletes an LNB band record from the database.
band_ptr | pointer to record to be deleted |
Definition at line 4611 of file ap_dbdef.c.
void DBDEF_DeleteNetworkRec | ( | ADB_NETWORK_REC * | n_ptr | ) |
Deletes specified network record.
n_ptr | Pointer to network record |
Definition at line 4696 of file ap_dbdef.c.
void DBDEF_DeleteRCTLinks | ( | ADB_RCT_LINK_INFO * | links | ) |
Frees the given list of RCT links.
links | links to be freed |
Definition at line 3815 of file ap_dbdef.c.
void DBDEF_DeleteRecordsForTunerType | ( | E_STB_DP_SIGNAL_TYPE | tuner_type, |
void * | satellite | ||
) |
Deletes all network, transport and services records for the given tuner type.
tuner_type | tuner type |
satellite | only used when tuner_type == SIGNAL_QPSK to specify the satellite from which services should be deleted. If tuner_type is SIGNAL_QPSK and satellite is NULL then all DVB-S services will be deleted. |
Definition at line 1588 of file ap_dbdef.c.
void DBDEF_DeleteServiceFromFavouriteList | ( | ADB_FAVLIST_REC * | fav_list, |
ADB_FAVSERV_REC * | fav_serv | ||
) |
Delete the given service from the given favourite list.
fav_list | favourite list to delete service from |
fav_serv | service to be deleted from the favourite list |
Definition at line 9639 of file ap_dbdef.c.
void DBDEF_DeleteServiceRec | ( | ADB_SERVICE_REC * | s_ptr | ) |
Deletes specified service record.
s_ptr | - pointer to service record |
Definition at line 1754 of file ap_dbdef.c.
void DBDEF_DeleteStreamList | ( | ADB_STREAM_REC * | slist | ) |
Deletes all records in a service stream list.
slist | - the first stream record in the stream list |
Definition at line 1941 of file ap_dbdef.c.
void DBDEF_DeleteTimerRec | ( | ADB_TIMER_REC * | timer | ) |
Deletes the given timer from the database.
timer | timer to be deleted |
Definition at line 9966 of file ap_dbdef.c.
void DBDEF_DeleteTransportRec | ( | ADB_TRANSPORT_REC * | t_ptr | ) |
Deletes the given transport from the service database.
t_ptr | pointer to transport to be deleted |
Deletes the given transport from the service database.
t_ptr | pointer to transport to be deleted |
Definition at line 5431 of file ap_dbdef.c.
ADB_TRANSPORT_REC* DBDEF_FindCableTransportRec | ( | U32BIT | freq_hz, |
U32BIT | symbol_rate | ||
) |
Find the cable transport record in the database matching the given params.
freq_hz | frequency in Hz |
symbol_rate | symbol rate |
Definition at line 5040 of file ap_dbdef.c.
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.
start_desc | descriptor where the search should start |
desc_tag | descriptor tag to be found |
private_data_specifier | the value of the private data specifier that must precede the descriptor being searched for. Use 0 if it isn't required. |
Definition at line 2003 of file ap_dbdef.c.
ADB_FAVLIST_REC* DBDEF_FindFavouriteList | ( | U8BIT | list_id | ) |
Return the favourite list with the given list id.
list_id | favourite list id to find |
Definition at line 9237 of file ap_dbdef.c.
ADB_NETWORK_REC* DBDEF_FindNetworkRec | ( | U16BIT | net_id, |
ADB_SATELLITE_REC * | satellite | ||
) |
Finds the network with the given network ID.
net_id | network ID to be found |
satellite | satellite the network is on, can be NULL |
Definition at line 4772 of file ap_dbdef.c.
ADB_NETWORK_REC* DBDEF_FindOrAddPrivateNetwork | ( | void * | satellite | ) |
Find or add a private network, assigning an unused private network ID.
satellite | optional satellite, can be NULL |
Definition at line 10603 of file ap_dbdef.c.
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.
freq_hz | frequency in Hz |
symbol_rate | symbol rate |
dvb_s2 | TRUE if DVB-S2 |
modulation | modulation type |
Definition at line 5170 of file ap_dbdef.c.
ADB_EVENT_REC* DBDEF_FindScheduleEventById | ( | ADB_SERVICE_REC * | s_ptr, |
U16BIT | event_id | ||
) |
Find an event for a service from its event_id.
s_ptr | service to be searched |
event_id | ID of the event to be found |
Definition at line 1967 of file ap_dbdef.c.
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.
fav_list | favourite list to be searched |
serv_ptr | service to be searched for |
Definition at line 9501 of file ap_dbdef.c.
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.
serv_id | service ID |
t_ptr | transport to be searched |
Definition at line 6119 of file ap_dbdef.c.
ADB_SERVICE_REC* DBDEF_FindServiceRecByFreesatId | ( | ADB_SERVICE_REC * | servp, |
U16BIT | freesat_id | ||
) |
Search for a service with the given Freesat ID.
servp | start searching from this service, NULL to start from first service |
freesat_id | Freesat service ID |
Definition at line 6252 of file ap_dbdef.c.
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.
servp | start searching from this service, NULL to start from first service |
net_id | network ID, use ADB_INVALID_DVB_ID if not to be used |
onet_id | original network ID, use ADB_INVALID_DVB_ID if not to be used |
tran_id | transport ID, use ADB_INVALID_DVB_ID if not to be used |
serv_id | service ID, use ADB_INVALID_DVB_ID if not to be used |
Definition at line 6150 of file ap_dbdef.c.
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.
lcn | LCN |
t_ptr | transport the service must be on, use NULL for any transport |
allocated_lcn | TRUE if the search should be based on the LCN a service has been allocated rather than the one it requested (its service LCN) |
Definition at line 6218 of file ap_dbdef.c.
ADB_TRANSPORT_REC* DBDEF_FindTerrestrialTransportRec | ( | U32BIT | freq_hz, |
U8BIT | plp_id | ||
) |
Find the terrestrial transport record in the database matching the given params.
freq_hz | frequency in Hz |
plp_id | PLP id for T2, pass 0 to T |
Definition at line 4952 of file ap_dbdef.c.
ADB_TIMER_REC* DBDEF_FindTimerRec | ( | U32BIT | handle | ) |
Returns the timer record with the given timer handle.
handle | timer handle |
Definition at line 9899 of file ap_dbdef.c.
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.
transp | start search from this transport, use NULL to start from the first transport |
net_id | network ID, use ADB_INVALID_DVB_ID to ignore this value |
onet_id | original network ID, use ADB_INVALID_DVB_ID to ignore this value |
tran_id | transport ID, use ADB_INVALID_DVB_ID to ignore this value |
Definition at line 5314 of file ap_dbdef.c.
U8BIT* DBDEF_GetAudioLang | ( | void | ) |
ADB_PROFILE_TYPE DBDEF_GetCurrentProfileType | ( | void | ) |
Returns the current profile type.
Definition at line 10163 of file ap_dbdef.c.
U16BIT DBDEF_GetDeletedServiceList | ( | E_STB_DP_SIGNAL_TYPE | tuner_type, |
void *** | slist_ptr | ||
) |
tuner_type | type of tuner that will be used for the search, if SIGNAL_NONE is specified then all services marked as deleted will be returned |
slist_ptr | pointer to an array that will be allocated, value will be NULL on return if there are no services. The list must be freed using STB_AppFreeMemory |
Definition at line 6772 of file ap_dbdef.c.
BOOLEAN DBDEF_GetEventAudioDescriptionFlag | ( | ADB_EVENT_REC * | e_ptr | ) |
Returns whether audio description is signalled as being available for the given event.
e_ptr | event |
Definition at line 2984 of file ap_dbdef.c.
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 descriptors in the EIT.
e_ptr | Pointer to the event |
component_list | Pointer to the returned list of components. The list must be freed by calling STB_AppFreeMemory, provided the returned number of components is greater than 0. |
Definition at line 3298 of file ap_dbdef.c.
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.
e_ptr | event |
p_len | address to return the number of bytes in the returned data |
event_ptr | event |
p_len | address to return the number of bytes in the returned data |
Definition at line 3406 of file ap_dbdef.c.
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.
serv_ptr | service for the event |
e_ptr | event CRID to be returned |
crid_type | CRID type to be returned (CRID_TYPE_PROGRAMME, CRID_TYPE_SERIES, or CRID_TYPE_RECOMMENDATION) |
index | the index of the CRID to be returned (only valid for series CRIDs) |
serv_ptr | service for the event |
event_ptr | event CRID to be returned |
crid_type | CRID type to be returned |
index | the index of the CRID to be returned (only valid for series CRIDs) |
Definition at line 3515 of file ap_dbdef.c.
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 be freed using STB_ReleaseUnicodeString.
e_ptr | event |
Definition at line 2175 of file ap_dbdef.c.
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 should be freed using STB_ReleaseUnicodeString.
e_ptr | event |
Definition at line 2302 of file ap_dbdef.c.
ADB_EVENT_CONTENT DBDEF_GetEventGenre | ( | ADB_EVENT_REC * | e_ptr, |
ADB_SERVICE_REC * | s_ptr | ||
) |
Returns the genre of an event.
e_ptr | event |
s_ptr | service containing the event |
Definition at line 3440 of file ap_dbdef.c.
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, as a UTF-8 string. The returned string should be freed using STB_ReleaseUnicodeString.
e_ptr | event, can be NULL, in which case any guidance defined by the service will be returned |
s_ptr | service, can be NULL to just get guidance text from the event |
type | pointer to value to return the guidance type, valid if guidance text is returned |
mode | pointer to value to return the guidance mode, valid if guidance text is returned |
Definition at line 2732 of file ap_dbdef.c.
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. The DVB info is checked to ensure it relates to a known service.
e_ptr | pointer to the event to check |
verify_event | TRUE, if the schedule should be checked for the target event |
only_simulcast | TRUE, if only an HD simulcast event should be returned |
hd_serv_ptr | pointer to return the service for the HD event, if found. This can be NULL if not required. |
hd_event_ptr | pointer to return the HD event, if found. Note that this will only be filled in if verify_event is TRUE. This can be NULL if not required. |
Definition at line 3042 of file ap_dbdef.c.
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.
e_ptr | event |
num_items_ptr | address in which to return the number of items |
Definition at line 2503 of file ap_dbdef.c.
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.
e_ptr | event |
Definition at line 2055 of file ap_dbdef.c.
U8BIT DBDEF_GetEventParentalAge | ( | ADB_EVENT_REC * | e_ptr | ) |
Returns the parental age value for the given event.
e_ptr | event |
Definition at line 2938 of file ap_dbdef.c.
BOOLEAN DBDEF_GetEventSubtitlesAvailFlag | ( | ADB_EVENT_REC * | e_ptr | ) |
Returns whether DVB subtitles are signalled as being available for the given event.
e_ptr | event |
Definition at line 3363 of file ap_dbdef.c.
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_AppFreeMemory.
serv_ptr | service for the event |
event_str | CRID string |
Definition at line 3649 of file ap_dbdef.c.
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 record is returned.
c_ptr | CRID record pointer, NULL if first record is required |
Definition at line 8982 of file ap_dbdef.c.
ADB_FAVLIST_REC* DBDEF_GetNextFavouriteList | ( | ADB_FAVLIST_REC * | fav_list | ) |
Returns the favourite list following the given item.
fav_list | return the item after this one, if NULL, returns the first item |
Definition at line 9212 of file ap_dbdef.c.
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 is returned.
band_ptr | LNB band record pointer, NULL if first record is required |
Definition at line 4587 of file ap_dbdef.c.
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 returned.
lnb_ptr | LNB record pointer, NULL if first record is required |
Definition at line 4338 of file ap_dbdef.c.
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 returned.
n_ptr | network record, NULL if first network is required |
Definition at line 4800 of file ap_dbdef.c.
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 is returned.
sat_ptr | satellite record pointer, NULL if first record is required |
Definition at line 4469 of file ap_dbdef.c.
ADB_FAVSERV_REC* DBDEF_GetNextServiceFromFavouriteList | ( | ADB_FAVLIST_REC * | fav_list, |
ADB_FAVSERV_REC * | fav_serv | ||
) |
Returns the next favourite list service record.
fav_list | favourite list |
fav_serv | current service, or NULL if first service to be returned |
Definition at line 9529 of file ap_dbdef.c.
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.
s_ptr | find the service after this one, use NULL to get the first service |
t_ptr | transport the service is on |
Definition at line 6083 of file ap_dbdef.c.
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 returned.
s_ptr | pointer to service, NULL if first service is to be returned |
Definition at line 5535 of file ap_dbdef.c.
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 returned.
timer_ptr | timer record pointer, NULL if first record is required |
Definition at line 9922 of file ap_dbdef.c.
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 be returned.
t_ptr | transport record, NULL if first transport is required |
Definition at line 4842 of file ap_dbdef.c.
U16BIT DBDEF_GetNumCridRecords | ( | void | ) |
Returns the number of CRID records in the database.
Definition at line 8969 of file ap_dbdef.c.
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.
tuner_type | type of tuner that will be used for the search, if SIGNAL_NONE is specified then all services marked as deleted will be returned |
Definition at line 6737 of file ap_dbdef.c.
U16BIT DBDEF_GetNumFavouriteLists | ( | void | ) |
Returns the number of favourite lists.
Definition at line 9041 of file ap_dbdef.c.
U16BIT DBDEF_GetNumLNBBands | ( | void | ) |
Returns the number of LNB band records in the database.
Definition at line 4493 of file ap_dbdef.c.
U16BIT DBDEF_GetNumLNBs | ( | void | ) |
Returns the number of LNB records in the database.
Definition at line 3999 of file ap_dbdef.c.
U16BIT DBDEF_GetNumNetworks | ( | void | ) |
Returns the number of networks in ther service database.
Definition at line 4631 of file ap_dbdef.c.
U16BIT DBDEF_GetNumSatellites | ( | void | ) |
Returns the number of satellite records in the database.
Definition at line 4362 of file ap_dbdef.c.
U16BIT DBDEF_GetNumServices | ( | void | ) |
Returns the total number of services.
Definition at line 5506 of file ap_dbdef.c.
U16BIT DBDEF_GetNumServicesInFavouriteList | ( | ADB_FAVLIST_REC * | fav_list | ) |
Returns the number of services in the given favourite list.
fav_list | favourite list |
Definition at line 9389 of file ap_dbdef.c.
U16BIT DBDEF_GetNumTransports | ( | void | ) |
Returns the number of transports in ther service database.
Definition at line 4829 of file ap_dbdef.c.
ADB_FAVSERV_REC* DBDEF_GetPrevServiceFromFavouriteList | ( | ADB_FAVLIST_REC * | fav_list, |
ADB_FAVSERV_REC * | fav_serv | ||
) |
Returns the previous favourite list service record.
fav_list | favourite list |
fav_serv | current service, or NULL if last service to be returned |
Definition at line 9554 of file ap_dbdef.c.
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 returned.
s_ptr | pointer to service, NULL if last service is to be returned |
Definition at line 5566 of file ap_dbdef.c.
U16BIT DBDEF_GetProfileList | ( | void *** | profile_list, |
U16BIT * | active_profile | ||
) |
Gets a list of the available network profiles.
profile_list | address of pointer to an array that will be allocated by this function that will contain the profiles |
active_profile | pointer to return the index of the currently active profile |
Definition at line 10031 of file ap_dbdef.c.
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 audio settings in the database, then for the pid matching the default language, then the first audip pid in the stream list. If no pid found the returned pid value will be 0.
s_ptr | - service record ptr |
ad_mode | - pointer to the returned channel setting (mono) |
ad_type | - pointer to the returned stream type (codec) |
broadcast_mix | - pointer to the returned boolean indicator of broadcast mix audio |
Definition at line 6352 of file ap_dbdef.c.
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 in the database, then for the pid matching the default language, then the first audip pid in the stream list. If no pid found the returned pid value will be 0.
s_ptr | - service record ptr |
audio_mode | - pointer to the returned channel setting (mono, stereo, left, right) |
audio_type | - pointer to the returned stream type (codec) |
Definition at line 6298 of file ap_dbdef.c.
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 required subtitle settings in the database, then for the pid matching the default language, then the first subtitle stream in the stream list. If no subtitles found the returned pid will be 0.
s_ptr | - service record ptr |
pid_ptr | - pointer for the return of the pid |
cpage_ptr | - pointer for the return of the composition page |
apage_ptr | - pointer for the return of the ancilliary page |
Definition at line 6472 of file ap_dbdef.c.
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 settings in the database, then for the pid matching the default language, then the first teletext stream in the stream list. If no teletext found the returned pid will be 0.
s_ptr | - service record ptr |
for_subtitles | - TRUE if subtitle stream is to be selected |
magazine | - returns the magazine defined in the stream |
page | - returns the defined page in the stream |
Definition at line 6404 of file ap_dbdef.c.
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 streams available. The "best one" is based on HD being better than SD and uses the priorities from the Nordig spec.
s_ptr | service |
video_type | pointer used to return the type of the video selected |
Definition at line 6531 of file ap_dbdef.c.
U8BIT* DBDEF_GetSecondaryAudioLang | ( | void | ) |
U8BIT* DBDEF_GetSecondaryTextLang | ( | void | ) |
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 returned as broadcast and should be freed using STB_AppFreMemory.
c_ptr | pointer to CRID record |
Definition at line 3700 of file ap_dbdef.c.
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 using STB_ReleaseUnicodeString.
s_ptr | service |
Definition at line 2918 of file ap_dbdef.c.
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 using STB_ReleaseUnicodeString.
s_ptr | service |
type | pointer to value to return the guidance type, valid if guidance text is returned |
mode | pointer to value to return the guidance mode, valid if guidance text is returned |
Definition at line 2879 of file ap_dbdef.c.
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, if available.
s_ptr | service |
short_name | TRUE if short name is to be returned, if available |
pref_name | TRUE if preferred name is to be returned, if available |
Definition at line 6586 of file ap_dbdef.c.
U16BIT DBDEF_GetServicePmtPid | ( | ADB_SERVICE_REC * | s_ptr | ) |
gets the PMT PID associated with the service
s_ptr | pointer to the service |
Definition at line 6980 of file ap_dbdef.c.
ADB_STRING* DBDEF_GetServiceProviderName | ( | ADB_SERVICE_REC * | s_ptr | ) |
Returns a pointer to the service provider name.
s_ptr | service |
Definition at line 6682 of file ap_dbdef.c.
U8BIT* DBDEF_GetTextLang | ( | void | ) |
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 modified or freed.
t_ptr | transport being queried |
num_freqs | pointer to a value that returns the number of additional frequencies in the array |
freqs | pointer to an array that contains the additional frequencies |
Definition at line 5408 of file ap_dbdef.c.
ADB_NETWORK_REC* DBDEF_GetTunedNetwork | ( | U8BIT | path | ) |
gets the currently tuned network
Definition at line 8015 of file ap_dbdef.c.
ADB_SERVICE_REC* DBDEF_GetTunedService | ( | U8BIT | path | ) |
Returns the currently tuned service on the given path.
path | decode path |
Definition at line 8084 of file ap_dbdef.c.
ADB_TRANSPORT_REC* DBDEF_GetTunedTransport | ( | U8BIT | path | ) |
gets the currently tuned transport
Definition at line 8053 of file ap_dbdef.c.
BOOLEAN DBDEF_IsActiveProfile | ( | ADB_NETWORK_REC * | profile | ) |
Is the given profile the currently active profile?
profile | profile |
Definition at line 10122 of file ap_dbdef.c.
BOOLEAN DBDEF_IsValidCridRecord | ( | ADB_CRID_REC * | c_ptr | ) |
Checks whether the given crid record is in the list of valid crid records.
c_ptr | crid record to look for |
Definition at line 9007 of file ap_dbdef.c.
BOOLEAN DBDEF_LoadDatabase | ( | U8BIT * | db_pathname | ) |
Loads the service database from non-volatile storage and creates the RAM version of this data that will be used by the DVB stack.
db_pathname | pathname of the database file to be loaded, may be NULL or ignored if not relevant for the type of storage being used. |
Definition at line 259 of file ap_dbdef.c.
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 of bytes is 0, then no string will be created.
lang_code | ISO 639-2 3 char language code |
str_ptr | pointer to string data to be copied into the ADB_STRING |
nbytes | number of bytes of string data |
Definition at line 3890 of file ap_dbdef.c.
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 position.
fav_list | favourite list |
fav_serv | service to be moved |
index | position to move the service to |
Definition at line 9581 of file ap_dbdef.c.
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.
fav_list | favourite list to be moved |
index | position to move the list to |
Definition at line 9283 of file ap_dbdef.c.
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 and so data related to the CAM is also checked.
n_ptr | network to be checked |
Definition at line 10348 of file ap_dbdef.c.
U8BIT DBDEF_NumberOfCridsOfType | ( | ADB_EVENT_REC * | e_ptr, |
U8BIT | crid_type | ||
) |
Returns the number of CRIDs of the given type for the event.
e_ptr | counting the CRIDs for this event |
crid_type | CRID type to be returned (CRID_TYPE_PROGRAMME, CRID_TYPE_SERIES, or CRID_TYPE_RECOMMENDATION) |
event_ptr | counting the CRIDs for this event |
crid_type | CRID type to be returned |
Definition at line 3587 of file ap_dbdef.c.
U16BIT DBDEF_NumStreamsInList | ( | ADB_STREAM_REC * | slist | ) |
Returns the number of stream records in the given list.
slist | list of stream recs |
Definition at line 1860 of file ap_dbdef.c.
void DBDEF_ReleaseProfileList | ( | void ** | profile_list, |
U16BIT | num_profiles | ||
) |
Frees a profile list returned by DBDEF_GetProfileList.
profile_list | profile list to be freed |
num_profiles | number of profiles in the list |
Definition at line 10104 of file ap_dbdef.c.
void DBDEF_ReleaseString | ( | ADB_STRING * | string | ) |
Releases an ADB_STRING.
string | string to be freed |
Definition at line 3983 of file ap_dbdef.c.
void DBDEF_RemoveEmptyTransports | ( | E_STB_DP_SIGNAL_TYPE | tuner_type, |
void * | satellite | ||
) |
Delete all transport records that don't have any services.
tuner_type | - empty transports of this signal type will be deleted |
satellite | - if the signal type is SIGNAL_QPSK then this parameter specifies the satellite the transports must be on. Ignored if tuner type isn't SIGNAL_QPSK, and can be NULL to indicate all satellites. |
Definition at line 8745 of file ap_dbdef.c.
void DBDEF_SaveServiceEventSchedule | ( | ADB_SERVICE_REC * | s_ptr | ) |
Saves the event schedule of a service to the service database.
s_ptr | event data to be saved for this service |
Definition at line 5994 of file ap_dbdef.c.
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 whether it's on a particular satellite.
s_ptr | service to be checked |
tuner_type | type of tuner to check |
satellite | if tuner type is SIGNAL_QPSK then check whether the service is from this satellite. This can be NULL if the satellite isn't important and is ignored for a non-satellite tuner. |
Definition at line 9775 of file ap_dbdef.c.
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 and so data related to the CAM is also checked.
s_ptr | service to be checked |
Definition at line 10276 of file ap_dbdef.c.
void DBDEF_SetAnalogServiceName | ( | ADB_SERVICE_REC * | s_ptr, |
U8BIT * | new_name, | ||
U8BIT | new_len | ||
) |
Updates analog service names - ASSUMES NORMAL ASCII CODED.
s_ptr | - service to be changed |
new_name | - pointer to new name |
new_len | - number of bytes in new name (incl null terminator) |
Definition at line 6903 of file ap_dbdef.c.
void DBDEF_SetAudioLang | ( | U8BIT * | lang_ids | ) |
sets current audio lang
lang_id | - id of required language |
Definition at line 8187 of file ap_dbdef.c.
void DBDEF_SetCridDateTime | ( | ADB_CRID_REC * | c_ptr, |
U32DHMS | date_time | ||
) |
Sets the date and time fields in the crid record.
c_ptr | pointer to CRID record |
date_time | date & time to set in the crid |
Definition at line 8845 of file ap_dbdef.c.
void DBDEF_SetCridDoNotDelete | ( | ADB_CRID_REC * | c_ptr, |
BOOLEAN | do_not_delete | ||
) |
Sets the do not delete flag in the crid record.
c_ptr | pointer to CRID record |
do_not_delete | new value of the flag |
Definition at line 8903 of file ap_dbdef.c.
void DBDEF_SetCridProgrammeName | ( | ADB_CRID_REC * | c_ptr, |
U8BIT * | prog_name | ||
) |
Sets the programme name field of the given CRID record.
c_ptr | pointer to CRID record |
prog_name | name string to save in the CRID record |
Definition at line 8881 of file ap_dbdef.c.
void DBDEF_SetCridService | ( | ADB_CRID_REC * | c_ptr, |
U16BIT | serv_id | ||
) |
Sets the service ID in the crid record.
c_ptr | pointer to CRID record |
serv_id | service ID |
Definition at line 8863 of file ap_dbdef.c.
void DBDEF_SetFavouriteListName | ( | ADB_FAVLIST_REC * | f_ptr, |
U8BIT * | name | ||
) |
Set or change the name of the given favourite list.
f_ptr | pointer to favourite record to be updated |
name | of the favourite list |
Definition at line 9706 of file ap_dbdef.c.
void DBDEF_SetFavouriteListUserData | ( | ADB_FAVLIST_REC * | fav_list, |
U32BIT | user_data | ||
) |
Saves the given user data with a favourite list.
fav_list | favourite list |
user_data | data to be stored with the list |
Definition at line 9263 of file ap_dbdef.c.
BOOLEAN DBDEF_SetLNB12V | ( | ADB_LNB_REC * | lnb, |
BOOLEAN | is_12v | ||
) |
Sets the LNB 12V setting.
lnb | pointer to LNB record |
is_12v | 12V setting |
Definition at line 4110 of file ap_dbdef.c.
BOOLEAN DBDEF_SetLNB22k | ( | ADB_LNB_REC * | lnb, |
BOOLEAN | is_22k | ||
) |
Sets the LNB 22k setting.
lnb | pointer to LNB record |
is_22k | 22k setting |
Definition at line 4085 of file ap_dbdef.c.
BOOLEAN DBDEF_SetLNBCSwitch | ( | ADB_LNB_REC * | lnb, |
E_STB_DP_DISEQC_CSWITCH | cswitch | ||
) |
Sets the LNB committed switch setting.
lnb | pointer to LNB record |
cswitch | switch setting |
Definition at line 4210 of file ap_dbdef.c.
BOOLEAN DBDEF_SetLNBDiSEqCPosition | ( | ADB_LNB_REC * | lnb, |
BOOLEAN | is_diseqc_posn | ||
) |
Sets the LNB DiSEqC position setting.
lnb | pointer to LNB record |
is_diseqc_posn | diseqc position setting |
Definition at line 4160 of file ap_dbdef.c.
BOOLEAN DBDEF_SetLNBDiSEqCTone | ( | ADB_LNB_REC * | lnb, |
E_STB_DP_DISEQC_TONE | diseqc_tone | ||
) |
Sets the LNB DiSEqC tone setting.
lnb | pointer to LNB record |
diseqc_tone | diseqc tone setting |
Definition at line 4185 of file ap_dbdef.c.
BOOLEAN DBDEF_SetLNBPower | ( | ADB_LNB_REC * | lnb, |
E_STB_DP_LNB_POWER | power | ||
) |
Sets the LNB power setting.
lnb | pointer to LNB record |
power | power setting |
Definition at line 4060 of file ap_dbdef.c.
BOOLEAN DBDEF_SetLNBPulsePosition | ( | ADB_LNB_REC * | lnb, |
BOOLEAN | is_pulse_posn | ||
) |
Sets the LNB pulse position setting.
lnb | pointer to LNB record |
is_pulse_posn | pulse position setting |
Definition at line 4135 of file ap_dbdef.c.
BOOLEAN DBDEF_SetLNBRepeats | ( | ADB_LNB_REC * | lnb, |
U8BIT | repeats | ||
) |
Sets the LNB message repeat setting in the range 0 to 3.
lnb | pointer to LNB record |
repeats | repeat setting |
Definition at line 4285 of file ap_dbdef.c.
BOOLEAN DBDEF_SetLNBSmatv | ( | ADB_LNB_REC * | lnb, |
BOOLEAN | is_smatv | ||
) |
Sets the LNB SMATV setting.
lnb | pointer to LNB record |
is_smatv | SMATV setting |
Definition at line 4260 of file ap_dbdef.c.
BOOLEAN DBDEF_SetLNBUnicable | ( | ADB_LNB_REC * | lnb, |
U32BIT | inter_freq, | ||
U8BIT | chan | ||
) |
Sets the LNB Unicable settings.
lnb | pointer to LNB record |
inter_freq | intermediate frequency setting |
chan | channel setting |
Definition at line 4311 of file ap_dbdef.c.
BOOLEAN DBDEF_SetLNBUSwitch | ( | ADB_LNB_REC * | lnb, |
U8BIT | uswitch | ||
) |
Sets the LNB uncommitted switch setting.
lnb | pointer to LNB record |
uswitch | switch setting |
Definition at line 4235 of file ap_dbdef.c.
void DBDEF_SetNetworkName | ( | ADB_NETWORK_REC * | n_ptr, |
U8BIT * | name | ||
) |
Set or change the name of the given network.
n_ptr | pointer to network record to be updated |
name | name to be given to the network, can be any format, or NULL to clear the network name |
Definition at line 4708 of file ap_dbdef.c.
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.
t_ptr | satellite transport record |
freq_hz | frequency in Hz |
symbol_rate | symbol rate |
polarity | polarity |
dvb_s2 | TRUE for DVB-S2 |
modulation | modulation type |
network | network the transport is on, can be NULL |
Definition at line 5271 of file ap_dbdef.c.
void DBDEF_SetSecondaryAudioLang | ( | U8BIT * | lang_ids | ) |
sets the secondary audio lang
lang_ids | - ids of required language |
Definition at line 8205 of file ap_dbdef.c.
void DBDEF_SetSecondaryTextLang | ( | U8BIT * | lang_ids | ) |
sets secondary text lang
lang_ids | - array of required language ids |
Definition at line 8151 of file ap_dbdef.c.
void DBDEF_SetServiceDeletedFlag | ( | ADB_SERVICE_REC * | s_ptr, |
BOOLEAN | deleted | ||
) |
Marks whether a service is deleted or not.
s_ptr | service |
deleted | TRUE to mark the service as deleted, FALSE as available |
Definition at line 6721 of file ap_dbdef.c.
void DBDEF_SetServiceFavGroups | ( | ADB_SERVICE_REC * | s_ptr, |
U8BIT | groups | ||
) |
Sets the favourite groups for a service.
s_ptr | service |
groups | bitmask containing the favourite groups the service is to be in |
Definition at line 7001 of file ap_dbdef.c.
BOOLEAN DBDEF_SetServiceName | ( | ADB_SERVICE_REC * | s_ptr, |
U8BIT * | name | ||
) |
Set or change the name of a service.
s_ptr | service |
name | name to be given to the service, can be any format, or NULL to clear the current name |
Definition at line 5783 of file ap_dbdef.c.
void DBDEF_SetServicePmtPid | ( | ADB_SERVICE_REC * | s_ptr, |
U16BIT | pmt_pid | ||
) |
Updates the pmt pid.
s_ptr | - service to be changed |
pmt_pid | - PID of the PMT associated with the service |
Definition at line 6959 of file ap_dbdef.c.
BOOLEAN DBDEF_SetServiceProviderName | ( | ADB_SERVICE_REC * | s_ptr, |
U8BIT * | name | ||
) |
Set or change the name of a service's provider.
s_ptr | service |
name | name to be given to the service's provider, can be any format, or NULL to clear the current name |
Definition at line 5910 of file ap_dbdef.c.
BOOLEAN DBDEF_SetServiceShortName | ( | ADB_SERVICE_REC * | s_ptr, |
U8BIT * | name | ||
) |
Set or change the short name of a service.
s_ptr | service |
name | new short name of the service, can be any format, or NULL to clear the current name |
Definition at line 5850 of file ap_dbdef.c.
BOOLEAN DBDEF_SetServiceType | ( | ADB_SERVICE_REC * | s_ptr, |
ADB_SERVICE_TYPE | serv_type | ||
) |
Sets the service type for the given service record.
s_ptr | service |
serv_type | type of service |
Definition at line 5969 of file ap_dbdef.c.
void DBDEF_SetTextLang | ( | U8BIT * | lang_ids | ) |
sets current text lang
lang_ids | - array of required language ids |
Definition at line 8115 of file ap_dbdef.c.
void DBDEF_SetTransportOrigNetworkId | ( | ADB_TRANSPORT_REC * | t_ptr, |
U16BIT | orig_net_id | ||
) |
Sets the original network ID of the given transport.
t_ptr | transport record the ID will be set for |
orig_net_id | original network ID to be set |
Definition at line 5387 of file ap_dbdef.c.
void DBDEF_SetTransportTransportId | ( | ADB_TRANSPORT_REC * | t_ptr, |
U16BIT | tran_id | ||
) |
Sets the transport ID of the given transport.
t_ptr | transport record the ID will be set for |
tran_id | transport ID to be set |
Definition at line 5368 of file ap_dbdef.c.
void DBDEF_SetTunedNetwork | ( | U8BIT | path, |
ADB_NETWORK_REC * | n_ptr | ||
) |
sets the currently tuned network
t_ptr | - pointer to the network |
Definition at line 7996 of file ap_dbdef.c.
void DBDEF_SetTunedService | ( | U8BIT | path, |
ADB_SERVICE_REC * | s_ptr | ||
) |
Sets the currently tuned service.
path | decode path |
s_ptr | service tuned to |
Definition at line 8066 of file ap_dbdef.c.
void DBDEF_SetTunedTransport | ( | U8BIT | path, |
ADB_TRANSPORT_REC * | t_ptr | ||
) |
sets the currently tuned transport
t_ptr | - pointer to the transport |
Definition at line 8034 of file ap_dbdef.c.
void DBDEF_SortTimers | ( | BOOLEAN | date_time_order | ) |
Sorts timer list into date/time or alphabetical order.
date_time_order | TRUE to sort into date/time order, FALSE for alphabetical |
Definition at line 9946 of file ap_dbdef.c.
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, such as removing duplicate services, etc.
tuner_type | tuner type used for the search |
satellite | satellite search was performed on for SIGNAL_QPSK, ignored otherwise |
search_completed | TRUE if the search completed, FALSE if terminated prematurely |
manual | TRUE if a manual search was performed, FALSE otherwise |
Definition at line 8256 of file ap_dbdef.c.
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 based on the rules for that country.
tuner_type | tuner type used for the search |
search_completed | TRUE if the search completed, FALSE if terminated prematurely |
manual | TRUE if a manual search was performed, FALSE otherwise |
Definition at line 8656 of file ap_dbdef.c.
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 based on the rules for that country.
tuner_type | tuner type used for the search |
search_completed | TRUE if the search completed, FALSE if terminated prematurely |
manual | TRUE if a manual search was performed, FALSE otherwise |
Definition at line 8332 of file ap_dbdef.c.
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 based on the rules for that country.
tuner_type | tuner type used for the search |
search_completed | TRUE if the search completed, FALSE if terminated prematurely |
manual | TRUE if a manual search was performed, FALSE otherwise |
Definition at line 8562 of file ap_dbdef.c.
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 based on the rules for that country.
tuner_type | tuner type used for the search |
search_completed | TRUE if the search completed, FALSE if terminated prematurely |
manual | TRUE if a manual search was performed, FALSE otherwise |
Definition at line 8474 of file ap_dbdef.c.
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.
t_ptr | transport to be checked |
tuner_type | type of tuner to check |
satellite | if tuner type is SIGNAL_QPSK then check whether the transport is from this satellite. This can be NULL if the satellite isn't important and is ignored for a non-satellite tuner. |
Definition at line 9805 of file ap_dbdef.c.
BOOLEAN DBDEF_TransportInProfile | ( | ADB_TRANSPORT_REC * | t_ptr | ) |
Checks whether the given transport is valid for the current profile. There may be multiple CI+ profiles and so data related to the CAM is also checked.
t_ptr | transport to be checked |
Definition at line 10312 of file ap_dbdef.c.
void DBDEF_UpdateCridEitDate | ( | ADB_CRID_REC * | c_ptr | ) |
Updates the stored EIT date of this CRID with the current GMT date.
c_ptr | pointer to CRID record |
Definition at line 8920 of file ap_dbdef.c.