gui: macos: use float for rate
[vlc.git] / src / input / vlm_internal.h
blobe3a97f86fa7bfd913663fb3cf42916791f9b973d
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
26 #include <vlc_vlm.h>
27 #include "input_interface.h"
29 /* Private */
30 typedef struct
32 /* instance name */
33 char *psz_name;
35 /* "playlist" index */
36 int i_index;
38 bool b_sout_keep;
40 vlc_object_t *p_parent;
41 input_item_t *p_item;
42 input_thread_t *p_input;
43 input_resource_t *p_input_resource;
45 } vlm_media_instance_sys_t;
48 typedef struct
50 vlm_media_t cfg;
52 struct
54 input_item_t *p_item;
55 vod_media_t *p_media;
56 } vod;
58 /* actual input instances */
59 int i_instance;
60 vlm_media_instance_sys_t **instance;
61 } vlm_media_sys_t;
63 typedef struct
65 /* names "schedule" is reserved */
66 char *psz_name;
67 bool b_enabled;
68 /* list of commands to execute on date */
69 int i_command;
70 char **command;
72 /* the date of 1st execution */
73 time_t date;
75 /* if != 0, repeat period in seconds */
76 unsigned period;
77 /* number of times you have to repeat
78 i_repeat < 0 : endless repeat */
79 int i_repeat;
80 } vlm_schedule_sys_t;
83 struct vlm_t
85 struct vlc_common_members obj;
87 vlc_mutex_t lock;
88 vlc_thread_t thread;
89 vlc_mutex_t lock_manage;
90 vlc_cond_t wait_manage;
91 unsigned users;
93 /* tell vlm thread there is work to do */
94 bool input_state_changed;
95 /* */
96 int64_t i_id;
98 /* Vod server (used by media) */
99 vod_t *p_vod;
101 /* Media list */
102 int i_media;
103 vlm_media_sys_t **media;
105 /* Schedule list */
106 int i_schedule;
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 );
114 #endif