Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a779588f
Commit
a779588f
authored
Jun 14, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
events: Add wrappers around vlc_event_manager_init for object casting.
parent
04f19d0c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
include/vlc_events.h
include/vlc_events.h
+6
-1
src/libvlccore.sym
src/libvlccore.sym
+1
-1
src/misc/events.c
src/misc/events.c
+2
-2
No files found.
include/vlc_events.h
View file @
a779588f
...
...
@@ -184,7 +184,12 @@ typedef void ( *vlc_event_callback_t )( const vlc_event_t *, void * );
* which events are sent
* p_obj is here to give us a libvlc instance
*/
VLC_EXPORT
(
int
,
vlc_event_manager_init
,
(
vlc_event_manager_t
*
p_em
,
#define vlc_event_manager_init_with_vlc_object(a,b) \
vlc_event_manager_init( a, b, b )
#define vlc_event_manager_init(a,b,c) \
__vlc_event_manager_init(a, b, VLC_OBJECT(c))
VLC_EXPORT
(
int
,
__vlc_event_manager_init
,
(
vlc_event_manager_t
*
p_em
,
void
*
p_obj
,
vlc_object_t
*
));
/*
...
...
src/libvlccore.sym
View file @
a779588f
...
...
@@ -406,7 +406,7 @@ vlc_error
__vlc_event_attach
vlc_event_detach
vlc_event_manager_fini
vlc_event_manager_init
__
vlc_event_manager_init
vlc_event_manager_register_event_type
vlc_event_send
__vlc_execve
...
...
src/misc/events.c
View file @
a779588f
...
...
@@ -110,7 +110,7 @@ group_contains_listener( vlc_event_listeners_group_t * group,
* for instance).
* p_parent_obj gives a libvlc instance
*/
int
vlc_event_manager_init
(
vlc_event_manager_t
*
p_em
,
void
*
p_obj
,
int
__
vlc_event_manager_init
(
vlc_event_manager_t
*
p_em
,
void
*
p_obj
,
vlc_object_t
*
p_parent_obj
)
{
p_em
->
p_obj
=
p_obj
;
...
...
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