File: epgchannel.h

package info (click to toggle)
dvbstreamer 2.1.0-5.8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 5,676 kB
  • sloc: ansic: 42,193; sh: 10,230; python: 519; makefile: 363
file content (69 lines) | stat: -rw-r--r-- 2,006 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
Copyright (C) 2009  Adam Charrett

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA

epgchannel.h

EPG Functions and structures for sending/listening for EPG information.

*/

#ifndef _EPGCHANNEL_H
#define _EPGCHANNEL_H
#include "messageq.h"
#include "epgtypes.h"

/**
 * @defgroup EPGChannel EPG Channel
 * This module is used to send EPG information from the decoders to interested parties.\n
 * @{
 */
typedef enum {
    EPGChannelMessageType_Event,
    EPGChannelMessageType_Detail,        
    EPGChannelMessageType_Rating    
}EPGChannelMessageType;

typedef struct EPGChannelMessage_s{
    EPGChannelMessageType type;
    EPGEventRef_t eventRef;
    union {
        EPGEvent_t event;
        EPGEventDetail_t detail;
        EPGEventRating_t rating;
    }data;
}EPGChannelMessage_t;

/**
 * Initialises the EPG object types.
 * @return 0 on success.
 */
int EPGChannelInit(void);

/**
 * Deinitialises the EPG object types.
 * @return 0 on success.
 */
int EPGChannelDeInit(void);

int EPGChannelRegisterListener(MessageQ_t msgQ);
int EPGChannelUnregisterListener(MessageQ_t msgQ);
int EPGChannelNewEvent(EPGEventRef_t *eventRef, struct tm *startTime, struct tm *endTime, bool ca);
int EPGChannelNewRating(EPGEventRef_t *eventRef, char *system, char *rating);
int EPGChannelNewDetail(EPGEventRef_t *eventRef, char *lang, char * name, char *value);
/**@}*/
#endif