]> git.sesse.net Git - vlc/blobdiff - src/input/vlm_internal.h
Removes trailing spaces. Removes tabs.
[vlc] / src / input / vlm_internal.h
index fdf431dff3ff67d2661d834fa9d642f1515b752e..4896e52c797832af272ab4512343ddfcd3836b03 100644 (file)
 
 #include <vlc_vlm.h>
 
-
-enum
-{
-       VOD_TYPE = 0,
-       BROADCAST_TYPE,
-       SCHEDULE_TYPE,
-};
-
+/* Private */
 typedef struct
 {
     /* instance name */
@@ -42,43 +35,31 @@ typedef struct
     /* "playlist" index */
     int i_index;
 
-    input_item_t   item;
-    input_thread_t *p_input;
-
-} vlm_media_instance_t;
+    vlc_bool_t      b_sout_keep;
 
-struct vlm_media_t
-{
-    vlc_bool_t b_enabled;
-    int      i_type;
-
-    /* name "media" is reserved */
-    char    *psz_name;
-    input_item_t item;
+    input_item_t    item;
+    input_thread_t  *p_input;
+    sout_instance_t *p_sout;
 
-    /* "playlist" */
-    int     i_input;
-    char    **input;
+} vlm_media_instance_sys_t;
 
-    int     i_option;
-    char    **option;
 
-    char    *psz_output;
-
-    /* only for broadcast */
-    vlc_bool_t b_loop;
+typedef struct
+{
+    vlm_media_t cfg;
 
-    /* only for vod */
-    vod_media_t *vod_media;
-    char *psz_vod_output;
-    char *psz_mux;
+    struct
+    {
+        input_item_t item;
+        vod_media_t *p_media;
+    } vod;
 
     /* actual input instances */
-    int                  i_instance;
-    vlm_media_instance_t **instance;
-};
+    int                      i_instance;
+    vlm_media_instance_sys_t **instance;
+} vlm_media_sys_t;
 
-struct vlm_schedule_t
+typedef struct
 {
     /* names "schedule" is reserved */
     char    *psz_name;
@@ -95,7 +76,7 @@ struct vlm_schedule_t
     /* number of times you have to repeat
        i_repeat < 0 : endless repeat     */
     int i_repeat;
-};
+} vlm_schedule_sys_t;
 
 
 struct vlm_t
@@ -104,20 +85,20 @@ struct vlm_t
 
     vlc_mutex_t lock;
 
-    int            i_media;
-    vlm_media_t    **media;
+    /* */
+    int64_t        i_id;
 
+    /* Vod server (used by media) */
     int            i_vod;
-    vod_t          *vod;
+    vod_t          *p_vod;
 
+    /* Media list */
+    int                i_media;
+    vlm_media_sys_t    **media;
+
+    /* Schedule list */
     int            i_schedule;
-    vlm_schedule_t **schedule;
+    vlm_schedule_sys_t **schedule;
 };
 
-vlm_media_t *vlm_MediaNew( vlm_t *, const char *, int );
-void            vlm_MediaDelete( vlm_t *, vlm_media_t *, const char * );
-int                     vlm_MediaSetup( vlm_t *, vlm_media_t *, const char *, const char * );
-int                     vlm_MediaControl( vlm_t *, vlm_media_t *, const char *, const char *, const char * );
-vlm_media_t *vlm_MediaSearch( vlm_t *, const char *);
-
 #endif