X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_vlm.h;h=cb46dbc33d7a73a3e63a5c7140200a40bc955304;hb=3d1fee81e28302f6feca62823ff1d1661bfa2396;hp=0f16f4d6aa3d386ba98a7f59bdfb0c7383884df1;hpb=9312c3dc93bc67651ad56f5e49fe5207dd8edada;p=vlc diff --git a/include/vlc_vlm.h b/include/vlc_vlm.h index 0f16f4d6aa..cb46dbc33d 100644 --- a/include/vlc_vlm.h +++ b/include/vlc_vlm.h @@ -102,13 +102,16 @@ enum vlm_event_type_e /* */ VLM_EVENT_MEDIA_INSTANCE_STARTED = 0x200, VLM_EVENT_MEDIA_INSTANCE_STOPPED, + VLM_EVENT_MEDIA_INSTANCE_STATE, }; typedef struct { - int i_type; /* a vlm_event_type_e value */ - int64_t id; /* Media ID */ - const char *psz_name; /* Media name */ + int i_type; /* a vlm_event_type_e value */ + int64_t id; /* Media ID */ + const char *psz_name; /* Media name */ + const char *psz_instance_name; /* Instance name or NULL */ + input_state_e input_state; /* Input instance event type */ } vlm_event_t; /** VLM control query */ @@ -181,8 +184,8 @@ struct vlm_message_t extern "C" { #endif -#define vlm_New( a ) __vlm_New( VLC_OBJECT(a) ) -VLC_EXPORT( vlm_t *, __vlm_New, ( vlc_object_t * ) ); +VLC_EXPORT( vlm_t *, vlm_New, ( vlc_object_t * ) ); +#define vlm_New( a ) vlm_New( VLC_OBJECT(a) ) VLC_EXPORT( void, vlm_Delete, ( vlm_t * ) ); VLC_EXPORT( int, vlm_ExecuteCommand, ( vlm_t *, const char *, vlm_message_t ** ) ); VLC_EXPORT( int, vlm_Control, ( vlm_t *p_vlm, int i_query, ... ) );