mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
This imports libeplayer3 as of commit 9160371ccc6 (2012-02-02) git://gitorious.org/open-duckbox-project-sh4/tdt.git It would be better to use the original repo, but I need too many changes for now :-(
49 lines
936 B
C
49 lines
936 B
C
#ifndef CONTAINER_H_
|
|
#define CONTAINER_H_
|
|
|
|
#include <stdio.h>
|
|
|
|
typedef enum {
|
|
CONTAINER_INIT,
|
|
CONTAINER_ADD,
|
|
CONTAINER_CAPABILITIES,
|
|
CONTAINER_PLAY,
|
|
CONTAINER_STOP,
|
|
CONTAINER_SEEK,
|
|
CONTAINER_LENGTH,
|
|
CONTAINER_DEL,
|
|
CONTAINER_SWITCH_AUDIO,
|
|
CONTAINER_SWITCH_SUBTITLE,
|
|
CONTAINER_INFO,
|
|
CONTAINER_STATUS,
|
|
CONTAINER_LAST_PTS,
|
|
CONTAINER_DATA
|
|
} ContainerCmd_t;
|
|
|
|
typedef struct Container_s {
|
|
char * Name;
|
|
int (* Command) (/*Context_t*/void *, ContainerCmd_t, void *);
|
|
char ** Capabilities;
|
|
|
|
} Container_t;
|
|
|
|
|
|
extern Container_t FFMPEGContainer;
|
|
|
|
static Container_t * AvailableContainer[] = {
|
|
&FFMPEGContainer,
|
|
NULL
|
|
};
|
|
|
|
typedef struct ContainerHandler_s {
|
|
char * Name;
|
|
Container_t * selectedContainer;
|
|
Container_t * textSrtContainer;
|
|
Container_t * textSsaContainer;
|
|
Container_t * assContainer;
|
|
|
|
int (* Command) (/*Context_t*/void *, ContainerCmd_t, void *);
|
|
} ContainerHandler_t;
|
|
|
|
#endif
|