1 /*****************************************************************************
2 * vlc_vlm.h: VLM core structures
3 *****************************************************************************
4 * Copyright (C) 2000, 2001 the VideoLAN team
7 * Authors: Simon Latapie <garf@videolan.org>
8 * Laurent Aimar <fenrir@videolan.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #if !defined( __LIBVLC__ )
26 #error You are not libvlc or one of its plugins. You cannot include this file
36 #include <vlc_input.h>
38 /* VLM specific - structures and functions */
51 /* "playlist" index */
55 input_thread_t *p_input;
57 } vlm_media_instance_t;
64 /* name "media" is reserved */
77 /* only for broadcast */
81 vod_media_t *vod_media;
85 /* actual input instances */
87 vlm_media_instance_t **instance;
93 /* names "schedule" is reserved */
96 /* list of commands to execute on date */
100 /* the date of 1st execution */
103 /* if != 0 repeat schedule every (period) */
105 /* number of times you have to repeat
106 i_repeat < 0 : endless repeat */
111 /* ok, here is the structure of a vlm_message:
112 The parent node is ( name_of_the_command , NULL ), or
113 ( name_of_the_command , message_error ) on error.
114 If a node has children, it should not have a value (=NULL).*/
121 vlm_message_t **child;
138 vlm_schedule_t **schedule;
142 #define vlm_New( a ) __vlm_New( VLC_OBJECT(a) )
143 VLC_EXPORT( vlm_t *, __vlm_New, ( vlc_object_t * ) );
144 VLC_EXPORT( void, vlm_Delete, ( vlm_t * ) );
145 VLC_EXPORT( int, vlm_ExecuteCommand, ( vlm_t *, const char *, vlm_message_t ** ) );
146 VLC_EXPORT( void, vlm_MessageDelete, ( vlm_message_t * ) );
147 VLC_EXPORT( vlm_media_t *, vlm_MediaNew, ( vlm_t *, const char *, int ) );
148 VLC_EXPORT( void, vlm_MediaDelete, ( vlm_t *, vlm_media_t *, const char * ) );
149 VLC_EXPORT( int, vlm_MediaSetup, ( vlm_t *, vlm_media_t *, const char *, const char * ) );
150 VLC_EXPORT( int, vlm_MediaControl, ( vlm_t *, vlm_media_t *, const char *, const char *, const char * ) );
151 VLC_EXPORT( vlm_media_t* , vlm_MediaSearch,( vlm_t *, const char *) );
152 VLC_EXPORT( vlm_schedule_t *, vlm_ScheduleNew, ( vlm_t *, const char * ) );
153 VLC_EXPORT( void, vlm_ScheduleDelete, ( vlm_t *, vlm_schedule_t *, const char * ) );
154 VLC_EXPORT( int, vlm_ScheduleSetup, ( vlm_schedule_t *, const char *, const char * ) );
155 VLC_EXPORT( int, vlm_MediaVodControl, ( void *, vod_media_t *, const char *, int, va_list ) );
156 VLC_EXPORT( int, vlm_Save, ( vlm_t *, const char * ) );
157 VLC_EXPORT( int, vlm_Load, ( vlm_t *, const char * ) );