/*****************************************************************************
* vlm.c: VLM interface plugin
*****************************************************************************
- * Copyright (C) 2000, 2001 VideoLAN
+ * Copyright (C) 2000, 2001 the VideoLAN team
* $Id$
*
* Authors: Simon Latapie <garf@videolan.org>
psz_temp = FindEndCommand( psz_cmd );
- if( psz_temp == NULL ) goto error;
+ if( psz_temp == NULL )
+ {
+ p_message = vlm_MessageNew( "Incomplete command", psz_cmd );
+ goto error;
+ }
i_temp = psz_temp - psz_cmd;
time.tm_year = 0; /* year */
time.tm_wday = 0; /* day of the week */
time.tm_yday = 0; /* day in the year */
- time.tm_isdst = 0; /* daylight saving time */
+ time.tm_isdst = -1; /* daylight saving time */
/* date should be year/month/day-hour:minutes:seconds */
p = strchr( psz_value, '-' );
time.tm_year = 0; /* year */
time.tm_wday = 0; /* day of the week */
time.tm_yday = 0; /* day in the year */
- time.tm_isdst = 0; /* daylight saving time */
+ time.tm_isdst = -1; /* daylight saving time */
/* date should be year/month/day-hour:minutes:seconds */
p = strchr( psz_value, '-' );
int i, j;
vlm_message_t *msg;
vlm_message_t *msg_child;
+ int i_vod = 0, i_broadcast = 0;
+ char *psz_count;
+
+ for( i = 0; i < vlm->i_media; i++ )
+ {
+ if( vlm->media[i]->i_type == VOD_TYPE )
+ i_vod ++;
+ else
+ i_broadcast ++;
+ }
+
+ asprintf( &psz_count, "( %d broadcast - %d vod )", i_broadcast, i_vod);
msg = vlm_MessageNew( "show", NULL );
- msg_child = vlm_MessageAdd( msg, vlm_MessageNew( "media", NULL ) );
+ msg_child = vlm_MessageAdd( msg, vlm_MessageNew( "media", psz_count ) );
+ free( psz_count );
for( i = 0; i < vlm->i_media; i++ )
{
MessageAddChild( "inputdel (input_name)|all" );
MessageAddChild( "inputdeln input_number" );
MessageAddChild( "output (output_name)" );
+ MessageAddChild( "option (option_name)[=value]" );
MessageAddChild( "enabled|disabled" );
MessageAddChild( "loop|unloop (broadcast only)" );
MessageAddChild( "mux (mux_name)" );