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
b088af5a
Commit
b088af5a
authored
Feb 07, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
events: remove leading underscores
parent
3a29031f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
18 deletions
+20
-18
include/vlc_events.h
include/vlc_events.h
+9
-9
src/libvlccore.sym
src/libvlccore.sym
+2
-2
src/misc/events.c
src/misc/events.c
+9
-7
No files found.
include/vlc_events.h
View file @
b088af5a
...
@@ -221,10 +221,10 @@ typedef void ( *vlc_event_callback_t )( const vlc_event_t *, void * );
...
@@ -221,10 +221,10 @@ typedef void ( *vlc_event_callback_t )( const vlc_event_t *, void * );
#define vlc_event_manager_init_with_vlc_object(a,b) \
#define vlc_event_manager_init_with_vlc_object(a,b) \
vlc_event_manager_init( a, b, b )
vlc_event_manager_init( a, b, b )
#define vlc_event_manager_init(a,b,c) \
VLC_EXPORT
(
int
,
vlc_event_manager_init
,
(
vlc_event_manager_t
*
p_em
,
__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
*
));
void
*
p_obj
,
vlc_object_t
*
));
#define vlc_event_manager_init(a,b,c) \
vlc_event_manager_init(a, b, VLC_OBJECT(c))
/*
/*
* Destroy
* Destroy
...
@@ -246,12 +246,12 @@ VLC_EXPORT(void, vlc_event_send, ( vlc_event_manager_t * p_em,
...
@@ -246,12 +246,12 @@ VLC_EXPORT(void, vlc_event_send, ( vlc_event_manager_t * p_em,
/*
/*
* Add a callback for an event.
* Add a callback for an event.
*/
*/
#define vlc_event_attach(a, b, c, d) __vlc_event_attach(a, b, c, d, #c)
VLC_EXPORT
(
int
,
vlc_event_attach
,
(
vlc_event_manager_t
*
p_event_manager
,
VLC_EXPORT
(
int
,
__vlc_event_attach
,
(
vlc_event_manager_t
*
p_event_manager
,
vlc_event_type_t
event_type
,
vlc_event_type_t
event_type
,
vlc_event_callback_t
pf_callback
,
vlc_event_callback_t
pf_callback
,
void
*
p_user_data
,
void
*
p_user_data
,
const
char
*
psz_debug_name
));
const
char
*
psz_debug_name
));
#define vlc_event_attach(a, b, c, d) vlc_event_attach(a, b, c, d, #c)
/*
/*
* Remove a callback for an event.
* Remove a callback for an event.
...
...
src/libvlccore.sym
View file @
b088af5a
...
@@ -485,10 +485,10 @@ vlc_sem_wait
...
@@ -485,10 +485,10 @@ vlc_sem_wait
vlc_control_cancel
vlc_control_cancel
vlc_CPU
vlc_CPU
vlc_error
vlc_error
__
vlc_event_attach
vlc_event_attach
vlc_event_detach
vlc_event_detach
vlc_event_manager_fini
vlc_event_manager_fini
__
vlc_event_manager_init
vlc_event_manager_init
vlc_event_manager_register_event_type
vlc_event_manager_register_event_type
vlc_event_send
vlc_event_send
__vlc_execve
__vlc_execve
...
...
src/misc/events.c
View file @
b088af5a
...
@@ -114,6 +114,7 @@ group_contains_listener( vlc_event_listeners_group_t * group,
...
@@ -114,6 +114,7 @@ group_contains_listener( vlc_event_listeners_group_t * group,
*
*
*****************************************************************************/
*****************************************************************************/
#undef vlc_event_manager_init
/**
/**
* Initialize event manager object
* Initialize event manager object
* p_obj is the object that contains the event manager. But not
* p_obj is the object that contains the event manager. But not
...
@@ -121,7 +122,7 @@ group_contains_listener( vlc_event_listeners_group_t * group,
...
@@ -121,7 +122,7 @@ group_contains_listener( vlc_event_listeners_group_t * group,
* for instance).
* for instance).
* p_parent_obj gives a libvlc 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
)
vlc_object_t
*
p_parent_obj
)
{
{
p_em
->
p_obj
=
p_obj
;
p_em
->
p_obj
=
p_obj
;
...
@@ -278,10 +279,11 @@ void vlc_event_send( vlc_event_manager_t * p_em,
...
@@ -278,10 +279,11 @@ void vlc_event_send( vlc_event_manager_t * p_em,
free
(
array_of_cached_listeners
);
free
(
array_of_cached_listeners
);
}
}
#undef vlc_event_attach
/**
/**
* Add a callback for an event.
* Add a callback for an event.
*/
*/
int
__
vlc_event_attach
(
vlc_event_manager_t
*
p_em
,
int
vlc_event_attach
(
vlc_event_manager_t
*
p_em
,
vlc_event_type_t
event_type
,
vlc_event_type_t
event_type
,
vlc_event_callback_t
pf_callback
,
vlc_event_callback_t
pf_callback
,
void
*
p_user_data
,
void
*
p_user_data
,
...
...
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