]> git.sesse.net Git - vlc/blobdiff - src/input/input_interface.h
Correctly setup the clock state when creating a new program.
[vlc] / src / input / input_interface.h
index c134b40f577bf0964f43a55a58c3480b0515680f..b7cde94803ffc461e2869f64b09e2c5f7d4323c6 100644 (file)
 void input_item_SetPreparsed( input_item_t *p_i, bool b_preparsed );
 void input_item_SetArtNotFound( input_item_t *p_i, bool b_not_found );
 void input_item_SetArtFetched( input_item_t *p_i, bool b_art_fetched );
+void input_item_SetEpg( input_item_t *p_item,
+                        const char *psz_epg, const vlc_epg_t *p_epg );
+
+int input_Preparse( vlc_object_t *, input_item_t * );
 
 /* misc/stats.c
  * FIXME it should NOT be defined here or not coded in misc/stats.c */
 input_stats_t *stats_NewInputStats( input_thread_t *p_input );
 
 /**
- * This defines an opaque input ressource handler.
+ * This function releases an input_resource_t and all associated resources.
+ */
+void input_resource_Delete( input_resource_t * );
+
+/**
+ * This function deletes the current sout in the resources.
  */
-typedef struct input_ressource_t input_ressource_t;
+void input_resource_TerminateSout( input_resource_t *p_resource );
 
 /**
- * This function releases an input_ressource_t and all associated ressources.
+ * This function deletes the current vout in the resources.
  */
-void input_ressource_Delete( input_ressource_t * );
+void input_resource_TerminateVout( input_resource_t *p_resource );
 
 /**
- * This function return the current sout (if any) from the ressource
- * and stop tracking it.
+ * This function return true if there is at least one vout in the resources.
  *
- * You are then responsible of its release.
+ * It can only be called on detached resources.
  */
-sout_instance_t *input_ressource_ExtractSout( input_ressource_t *p_ressource );
+bool input_resource_HasVout( input_resource_t *p_resource );
 
 /* input.c */
-#define input_CreateThreadExtended(a,b,c,d) __input_CreateThreadExtended(VLC_OBJECT(a),b,c,d)
-input_thread_t *__input_CreateThreadExtended ( vlc_object_t *, input_item_t *, const char *, sout_instance_t * );
 
 /**
- * This function detaches ressources from a dead input.
+ * This function detaches resources from a dead input.
  *
  * It MUST be called on a dead input (p_input->b_dead true) otherwise
  * it will assert.
  * It does not support concurrent calls.
  */
-input_ressource_t *input_DetachRessource( input_thread_t * );
+input_resource_t *input_DetachResource( input_thread_t * );
 
 /* */
 typedef enum