1 /*****************************************************************************
2 * vlm_internal.h: Internal vlm structures
3 *****************************************************************************
4 * Copyright (C) 1998-2006 VLC authors and VideoLAN
6 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
23 #ifndef LIBVLC_VLM_INTERNAL_H
24 #define LIBVLC_VLM_INTERNAL_H 1
27 #include "input_interface.h"
35 /* "playlist" index */
40 vlc_object_t
*p_parent
;
42 input_thread_t
*p_input
;
43 input_resource_t
*p_input_resource
;
45 } vlm_media_instance_sys_t
;
58 /* actual input instances */
60 vlm_media_instance_sys_t
**instance
;
65 /* names "schedule" is reserved */
68 /* list of commands to execute on date */
72 /* the date of 1st execution */
75 /* if != 0, repeat period in seconds */
77 /* number of times you have to repeat
78 i_repeat < 0 : endless repeat */
85 struct vlc_common_members obj
;
89 vlc_mutex_t lock_manage
;
90 vlc_cond_t wait_manage
;
93 /* tell vlm thread there is work to do */
94 bool input_state_changed
;
98 /* Vod server (used by media) */
103 vlm_media_sys_t
**media
;
107 vlm_schedule_sys_t
**schedule
;
110 int vlm_ControlInternal( vlm_t
*p_vlm
, int i_query
, ... );
111 int ExecuteCommand( vlm_t
*, const char *, vlm_message_t
** );
112 void vlm_ScheduleDelete( vlm_t
*vlm
, vlm_schedule_sys_t
*sched
);