#ifndef CHANNEL_H #define CHANNEL_H #include #include #include 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); double channel_live_position_precise(const Channel *channel, Uint64 app_start_ticks, Uint64 now_ticks); #endif