1 /*****************************************************************************
2 * vlc_vlm.h: VLM interface plugin
3 *****************************************************************************
4 * Copyright (C) 2000, 2001 VideoLAN
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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
23 *****************************************************************************/
28 /* VLM specific - structures and functions */
40 /* name "media" is reserved */
46 /* only for broadcast */
49 /* "playlist" index */
57 /* global options for all inputs */
59 input_thread_t *p_input;
66 /* names "schedule" is reserved */
69 /* list of commands to execute on date */
73 /* the date of 1st execution */
76 /* if != 0 repeat schedule every (period) */
78 /* number of times you have to repeat
79 i_repeat < 0 : endless repeat */
84 /* ok, here is the structure of a vlm_message:
85 The parent node is ( name_of_the_command , NULL ), or
86 ( name_of_the_command , message_error ) on error.
87 If a node has children, it should not have a value (=NULL).*/
94 vlm_message_t **child;
109 vlm_media_t **broadcast;
116 vlm_schedule_t **schedule;
120 #define vlm_New( a ) __vlm_New( VLC_OBJECT(a) )
122 VLC_EXPORT( vlm_t *, __vlm_New, ( vlc_object_t * ) );
123 VLC_EXPORT( void, vlm_Delete, ( vlm_t * ) );
125 VLC_EXPORT( int, vlm_ExecuteCommand, ( vlm_t *, char *, vlm_message_t **) );
126 VLC_EXPORT( void, vlm_MessageDelete, ( vlm_message_t* ) );