+ /* Owner properties */
+ int (*pf_media_control) ( void *, vod_media_t *, const char *, int, va_list );
+ void *p_data;
+};
+
+static inline int vod_MediaControl( vod_t *p_vod, vod_media_t *p_media,
+ const char *psz_id, int i_query, ... )
+{
+ va_list args;
+ int i_result;
+
+ if( !p_vod->pf_media_control ) return VLC_EGENERIC;
+
+ va_start( args, i_query );
+ i_result = p_vod->pf_media_control( p_vod->p_data, p_media, psz_id,
+ i_query, args );
+ va_end( args );
+ return i_result;
+}
+
+enum vod_query_e
+{
+ VOD_MEDIA_PLAY, /* arg1= char * res= */
+ VOD_MEDIA_PAUSE, /* arg1= res= */
+ VOD_MEDIA_STOP, /* arg1= res=can fail */
+ VOD_MEDIA_SEEK, /* arg1= double res= */
+ VOD_MEDIA_REWIND, /* arg1= double res= */
+ VOD_MEDIA_FORWARD, /* arg1= double res= */