-
Notifications
You must be signed in to change notification settings - Fork 22
/
events.h
35 lines (31 loc) · 871 Bytes
/
events.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
30
31
32
33
34
35
#ifndef _EVENTS_H
#define _EVENTS_H
#include <stdint.h>
#include "htsp.h"
#include "list.h"
struct event_t {
struct list_head list;
int server; /* Which server is this from? */
uint32_t eventId;
uint32_t channelId;
int64_t start;
int64_t stop;
char* title;
char* description;
uint32_t serieslinkId;
char* serieslinkUri;
uint32_t episodeId;
char* episodeUri;
uint32_t seasonNumber;
uint32_t episodeNumber;
uint32_t nextEventId;
};
void process_event_message(char* method, struct htsp_message_t* msg);
struct event_t* event_get(uint32_t eventId, int server);
struct event_t* event_copy(uint32_t eventId, int server);
void event_delete(uint32_t eventId, int server);
void event_free(struct event_t* event);
void event_dump(struct event_t* event);
int event_find_hd_version(int eventId, int server);
void events_init(void);
#endif