Commit a82c7e3e authored by Laurent Aimar's avatar Laurent Aimar

* dvn: first pass to port dvb to new api. (it doesn't even yet compile,

I haven't tried :)
parent 299cea2f
This diff is collapsed.
...@@ -34,22 +34,24 @@ ...@@ -34,22 +34,24 @@
/***************************************************************************** /*****************************************************************************
* Local structures * Local structures
*****************************************************************************/ *****************************************************************************/
typedef struct demux_handle_t typedef struct
{ {
int i_pid; int i_pid;
int i_handle; int i_handle;
int i_type; int i_type;
} demux_handle_t; } demux_handle_t;
typedef struct frontend_t frontend_t;
#define MAX_DEMUX 24 #define MAX_DEMUX 24
typedef struct thread_dvb_data_t struct access_t
{ {
int i_handle; int i_handle;
demux_handle_t p_demux_handles[MAX_DEMUX]; demux_handle_t p_demux_handles[MAX_DEMUX];
void * p_frontend; frontend_t *p_frontend;
vlc_bool_t b_budget_mode; vlc_bool_t b_budget_mode;
} thread_dvb_data_t; };
#define VIDEO0_TYPE 1 #define VIDEO0_TYPE 1
#define AUDIO0_TYPE 2 #define AUDIO0_TYPE 2
...@@ -62,12 +64,13 @@ typedef struct thread_dvb_data_t ...@@ -62,12 +64,13 @@ typedef struct thread_dvb_data_t
/***************************************************************************** /*****************************************************************************
* Prototypes * Prototypes
*****************************************************************************/ *****************************************************************************/
int E_(FrontendOpen)( input_thread_t * p_input ); int E_(FrontendOpen)( access_t * );
void E_(FrontendClose)( input_thread_t * p_input ); int E_(FrontendSet)( access_t * );
int E_(FrontendSet)( input_thread_t * p_input ); void E_(FrontendClose)( access_t * );
int E_(DMXSetFilter)( input_thread_t * p_input, int i_pid, int * pi_fd,
int i_type ); int E_(DMXSetFilter)( access_t *, int i_pid, int * pi_fd, int i_type );
int E_(DMXUnsetFilter)( input_thread_t * p_input, int i_fd ); int E_(DMXUnsetFilter)( access_t *, int i_fd );
int E_(DVROpen)( input_thread_t * p_input );
void E_(DVRClose)( input_thread_t * p_input ); int E_(DVROpen)( access_t * );
void E_(DVRClose)( access_t * );
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment