};
#define ITEM_TYPE_UNKNOWN 0
-#define ITEM_TYPE_FILE 1
-#define ITEM_TYPE_DIRECTORY 2
-#define ITEM_TYPE_DISC 3
-#define ITEM_TYPE_CARD 4
-#define ITEM_TYPE_NET 5
-#define ITEM_TYPE_PLAYLIST 6
+#define ITEM_TYPE_AFILE 1
+#define ITEM_TYPE_VFILE 2
+#define ITEM_TYPE_DIRECTORY 3
+#define ITEM_TYPE_DISC 4
+#define ITEM_TYPE_CDDA 5
+#define ITEM_TYPE_CARD 6
+#define ITEM_TYPE_NET 7
+#define ITEM_TYPE_PLAYLIST 8
+#define ITEM_TYPE_NODE 9
static inline void vlc_input_item_Init( vlc_object_t *p_o, input_item_t *p_i )
{
vlc_mutex_destroy( &p_i->lock );
}
+VLC_EXPORT( char *, vlc_input_item_GetInfo, ( input_item_t *p_i, const char *psz_cat,const char *psz_name ) );
+VLC_EXPORT(int, vlc_input_item_AddInfo, ( input_item_t *p_i, const char *psz_cat, const char *psz_name, const char *psz_format, ... ) );
+
/*****************************************************************************
* Seek point: (generalisation of chapters)
*****************************************************************************/
int64_t i_byte_offset;
int64_t i_time_offset;
char *psz_name;
+ int i_level;
};
static inline seekpoint_t *vlc_seekpoint_New( void )
{
seekpoint_t *point = (seekpoint_t*)malloc( sizeof( seekpoint_t ) );
point->i_byte_offset =
- point->i_time_offset = 0;
+ point->i_time_offset = -1;
+ point->i_level = 0;
point->psz_name = NULL;
return point;
}
*****************************************************************************/
#define input_CreateThread(a,b) __input_CreateThread(VLC_OBJECT(a),b)
VLC_EXPORT( input_thread_t *, __input_CreateThread, ( vlc_object_t *, input_item_t * ) );
+#define input_Preparse(a,b) __input_Preparse(VLC_OBJECT(a),b)
+VLC_EXPORT( int, __input_Preparse, ( vlc_object_t *, input_item_t * ) );
VLC_EXPORT( void, input_StopThread, ( input_thread_t * ) );
VLC_EXPORT( void, input_DestroyThread, ( input_thread_t * ) );
INPUT_GET_STATE, /* arg1= int * res= */
INPUT_SET_STATE, /* arg1= int res=can fail */
- /* input variable "audio-delay" and "spu-delay" */
+ /* input variable "audio-delay" and "sub-delay" */
INPUT_GET_AUDIO_DELAY, /* arg1 = int* res=can fail */
INPUT_SET_AUDIO_DELAY, /* arg1 = int res=can fail */
INPUT_GET_SPU_DELAY, /* arg1 = int* res=can fail */
INPUT_SET_SPU_DELAY, /* arg1 = int res=can fail */
/* Meta datas */
- INPUT_ADD_INFO, /* arg1= char * arg2= char * arg3=... res=can fail */
- INPUT_GET_INFO, /* arg1= char * arg2= char * arg3= char ** res=can fail*/
- INPUT_SET_NAME, /* arg1= char * res=can fail */
+ INPUT_ADD_INFO, /* arg1= char* arg2= char* arg3=... res=can fail */
+ INPUT_GET_INFO, /* arg1= char* arg2= char* arg3= char** res=can fail */
+ INPUT_DEL_INFO, /* arg1= char* arg2= char* res=can fail */
+ INPUT_SET_NAME, /* arg1= char* res=can fail */
/* Input config options */
INPUT_ADD_OPTION, /* arg1= char * arg2= char * res=can fail*/