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
d71d800d
Commit
d71d800d
authored
Nov 19, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/control: Implement libvlc_media_list_view_children_at_index.
parent
14051791
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
7 deletions
+37
-7
include/vlc/libvlc.h
include/vlc/libvlc.h
+6
-0
src/control/flat_media_list_view.c
src/control/flat_media_list_view.c
+13
-0
src/control/libvlc_internal.h
src/control/libvlc_internal.h
+12
-4
src/control/media_list_view.c
src/control/media_list_view.c
+6
-3
No files found.
include/vlc/libvlc.h
View file @
d71d800d
...
...
@@ -555,6 +555,12 @@ VLC_PUBLIC_API libvlc_media_descriptor_t *
int
index
,
libvlc_exception_t
*
p_e
);
VLC_PUBLIC_API
libvlc_media_list_view_t
*
libvlc_media_list_view_children_at_index
(
libvlc_media_list_view_t
*
p_mlv
,
int
index
,
libvlc_exception_t
*
p_e
);
VLC_PUBLIC_API
int
libvlc_media_list_view_index_of_item
(
libvlc_media_list_view_t
*
p_mlv
,
libvlc_media_descriptor_t
*
p_md
,
...
...
src/control/flat_media_list_view.c
View file @
d71d800d
...
...
@@ -73,6 +73,18 @@ flat_media_list_view_item_at_index( libvlc_media_list_view_t * p_mlv,
return
p_md
;
}
/**************************************************************************
* flat_media_list_view_item_at_index (private)
* (called by flat_media_list_view_item_at_index)
**************************************************************************/
static
libvlc_media_list_view_t
*
flat_media_list_view_children_at_index
(
libvlc_media_list_view_t
*
p_mlv
,
int
index
,
libvlc_exception_t
*
p_e
)
{
return
NULL
;
}
/**************************************************************************
* flat_media_list_view_release (private)
* (called by media_list_view_release)
...
...
@@ -104,6 +116,7 @@ libvlc_media_list_flat_view( libvlc_media_list_t * p_mlist,
p_mlv
=
libvlc_media_list_view_new
(
p_mlist
,
flat_media_list_view_count
,
flat_media_list_view_item_at_index
,
flat_media_list_view_children_at_index
,
flat_media_list_view_release
,
p_this_view_data
,
p_e
);
...
...
src/control/libvlc_internal.h
View file @
d71d800d
...
...
@@ -117,12 +117,18 @@ struct libvlc_media_list_t
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
)(
struct
libvlc_media_list_view_t
*
p_mlv
,
typedef
int
(
*
libvlc_media_list_view_count_func_t
)(
libvlc_media_list_view_t
*
p_mlv
,
libvlc_exception_t
*
)
;
typedef
libvlc_media_descriptor_t
*
(
*
libvlc_media_list_view_item_at_index_func_t
)(
struct
libvlc_media_list_view_t
*
p_mlv
,
libvlc_media_list_view_t
*
p_mlv
,
int
index
,
libvlc_exception_t
*
)
;
typedef
libvlc_media_list_view_t
*
(
*
libvlc_media_list_view_children_at_index_func_t
)(
libvlc_media_list_view_t
*
p_mlv
,
int
index
,
libvlc_exception_t
*
)
;
...
...
@@ -139,8 +145,9 @@ struct libvlc_media_list_view_t
struct
libvlc_media_list_view_private_t
*
p_this_view_data
;
/* Accessors */
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_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_release_func_t
pf_release
;
...
...
@@ -290,6 +297,7 @@ VLC_EXPORT ( libvlc_media_list_view_t *, 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_release_func_t
pf_release
,
void
*
this_view_data
,
libvlc_exception_t
*
p_e
)
);
...
...
src/control/media_list_view.c
View file @
d71d800d
...
...
@@ -104,6 +104,7 @@ libvlc_media_list_view_t *
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_release_func_t
pf_release
,
void
*
this_view_data
,
libvlc_exception_t
*
p_e
)
...
...
@@ -120,9 +121,10 @@ libvlc_media_list_view_new( libvlc_media_list_t * p_mlist,
libvlc_media_list_retain
(
p_mlist
);
p_mlv
->
p_mlist
=
p_mlist
;
p_mlv
->
pf_count
=
pf_count
;
p_mlv
->
pf_item_at_index
=
pf_item_at_index
;
p_mlv
->
pf_release
=
pf_release
;
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_release
=
pf_release
;
p_mlv
->
p_this_view_data
=
this_view_data
;
...
...
@@ -225,4 +227,5 @@ libvlc_media_list_view_release( libvlc_media_list_view_t * p_mlv )
MEDIA_LIST_VIEW_FUNCTION
(
count
,
int
,
0
)
MEDIA_LIST_VIEW_FUNCTION
(
item_at_index
,
libvlc_media_descriptor_t
*
,
NULL
,
int
arg1
)
MEDIA_LIST_VIEW_FUNCTION
(
children_at_index
,
libvlc_media_list_view_t
*
,
NULL
,
int
arg1
)
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