root/src/input/vlm_internal.h
| Revision d745c19b21432e69b27af4f92782c4814fc24d0d, 2.8 kB (checked in by Rémi Denis-Courmont <rdenis@simphalempin.com>, 3 months ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | /***************************************************************************** |
| 2 | * vlm_internal.h: Internal vlm structures |
| 3 | ***************************************************************************** |
| 4 | * Copyright (C) 1998-2006 the VideoLAN team |
| 5 | * $Id$ |
| 6 | * |
| 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
| 8 | * |
| 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. |
| 13 | * |
| 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. |
| 18 | * |
| 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 | *****************************************************************************/ |
| 23 | |
| 24 | #if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) |
| 25 | # error This header file can only be included from LibVLC. |
| 26 | #endif |
| 27 | |
| 28 | #ifndef _VLM_INTERNAL_H |
| 29 | #define _VLM_INTERNAL_H 1 |
| 30 | |
| 31 | #include <vlc_vlm.h> |
| 32 | |
| 33 | /* Private */ |
| 34 | typedef struct |
| 35 | { |
| 36 | /* instance name */ |
| 37 | char *psz_name; |
| 38 | |
| 39 | /* "playlist" index */ |
| 40 | int i_index; |
| 41 | |
| 42 | bool b_sout_keep; |
| 43 | |
| 44 | input_item_t *p_item; |
| 45 | input_thread_t *p_input; |
| 46 | sout_instance_t *p_sout; |
| 47 | |
| 48 | } vlm_media_instance_sys_t; |
| 49 | |
| 50 | |
| 51 | typedef struct |
| 52 | { |
| 53 | vlm_media_t cfg; |
| 54 | |
| 55 | struct |
| 56 | { |
| 57 | input_item_t *p_item; |
| 58 | vod_media_t *p_media; |
| 59 | } vod; |
| 60 | |
| 61 | /* actual input instances */ |
| 62 | int i_instance; |
| 63 | vlm_media_instance_sys_t **instance; |
| 64 | } vlm_media_sys_t; |
| 65 | |
| 66 | typedef struct |
| 67 | { |
| 68 | /* names "schedule" is reserved */ |
| 69 | char *psz_name; |
| 70 | bool b_enabled; |
| 71 | /* list of commands to execute on date */ |
| 72 | int i_command; |
| 73 | char **command; |
| 74 | |
| 75 | /* the date of 1st execution */ |
| 76 | mtime_t i_date; |
| 77 | |
| 78 | /* if != 0 repeat schedule every (period) */ |
| 79 | mtime_t i_period; |
| 80 | /* number of times you have to repeat |
| 81 | i_repeat < 0 : endless repeat */ |
| 82 | int i_repeat; |
| 83 | } vlm_schedule_sys_t; |
| 84 | |
| 85 | |
| 86 | struct vlm_t |
| 87 | { |
| 88 | VLC_COMMON_MEMBERS |
| 89 | |
| 90 | vlc_mutex_t lock; |
| 91 | vlc_thread_t thread; |
| 92 | |
| 93 | /* */ |
| 94 | int64_t i_id; |
| 95 | |
| 96 | /* Vod server (used by media) */ |
| 97 | int i_vod; |
| 98 | vod_t *p_vod; |
| 99 | |
| 100 | /* Media list */ |
| 101 | int i_media; |
| 102 | vlm_media_sys_t **media; |
| 103 | |
| 104 | /* Schedule list */ |
| 105 | int i_schedule; |
| 106 | vlm_schedule_sys_t **schedule; |
| 107 | }; |
| 108 | |
| 109 | int64_t vlm_Date(void); |
| 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 ); |
| 113 | |
| 114 | #endif |
Note: See TracBrowser for help on using the browser.
