summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorMinh Ngo <nlminhtl@gmail.com>2013-08-10 11:26:14 +0300
committerMichael Meeks <michael.meeks@suse.com>2013-08-21 10:54:52 +0100
commit4ed6ea7f2c529173399e9f80469fca41eba6195d (patch)
tree63e7d0cdf3b175211beb992f55880330d8935063 /avmedia
parentc3de00df77fbab130526a49a2311da66181c5364 (diff)
Includes for building.
Change-Id: I55f9ea19f0be650bcf9dd63cd7a6f86a01679b62
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/vlc/wrapper/EventManager.cxx76
1 files changed, 4 insertions, 72 deletions
diff --git a/avmedia/source/vlc/wrapper/EventManager.cxx b/avmedia/source/vlc/wrapper/EventManager.cxx
index 6ae5bc990196..bafd4a99fd16 100644
--- a/avmedia/source/vlc/wrapper/EventManager.cxx
+++ b/avmedia/source/vlc/wrapper/EventManager.cxx
@@ -1,84 +1,16 @@
+#include <vlc/libvlc.h>
+#include <vlc/libvlc_media.h>
+#include <vlc/libvlc_events.h>
+
#include "EventManager.hxx"
#include "SymbolLoader.hxx"
-typedef struct libvlc_event_t
-{
- int type;
- void *p_obj;
- union
- {
- struct
- {
- void *p;
- } media_meta_changed;
- } u;
-} libvlc_event_t;
-
-typedef int libvlc_event_type_t;
typedef void ( *libvlc_callback_t ) ( const struct libvlc_event_t *, void * );
namespace VLC
{
namespace
{
- enum libvlc_event_e {
- libvlc_MediaMetaChanged=0,
- libvlc_MediaSubItemAdded,
- libvlc_MediaDurationChanged,
- libvlc_MediaParsedChanged,
- libvlc_MediaFreed,
- libvlc_MediaStateChanged,
-
- libvlc_MediaPlayerMediaChanged=0x100,
- libvlc_MediaPlayerNothingSpecial,
- libvlc_MediaPlayerOpening,
- libvlc_MediaPlayerBuffering,
- libvlc_MediaPlayerPlaying,
- libvlc_MediaPlayerPaused,
- libvlc_MediaPlayerStopped,
- libvlc_MediaPlayerForward,
- libvlc_MediaPlayerBackward,
- libvlc_MediaPlayerEndReached,
- libvlc_MediaPlayerEncounteredError,
- libvlc_MediaPlayerTimeChanged,
- libvlc_MediaPlayerPositionChanged,
- libvlc_MediaPlayerSeekableChanged,
- libvlc_MediaPlayerPausableChanged,
- libvlc_MediaPlayerTitleChanged,
- libvlc_MediaPlayerSnapshotTaken,
- libvlc_MediaPlayerLengthChanged,
- libvlc_MediaPlayerVout,
-
- libvlc_MediaListItemAdded=0x200,
- libvlc_MediaListWillAddItem,
- libvlc_MediaListItemDeleted,
- libvlc_MediaListWillDeleteItem,
-
- libvlc_MediaListViewItemAdded=0x300,
- libvlc_MediaListViewWillAddItem,
- libvlc_MediaListViewItemDeleted,
- libvlc_MediaListViewWillDeleteItem,
-
- libvlc_MediaListPlayerPlayed=0x400,
- libvlc_MediaListPlayerNextItemSet,
- libvlc_MediaListPlayerStopped,
-
- libvlc_MediaDiscovererStarted=0x500,
- libvlc_MediaDiscovererEnded,
-
- libvlc_VlmMediaAdded=0x600,
- libvlc_VlmMediaRemoved,
- libvlc_VlmMediaChanged,
- libvlc_VlmMediaInstanceStarted,
- libvlc_VlmMediaInstanceStopped,
- libvlc_VlmMediaInstanceStatusInit,
- libvlc_VlmMediaInstanceStatusOpening,
- libvlc_VlmMediaInstanceStatusPlaying,
- libvlc_VlmMediaInstanceStatusPause,
- libvlc_VlmMediaInstanceStatusEnd,
- libvlc_VlmMediaInstanceStatusError
- };
-
libvlc_event_manager_t* ( *libvlc_media_player_event_manager ) ( libvlc_media_player_t *p_mi );
int ( *libvlc_event_attach ) ( libvlc_event_manager_t *p_event_manager,
libvlc_event_type_t i_event_type,