Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
c05739b1
Commit
c05739b1
authored
Feb 23, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move events to a separate file
parent
d14f8d43
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
121 additions
and
54 deletions
+121
-54
bindings/cil/src/Makefile.am
bindings/cil/src/Makefile.am
+1
-0
bindings/cil/src/event.cs
bindings/cil/src/event.cs
+120
-0
bindings/cil/src/libvlc.cs
bindings/cil/src/libvlc.cs
+0
-54
No files found.
bindings/cil/src/Makefile.am
View file @
c05739b1
...
...
@@ -6,6 +6,7 @@ pkglib_SCRIPTS = VideoLAN.LibVLC.dll
SOURCES_dll
=
\
ustring.cs
\
exception.cs
\
event.cs
\
marshal.cs
\
instance.cs
\
media.cs
\
...
...
bindings/cil/src/event.cs
0 → 100644
View file @
c05739b1
/**
* @file event.cs
* @brief Unmanaged LibVLC events
* @ingroup Internals
*/
/**********************************************************************
* Copyright (C) 2009 Rémi Denis-Courmont. *
* This program is free software; you can redistribute and/or modify *
* it under the terms of the GNU General Public License as published *
* by the Free Software Foundation; version 2 of the license, or (at *
* your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, you can get it from: *
* http://www.gnu.org/copyleft/gpl.html *
**********************************************************************/
using
System
;
using
System.Runtime.InteropServices
;
namespace
VideoLAN.LibVLC
{
/**
* @ingroup Internals
* @{
*/
/**
* @brief EventType: LibVLC event types
*/
internal
enum
EventType
{
MediaMetaChanged
,
MediaSubItemAdded
,
MediaDurationChanged
,
MediaPreparsedChanged
,
MediaFreed
,
MediaStateChanged
,
PlayerNothingSpecial
,
PlayerOpening
,
PlayerBuffering
,
PlayerPlaying
,
PlayerPaused
,
PlayerStopped
,
PlayerForward
,
PlayerBackward
,
PlayerEndReached
,
PlayerEncounteredError
,
PlayerTimeChanged
,
PlayerPositionChanged
,
PlayerSeekableChanged
,
PlayerPausableChanged
,
ListItemAdded
,
ListWillAddItem
,
ListItemDeleted
,
ListWillDeleteItem
,
ListViewItemAdded
,
ListViewWillAddItem
,
ListViewItemDeleted
,
ListViewWillDeleteItem
,
ListPlayerPlayed
,
ListPlayerNextItemSet
,
ListPlayerStopped
,
DiscovererStarted
,
DiscovererEnded
,
PlayerTitleChanged
,
};
[
StructLayout
(
LayoutKind
.
Sequential
)]
internal
class
GenericEvent
{
public
EventType
type
;
public
IntPtr
obj
;
};
internal
delegate
void
GenericCallback
(
GenericEvent
e
,
IntPtr
d
);
/* Player events */
[
StructLayout
(
LayoutKind
.
Sequential
)]
internal
sealed
class
PlayerPositionEvent
:
GenericEvent
{
float
position
;
};
[
StructLayout
(
LayoutKind
.
Sequential
)]
internal
sealed
class
PlayerTimeEvent
:
GenericEvent
{
long
time
;
};
[
StructLayout
(
LayoutKind
.
Sequential
)]
internal
sealed
class
PlayerTitleEvent
:
GenericEvent
{
int
title
;
};
[
StructLayout
(
LayoutKind
.
Sequential
)]
internal
sealed
class
PlayerSeekableEvent
:
GenericEvent
{
long
seekable
;
};
[
StructLayout
(
LayoutKind
.
Sequential
)]
internal
sealed
class
PlayerPausableChangedEvent
:
GenericEvent
{
long
pausable
;
};
/** @} */
};
\ No newline at end of file
bindings/cil/src/libvlc.cs
View file @
c05739b1
...
...
@@ -359,58 +359,4 @@ namespace VideoLAN.LibVLC
/* libvlc_event_type_name */
};
/**
* @brief EventCallback: LibVLC event handler
* @ingroup Internals
*/
internal
delegate
void
EventCallback
(
IntPtr
ev
,
IntPtr
data
);
/**
* @brief EventType: LibVLC event types
* @ingroup Internals
*/
internal
enum
EventType
{
MediaMetaChanged
,
MediaSubItemAdded
,
MediaDurationChanged
,
MediaPreparsedChanged
,
MediaFreed
,
MediaStateChanged
,
PlayerNothingSpecial
,
PlayerOpening
,
PlayerBuffering
,
PlayerPlaying
,
PlayerPaused
,
PlayerStopped
,
PlayerForward
,
PlayerBackward
,
PlayerEndReached
,
PlayerEncounteredError
,
PlayerTimeChanged
,
PlayerPositionChanged
,
PlayerSeekableChanged
,
PlayerPausableChanged
,
ListItemAdded
,
ListWillAddItem
,
ListItemDeleted
,
ListWillDeleteItem
,
ListViewItemAdded
,
ListViewWillAddItem
,
ListViewItemDeleted
,
ListViewWillDeleteItem
,
ListPlayerPlayed
,
ListPlayerNextItemSet
,
ListPlayerStopped
,
DiscovererStarted
,
DiscovererEnded
,
PlayerTitleChanged
,
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment