Initial Commit
This commit is contained in:
commit
f4fa723863
22 changed files with 1402 additions and 0 deletions
25
src/channel.h
Normal file
25
src/channel.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef CHANNEL_H
|
||||
#define CHANNEL_H
|
||||
|
||||
#include <limits.h>
|
||||
#include <time.h>
|
||||
|
||||
typedef struct Channel {
|
||||
int number;
|
||||
char name[64];
|
||||
char file_path[PATH_MAX];
|
||||
char file_name[128];
|
||||
char program_title[128];
|
||||
double duration_seconds;
|
||||
} Channel;
|
||||
|
||||
typedef struct ChannelList {
|
||||
Channel *items;
|
||||
int count;
|
||||
} ChannelList;
|
||||
|
||||
int channel_list_load(ChannelList *list, const char *media_dir);
|
||||
void channel_list_destroy(ChannelList *list);
|
||||
double channel_live_position(const Channel *channel, time_t app_start_time, time_t now);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue