Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
1479b918
Commit
1479b918
authored
Aug 17, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgotten files from previous commit.
parent
5f9f9ea4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
include/vlc_events.h
include/vlc_events.h
+7
-3
include/vlc_input.h
include/vlc_input.h
+1
-1
No files found.
include/vlc_events.h
View file @
1479b918
...
...
@@ -103,13 +103,15 @@ struct vlc_event_listeners_group_t;
typedef
struct
vlc_event_manager_t
{
void
*
p_obj
;
vlc_mutex_t
object_lock
;
DECL_ARRAY
(
struct
vlc_event_listeners_group_t
*
)
listeners_groups
;
}
vlc_event_manager_t
;
/* List of event */
typedef
enum
vlc_event_type_t
{
/* Input item events */
vlc_InputItemMetaChanged
,
vlc_InputItemSubItemAdded
vlc_InputItemSubItemAdded
,
}
vlc_event_type_t
;
/* Event definition */
...
...
@@ -119,6 +121,7 @@ typedef struct vlc_event_t
void
*
p_obj
;
/* Sender object, automatically filled by vlc_event_send() */
union
vlc_event_type_specific
{
/* Input item events */
struct
vlc_input_item_meta_changed
{
vlc_meta_type_t
meta_type
;
...
...
@@ -140,9 +143,10 @@ typedef void ( *vlc_event_callback_t )( const vlc_event_t *, void * );
/*
* p_obj points to the object that owns the event manager, and from
* 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
,
void
*
p_obj
));
void
*
p_obj
,
vlc_object_t
*
));
/*
* Destroy
...
...
@@ -175,6 +179,6 @@ VLC_EXPORT(int, vlc_event_attach, ( vlc_event_manager_t * p_event_manager,
VLC_EXPORT
(
int
,
vlc_event_detach
,
(
vlc_event_manager_t
*
p_event_manager
,
vlc_event_type_t
event_type
,
vlc_event_callback_t
pf_callback
,
void
*
p_user_data
));
void
*
p_user_data
));
#endif
/* VLC_EVENTS_H */
include/vlc_input.h
View file @
1479b918
...
...
@@ -114,7 +114,7 @@ static inline void input_ItemInit( vlc_object_t *p_o, input_item_t *p_i )
p_i
->
p_meta
=
NULL
;
vlc_mutex_init
(
p_o
,
&
p_i
->
lock
);
vlc_event_manager_init
(
&
p_i
->
event_manager
,
p_i
);
vlc_event_manager_init
(
&
p_i
->
event_manager
,
p_i
,
p_o
);
vlc_event_manager_register_event_type
(
&
p_i
->
event_manager
,
vlc_InputItemMetaChanged
);
vlc_event_manager_register_event_type
(
&
p_i
->
event_manager
,
...
...
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