3 * @brief Unmanaged LibVLC events
7 /**********************************************************************
8 * Copyright (C) 2009 RĂ©mi Denis-Courmont. *
9 * This program is free software; you can redistribute and/or modify *
10 * it under the terms of the GNU General Public License as published *
11 * by the Free Software Foundation; version 2 of the license, or (at *
12 * your option) any later version. *
14 * This program is distributed in the hope that it will be useful, *
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
17 * See the GNU General Public License for more details. *
19 * You should have received a copy of the GNU General Public License *
20 * along with this program; if not, you can get it from: *
21 * http://www.gnu.org/copyleft/gpl.html *
22 **********************************************************************/
25 using System.Runtime.InteropServices;
27 namespace VideoLAN.LibVLC
35 * @brief EventType: LibVLC event types
37 internal enum EventType
42 MediaPreparsedChanged,
55 PlayerEncounteredError,
57 PlayerPositionChanged,
58 PlayerSeekableChanged,
59 PlayerPausableChanged,
69 ListViewWillDeleteItem,
72 ListPlayerNextItemSet,
81 [StructLayout (LayoutKind.Sequential)]
82 internal class GenericEvent
84 public EventType type;
87 internal delegate void GenericCallback (GenericEvent e, IntPtr d);
90 [StructLayout (LayoutKind.Sequential)]
91 internal sealed class PlayerPositionEvent : GenericEvent
96 [StructLayout (LayoutKind.Sequential)]
97 internal sealed class PlayerTimeEvent : GenericEvent
102 [StructLayout (LayoutKind.Sequential)]
103 internal sealed class PlayerTitleEvent : GenericEvent
108 [StructLayout (LayoutKind.Sequential)]
109 internal sealed class PlayerSeekableEvent : GenericEvent
114 [StructLayout (LayoutKind.Sequential)]
115 internal sealed class PlayerPausableChangedEvent : GenericEvent