Add encoder support for Dirac using the Schroedinger library.
[vlc/asuraparaju-public.git] / src / input / vlm_internal.h
blob03e58284db722399588c53ae97ea904f5c02372d
1 /*****************************************************************************
2 * vlm_internal.h: Internal vlm structures
3 *****************************************************************************
4 * Copyright (C) 1998-2006 the VideoLAN team
5 * $Id$
7 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__)
25 # error This header file can only be included from LibVLC.
26 #endif
28 #ifndef _VLM_INTERNAL_H
29 #define _VLM_INTERNAL_H 1
31 #include <vlc_vlm.h>
32 #include "input_interface.h"
34 /* Private */
35 typedef struct
37 /* instance name */
38 char *psz_name;
40 /* "playlist" index */
41 int i_index;
43 bool b_sout_keep;
45 input_item_t *p_item;
46 input_thread_t *p_input;
47 input_resource_t *p_input_resource;
49 } vlm_media_instance_sys_t;
52 typedef struct
54 vlm_media_t cfg;
56 struct
58 input_item_t *p_item;
59 vod_media_t *p_media;
60 } vod;
62 /* actual input instances */
63 int i_instance;
64 vlm_media_instance_sys_t **instance;
65 } vlm_media_sys_t;
67 typedef struct
69 /* names "schedule" is reserved */
70 char *psz_name;
71 bool b_enabled;
72 /* list of commands to execute on date */
73 int i_command;
74 char **command;
76 /* the date of 1st execution */
77 mtime_t i_date;
79 /* if != 0 repeat schedule every (period) */
80 mtime_t i_period;
81 /* number of times you have to repeat
82 i_repeat < 0 : endless repeat */
83 int i_repeat;
84 } vlm_schedule_sys_t;
87 struct vlm_t
89 VLC_COMMON_MEMBERS
91 vlc_mutex_t lock;
92 vlc_thread_t thread;
93 vlc_mutex_t lock_manage;
94 vlc_cond_t wait_manage;
95 /* tell vlm thread there is work to do */
96 bool input_state_changed;
97 /* */
98 int64_t i_id;
100 /* Vod server (used by media) */
101 vod_t *p_vod;
103 /* Media list */
104 int i_media;
105 vlm_media_sys_t **media;
107 /* Schedule list */
108 int i_schedule;
109 vlm_schedule_sys_t **schedule;
112 int64_t vlm_Date(void);
113 int vlm_ControlInternal( vlm_t *p_vlm, int i_query, ... );
114 int ExecuteCommand( vlm_t *, const char *, vlm_message_t ** );
115 void vlm_ScheduleDelete( vlm_t *vlm, vlm_schedule_sys_t *sched );
117 #endif