-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathevents.h
More file actions
31 lines (27 loc) · 686 Bytes
/
events.h
File metadata and controls
31 lines (27 loc) · 686 Bytes
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
#ifndef _EVENTS_H
#define _EVENTS_H
#include <stdint.h>
#include "htsp.h"
#include "avl.h"
struct event_t {
struct avl avl;
uint32_t eventId;
uint32_t channelId;
int64_t start;
int64_t stop;
char* title;
char* description;
uint32_t serieslinkId;
uint32_t episodeId;
char* episodeUri;
uint32_t nextEventId;
};
void process_event_message(char* method, struct htsp_message_t* msg);
struct event_t* event_get(uint32_t eventId);
struct event_t* event_copy(uint32_t eventId);
void event_delete(uint32_t eventId);
void event_free(struct event_t* event);
void event_dump(struct event_t* event);
int event_find_hd_version(int eventId);
void events_init(void);
#endif