DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
Macros | Functions
ap_epgsearch.c File Reference

Functions to allow string based searching of EPG data. More...

#include <stdio.h>
#include <wchar.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "techtype.h"
#include "dbgfuncs.h"
#include "stbhwos.h"
#include "stbgc.h"
#include "stbdpc.h"
#include "stbsiflt.h"
#include "stbsitab.h"
#include "stbheap.h"
#include "stbuni.h"
#include "stbllist.h"
#include "app_nvm.h"
#include "ap_cfg.h"
#include "ap_dbacc.h"
#include "ap_epgsearch.h"
#include "dba.h"

Macros

#define AGS_DBG(x)
 

Functions

void * AGS_OpenSearch (U8BIT *search_str, E_AGS_SEARCH_FIELDS search_fields, E_AGS_MATCH_TYPE match_type, E_AGS_SEARCH_DAYS search_days, S_AGS_TIME_RANGE *search_times, E_AGS_MATCH_ACTION match_action)
 Opens an EPG Search. More...
 
BOOLEAN AGS_GetNextResult (void *ags_handle, U16BIT *event_id, void **serv_ptr)
 Gets the next matching result for an open search. More...
 
void AGS_CloseSearch (void *ags_handle)
 Closes an open search and frees all associated resources. More...
 

Detailed Description

Functions to allow string based searching of EPG data.

Date
13/08/2011
Author
Ocean Blue

Function Documentation

void AGS_CloseSearch ( void *  ags_handle)

Closes an open search and frees all associated resources.

Parameters
ags_handleThe handle of the open search
BOOLEAN AGS_GetNextResult ( void *  ags_handle,
U16BIT *  event_id,
void **  serv_ptr 
)

Gets the next matching result for an open search.

Parameters
ags_handleThe handle of the open search
event_idCaller's event id var to be set with matching result
serv_ptrCaller's service pointer to be set with matching result
Returns
BOOLEAN, TRUE=Match Found, FALSE=No more matches
void* AGS_OpenSearch ( U8BIT *  search_str,
E_AGS_SEARCH_FIELDS  search_fields,
E_AGS_MATCH_TYPE  match_type,
E_AGS_SEARCH_DAYS  search_days,
S_AGS_TIME_RANGE search_times,
E_AGS_MATCH_ACTION  match_action 
)

Opens an EPG Search.

Parameters
search_strThe search string to compare
search_fieldsThe EPG parts to match
match_typeThe type of comparison to make on the string
search_daysWhich days of the week to search
search_timesTime range in which to search (NULL for any)
match_actionThe action to perform on a search match
Returns
Handle for search, NULL if failed