HbbTv  17.9.0
Open source HBBTV engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
query.h
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2013 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 #ifndef _QUERY_H
26 #define _QUERY_H
27 
28 extern void *JS_QUERY_CLASS;
29 
30 typedef enum
31 {
32  HBBTV_QUERY_FIELD_PROGRAMME_NAME,
33  HBBTV_QUERY_FIELD_PROGRAMME_ID,
34  HBBTV_QUERY_FIELD_PROGRAMME_CRID,
35  HBBTV_QUERY_FIELD_START_TIME,
36  HBBTV_QUERY_FIELD_END_TIME /* Not included in HbbTV v1.2 explicitly, but required
37  * for MetadataSearch.findProgrammesFromStream */
38 } HBBTV_QUERY_FIELD_TYPE;
39 
40 void* HBBTV_QueryCreate(HBBTV_QUERY_FIELD_TYPE field_type, HBBTV_JSMetadataSearch_Comparison comparison,
41  void *value);
42 BOOLEAN HBBTV_QueryMatchesEvent(void *obj, void *channel, S_HBBTV_EVENT_DETAILS *event_details);
43 
44 #endif /* _QUERY_H */
HBBTV_JSMetadataSearch_Comparison
Definition: hbbtv_js.h:80
Definition: hbbtv_sif_service.h:75