Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Martin Finkel
LibVLCSharp
Commits
b0b9e674
Commit
b0b9e674
authored
Feb 05, 2019
by
Martin Finkel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renaming: Internal to Native
parent
1e0c06a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
LibVLCSharp/Shared/Events/EventManager.cs
LibVLCSharp/Shared/Events/EventManager.cs
+3
-3
No files found.
LibVLCSharp/Shared/Events/EventManager.cs
View file @
b0b9e674
...
...
@@ -8,7 +8,7 @@ namespace LibVLCSharp.Shared
{
internal
abstract
class
EventManager
{
internal
readonly
struct
Internal
internal
readonly
struct
Native
{
[
DllImport
(
Constants
.
LibraryName
,
CallingConvention
=
CallingConvention
.
Cdecl
,
EntryPoint
=
"libvlc_event_attach"
)]
internal
static
extern
int
LibVLCEventAttach
(
IntPtr
eventManager
,
EventType
eventType
,
EventCallback
eventCallback
,
...
...
@@ -33,7 +33,7 @@ namespace LibVLCSharp.Shared
private
void
AttachNativeEvent
(
EventType
eventType
,
EventCallback
eventCallback
)
{
_callbacks
.
Add
(
eventCallback
);
if
(
Internal
.
LibVLCEventAttach
(
NativeReference
,
eventType
,
eventCallback
,
IntPtr
.
Zero
)
!=
0
)
if
(
Native
.
LibVLCEventAttach
(
NativeReference
,
eventType
,
eventCallback
,
IntPtr
.
Zero
)
!=
0
)
{
_callbacks
.
Remove
(
eventCallback
);
throw
new
VLCException
(
$"Could not attach event
{
eventType
}
"
);
...
...
@@ -44,7 +44,7 @@ namespace LibVLCSharp.Shared
{
_callbacks
.
Remove
(
eventCallback
);
Internal
.
LibVLCEventDetach
(
NativeReference
,
eventType
,
eventCallback
,
IntPtr
.
Zero
);
Native
.
LibVLCEventDetach
(
NativeReference
,
eventType
,
eventCallback
,
IntPtr
.
Zero
);
}
protected
void
Attach
(
EventType
eventType
,
ref
int
registrationCount
,
Action
managedSubscribe
,
Func
<
EventCallback
>
setCallback
)
...
...
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