* @{
*/
-typedef enum libvlc_event_type_t {
+#ifdef __cplusplus
+enum libvlc_event_type_e {
+#else
+enum libvlc_event_type_t {
+#endif
/* Append new event types at the end.
* Do not remove, insert or re-order any entry. */
libvlc_MediaMetaChanged,
libvlc_MediaPlayerTitleChanged,
libvlc_MediaPlayerSnapshotTaken,
libvlc_MediaPlayerLengthChanged,
+
+ libvlc_VlmMediaAdded,
+ libvlc_VlmMediaRemoved,
+ libvlc_VlmMediaChanged,
+ libvlc_VlmMediaInstanceStarted,
+ libvlc_VlmMediaInstanceStopped,
/* New event types HERE */
-} libvlc_event_type_t;
+};
/**
* An Event
* \param u Event dependent content
*/
-typedef struct libvlc_event_t
+struct libvlc_event_t
{
libvlc_event_type_t type;
void * p_obj;
{
libvlc_time_t new_length;
} media_player_length_changed;
- } u;
-} libvlc_event_t;
-
-/**
- * Event manager that belongs to a libvlc object, and from whom events can
- * be received.
- */
-typedef struct libvlc_event_manager_t libvlc_event_manager_t;
+ /* VLM media */
+ struct
+ {
+ const char * psz_media_name;
+ } vlm_media_event;
-/**
- * Callback function notification
- * \param p_event the event triggering the callback
- */
+ } u;
+};
-typedef void ( *libvlc_callback_t )( const libvlc_event_t *, void * );
/**@} */