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
632cfd1d
Commit
632cfd1d
authored
Feb 13, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control: Implement and export media_list_view_children_for_item()
parent
6368b52d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
0 deletions
+35
-0
include/vlc/libvlc.h
include/vlc/libvlc.h
+5
-0
src/control/flat_media_list_view.c
src/control/flat_media_list_view.c
+2
-0
src/control/hierarchical_media_list_view.c
src/control/hierarchical_media_list_view.c
+1
-0
src/control/hierarchical_node_media_list_view.c
src/control/hierarchical_node_media_list_view.c
+1
-0
src/control/libvlc_internal.h
src/control/libvlc_internal.h
+3
-0
src/control/media_list_view.c
src/control/media_list_view.c
+23
-0
No files found.
include/vlc/libvlc.h
View file @
632cfd1d
...
...
@@ -616,6 +616,11 @@ VLC_PUBLIC_API libvlc_media_list_view_t *
int
index
,
libvlc_exception_t
*
p_e
);
VLC_PUBLIC_API
libvlc_media_list_view_t
*
libvlc_media_list_view_children_for_item
(
libvlc_media_list_view_t
*
p_mlv
,
libvlc_media_descriptor_t
*
p_md
,
libvlc_exception_t
*
p_e
);
VLC_PUBLIC_API
int
libvlc_media_list_view_index_of_item
(
libvlc_media_list_view_t
*
p_mlv
,
...
...
src/control/flat_media_list_view.c
View file @
632cfd1d
...
...
@@ -113,6 +113,7 @@ flat_media_list_view_children_at_index( libvlc_media_list_view_t * p_mlv,
int
index
,
libvlc_exception_t
*
p_e
)
{
(
void
)
p_mlv
;
(
void
)
index
;
(
void
)
p_e
;
return
NULL
;
}
...
...
@@ -174,6 +175,7 @@ libvlc_media_list_flat_view( libvlc_media_list_t * p_mlist,
flat_media_list_view_count
,
flat_media_list_view_item_at_index
,
flat_media_list_view_children_at_index
,
libvlc_media_list_flat_view
,
flat_media_list_view_release
,
p_this_view_data
,
p_e
);
...
...
src/control/hierarchical_media_list_view.c
View file @
632cfd1d
...
...
@@ -168,6 +168,7 @@ libvlc_media_list_hierarchical_view( libvlc_media_list_t * p_mlist,
hierarch_media_list_view_count
,
hierarch_media_list_view_item_at_index
,
hierarch_media_list_view_children_at_index
,
libvlc_media_list_hierarchical_view
,
hierarch_media_list_view_release
,
NULL
,
p_e
);
...
...
src/control/hierarchical_node_media_list_view.c
View file @
632cfd1d
...
...
@@ -287,6 +287,7 @@ libvlc_media_list_hierarchical_node_view( libvlc_media_list_t * p_mlist,
hierarch_node_media_list_view_count
,
hierarch_node_media_list_view_item_at_index
,
hierarch_node_media_list_view_children_at_index
,
libvlc_media_list_hierarchical_node_view
,
hierarch_node_media_list_view_release
,
NULL
,
p_e
);
...
...
src/control/libvlc_internal.h
View file @
632cfd1d
...
...
@@ -124,6 +124,7 @@ struct libvlc_media_list_t
vlc_bool_t
b_read_only
;
};
typedef
libvlc_media_list_view_t
*
(
*
libvlc_media_list_view_constructor_func_t
)(
libvlc_media_list_t
*
p_mlist
,
libvlc_exception_t
*
p_e
)
;
typedef
void
(
*
libvlc_media_list_view_release_func_t
)(
libvlc_media_list_view_t
*
p_mlv
)
;
typedef
int
(
*
libvlc_media_list_view_count_func_t
)(
libvlc_media_list_view_t
*
p_mlv
,
...
...
@@ -158,6 +159,7 @@ struct libvlc_media_list_view_t
libvlc_media_list_view_item_at_index_func_t
pf_item_at_index
;
libvlc_media_list_view_children_at_index_func_t
pf_children_at_index
;
libvlc_media_list_view_constructor_func_t
pf_constructor
;
libvlc_media_list_view_release_func_t
pf_release
;
/* Notification callback */
...
...
@@ -326,6 +328,7 @@ VLC_EXPORT ( libvlc_media_list_view_t *, libvlc_media_list_view_new,
libvlc_media_list_view_count_func_t
pf_count
,
libvlc_media_list_view_item_at_index_func_t
pf_item_at_index
,
libvlc_media_list_view_children_at_index_func_t
pf_children_at_index
,
libvlc_media_list_view_constructor_func_t
pf_constructor
,
libvlc_media_list_view_release_func_t
pf_release
,
void
*
this_view_data
,
libvlc_exception_t
*
p_e
)
);
...
...
src/control/media_list_view.c
View file @
632cfd1d
...
...
@@ -294,6 +294,7 @@ libvlc_media_list_view_new( libvlc_media_list_t * p_mlist,
libvlc_media_list_view_count_func_t
pf_count
,
libvlc_media_list_view_item_at_index_func_t
pf_item_at_index
,
libvlc_media_list_view_children_at_index_func_t
pf_children_at_index
,
libvlc_media_list_view_constructor_func_t
pf_constructor
,
libvlc_media_list_view_release_func_t
pf_release
,
void
*
this_view_data
,
libvlc_exception_t
*
p_e
)
...
...
@@ -322,6 +323,7 @@ libvlc_media_list_view_new( libvlc_media_list_t * p_mlist,
p_mlv
->
pf_count
=
pf_count
;
p_mlv
->
pf_item_at_index
=
pf_item_at_index
;
p_mlv
->
pf_children_at_index
=
pf_children_at_index
;
p_mlv
->
pf_constructor
=
pf_constructor
;
p_mlv
->
pf_release
=
pf_release
;
p_mlv
->
p_this_view_data
=
this_view_data
;
...
...
@@ -424,6 +426,27 @@ libvlc_media_list_view_parent_media_list( libvlc_media_list_view_t * p_mlv,
return
p_mlist
;
}
/**************************************************************************
* libvlc_media_list_view_children_for_item (Public)
**************************************************************************/
libvlc_media_list_view_t
*
libvlc_media_list_view_children_for_item
(
libvlc_media_list_view_t
*
p_mlv
,
libvlc_media_descriptor_t
*
p_md
,
libvlc_exception_t
*
p_e
)
{
(
void
)
p_e
;
libvlc_media_list_t
*
p_mlist
;
libvlc_media_list_view_t
*
ret
;
p_mlist
=
libvlc_media_descriptor_subitems
(
p_md
,
p_e
);
if
(
!
p_mlist
)
return
NULL
;
ret
=
p_mlv
->
pf_constructor
(
p_mlist
,
p_e
);
libvlc_media_list_release
(
p_mlist
);
return
ret
;
}
/* Limited to four args, because it should be enough */
#define AN_SELECT( collapser, dec1, dec2, dec3, dec4, p, ...) p
...
...
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