forked from linuxstb/pidvbip
-
Notifications
You must be signed in to change notification settings - Fork 3
/
channels.h
29 lines (25 loc) · 934 Bytes
/
channels.h
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
#ifndef _CHANNELS_H
#define _CHANNELS_H
#include <stdint.h>
#define CTYPE_NONE 0
#define CTYPE_UNKNOWN 1
#define CTYPE_SDTV 2
#define CTYPE_HDTV 3
#define CTYPE_RADIO 4
void channels_init(void);
void channels_add(int server, int lcn, int tvh_id, char* name, int type, uint32_t eventId, uint32_t nextEventId);
void channels_update(int server, int lcn, int tvh_id, char* name, int type, uint32_t eventId, uint32_t nextEventId);
void channels_dump(void);
int channels_getid(int lcn);
char* channels_getname(int id);
void channels_geteventid(int id, uint32_t* eventid, int* server);
void channels_getnexteventid(int id, uint32_t* eventid, int* server);
void channels_gettvhid(int id, int* tvh_id, int* server);
int channels_getlcn(int id);
int channels_gettype(int id);
int channels_getnext(int id);
int channels_getprev(int id);
int channels_getfirst(void);
int channels_getlast(void);
int channels_getcount(void);
#endif