MHEG5  18.9.0
MHEG5 Documentation
dvb_pvr.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2012 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  *******************************************************************************/
30 #ifndef _DVB_PVR_H
31 #define _DVB_PVR_H
32 
33 #include "techtype.h"
34 #include "dtvstring.h"
35 #include "mherrors.h"
36 #include "dvblocator.h"
37 
38 /*---Constant and macro definitions for public use-----------------------------*/
39 
40 /*---Enumerations for public use-----------------------------------------------*/
41 
42 /*---Global type defs for public use-------------------------------------------*/
43 
44 /*************************************************
45  *** start of AUSTRALIA profile specific types ***/
46 typedef struct
47 {
51 } S_PVR_DATE;
52 
53 typedef struct
54 {
57 } S_PVR_TIME;
58 
59 typedef struct s_location
60 {
66 } S_LOCATION;
67 
68 typedef struct s_booking
69 {
70  struct s_booking *next;
73 } S_BOOKING;
74 /**** end of AUSTRALIA profile specific types ***
75  ************************************************/
76 
77 /* CRID details structure */
78 typedef struct
79 {
80  /* general information */
84 
85  /* for AUSTRALIA profile */
86  S_BOOKING *bookings; /* NULL, unless AUS profile */
88 
89 
90 /* CRID string - this has format:
91  * Scheme + Authority + Unique Identifier
92  * and for NZ profile, this could additionally have
93  * '#' + Instance Identifier
94  * Also, in the NZ profile CRID type is always supplied with the string.
95  */
96 typedef struct s_crid_rec
97 {
100 } S_CRID_REC;
101 
102 /*---Global Function prototypes for public use---------------------------------*/
103 
135 
136 
145 
146 
155 
156 
165 void DVB_MhegPvrReleaseList( S_CRID_REC *crid_array );
166 
167 
177 
178 
188 
189 #endif /* _DVB_PVR_H */
struct s_booking * next
Definition: dvb_pvr.h:70
S_LOCATION * p_locs
Definition: dvb_pvr.h:72
U8BIT hour
Definition: dvb_pvr.h:55
S_STRING description
Definition: dvb_pvr.h:83
Define MHEG5 String type.
U8BIT month
Definition: dvb_pvr.h:49
S32BIT type
Definition: dvb_pvr.h:81
S_PVR_TIME offset
Definition: dvb_pvr.h:64
S_CRID_DETAILS * DVB_MhegPvrGetDetails(S_STRING crid)
Required by Australia profile only. Returns the type, name, description and a single booking section ...
S_STRING title
Definition: dvb_pvr.h:82
struct s_booking S_BOOKING
S_DVB_LOCATOR dvb_loc
Definition: dvb_pvr.h:61
E_MhegErr
Definition: mherrors.h:28
S_STRING crid
Definition: dvb_pvr.h:98
MHEG5 engine interface error codes.
uint8_t U8BIT
Definition: techtype.h:82
void DVB_MhegPvrReleaseList(S_CRID_REC *crid_array)
MHEG indicates that it is finished using the array returned by DVB_MhegPvrListBookings(). For example, platforms that malloc memory for this, may wish to free the memory here.
S_BOOKING * bookings
Definition: dvb_pvr.h:86
U8BIT minute
Definition: dvb_pvr.h:56
struct s_crid_rec S_CRID_REC
void DVB_MhegPvrReleaseDetails(S_CRID_DETAILS *details)
Required by Australia profile only. MHEG indicates that it is finished using the CRID details returne...
S_PVR_DATE date
Definition: dvb_pvr.h:62
int32_t S32BIT
Definition: techtype.h:87
uint16_t U16BIT
Definition: techtype.h:84
U32BIT num_locs
Definition: dvb_pvr.h:71
System Wide Global Technical Data Type Definitions.
E_MhegErr DVB_MhegPvrCancelBooking(S_STRING crid, U16BIT crid_type)
Removes an event from the PVR schedule.
struct s_location S_LOCATION
Definition of DVB locator and DVB component types.
S_PVR_TIME time
Definition: dvb_pvr.h:63
S_PVR_TIME duration
Definition: dvb_pvr.h:65
E_MhegErr DVB_MhegPvrMakeBooking(S_STRING crid, S_CRID_DETAILS *details)
The function adds an event to the PVR’s list of scheduled events to record. The type of CRID can be a...
U16BIT year
Definition: dvb_pvr.h:48
uint32_t U32BIT
Definition: techtype.h:86
S_CRID_REC * DVB_MhegPvrListBookings(U16BIT *number)
Returns an array of CRIDs (and CRID types for NZ profile) that are being monitored by the PVR...
U8BIT day
Definition: dvb_pvr.h:50
S32BIT type
Definition: dvb_pvr.h:99