Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
60a64110
Commit
60a64110
authored
Feb 21, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments to make doxygen happy
parent
c5f4e7f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
+31
-4
src/playlist/item.c
src/playlist/item.c
+31
-4
No files found.
src/playlist/item.c
View file @
60a64110
...
@@ -504,9 +504,15 @@ playlist_item_t * playlist_NodeAddInput( playlist_t *p_playlist,
...
@@ -504,9 +504,15 @@ playlist_item_t * playlist_NodeAddInput( playlist_t *p_playlist,
*****************************************************************************/
*****************************************************************************/
/**
/**
* Item to node
*
* Transform an item to a node. Return the node in the category tree, or NULL
* Transform an item to a node. Return the node in the category tree, or NULL
* if not found there
* if not found there
* This function must be entered without the playlist lock
* This function must be entered without the playlist lock
* \param p_playlist the playlist object
* \param p_item the item to transform
* \param b_locked TRUE if the playlist is locked
* \return the item transform in a node
*/
*/
playlist_item_t
*
playlist_ItemToNode
(
playlist_t
*
p_playlist
,
playlist_item_t
*
playlist_ItemToNode
(
playlist_t
*
p_playlist
,
playlist_item_t
*
p_item
,
playlist_item_t
*
p_item
,
...
@@ -576,7 +582,13 @@ playlist_item_t *playlist_ItemToNode( playlist_t *p_playlist,
...
@@ -576,7 +582,13 @@ playlist_item_t *playlist_ItemToNode( playlist_t *p_playlist,
}
}
}
}
/** Find an item within a root, given its input id.
/**
* Find an item within a root, given its input id.
*
* \param p_playlist the playlist object
* \param i_input_id id of the input
* \param p_root root playlist item
* \param b_items_only TRUE if we want the item himself
* \return the first found item, or NULL if not found
* \return the first found item, or NULL if not found
*/
*/
playlist_item_t
*
playlist_ItemFindFromInputAndRoot
(
playlist_t
*
p_playlist
,
playlist_item_t
*
playlist_ItemFindFromInputAndRoot
(
playlist_t
*
p_playlist
,
...
@@ -688,12 +700,21 @@ int playlist_TreeMove( playlist_t * p_playlist, playlist_item_t *p_item,
...
@@ -688,12 +700,21 @@ int playlist_TreeMove( playlist_t * p_playlist, playlist_item_t *p_item,
return
i_ret
;
return
i_ret
;
}
}
/** Send a notification that an item has been added to a node */
/**
* Send notification
*
* Send a notification that an item has been added to a node
* \param p_playlist the playlist object
* \param i_item_id id of the item added
* \param i_node_id id of the node in wich the item was added
* \param b_signal TRUE if the function must send a signal
* \return nothing
*/
void
playlist_SendAddNotify
(
playlist_t
*
p_playlist
,
int
i_item_id
,
void
playlist_SendAddNotify
(
playlist_t
*
p_playlist
,
int
i_item_id
,
int
i_node_id
,
vlc_bool_t
b_signal
)
int
i_node_id
,
vlc_bool_t
b_signal
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
playlist_add_t
*
p_add
=
(
playlist_add_t
*
)
malloc
(
sizeof
(
playlist_add_t
)
);
playlist_add_t
*
p_add
=
(
playlist_add_t
*
)
malloc
(
sizeof
(
playlist_add_t
)
);
p_add
->
i_item
=
i_item_id
;
p_add
->
i_item
=
i_item_id
;
p_add
->
i_node
=
i_node_id
;
p_add
->
i_node
=
i_node_id
;
val
.
p_address
=
p_add
;
val
.
p_address
=
p_add
;
...
@@ -708,7 +729,13 @@ void playlist_SendAddNotify( playlist_t *p_playlist, int i_item_id,
...
@@ -708,7 +729,13 @@ void playlist_SendAddNotify( playlist_t *p_playlist, int i_item_id,
* Playlist item accessors
* Playlist item accessors
*****************************************************************************/
*****************************************************************************/
/** Set the name of a playlist item */
/**
* Set the name of a playlist item
*
* \param p_item the item
* \param psz_name the name
* \return VLC_SUCCESS or VLC_EGENERIC
*/
int
playlist_ItemSetName
(
playlist_item_t
*
p_item
,
const
char
*
psz_name
)
int
playlist_ItemSetName
(
playlist_item_t
*
p_item
,
const
char
*
psz_name
)
{
{
if
(
psz_name
&&
p_item
)
if
(
psz_name
&&
p_item
)
...
...
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