Changeset 349c167bbadcb290e400ca15bf6fd8f2c9c96773
- Timestamp:
- 07/04/08 22:41:07
(6 months ago)
- Author:
- Rémi Duraffort <ivoire@videolan.org>
- git-committer:
- Rémi Duraffort <ivoire@videolan.org> 1207600867 +0200
- git-parent:
[ca2549646561205b9e3a08e890fdbf459507a365]
- git-author:
- Rémi Duraffort <ivoire@videolan.org> 1207599089 +0200
- Message:
Remove playlist_NodeDump as nobody is using this debuging function.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r719f576 |
r349c167 |
|
| 381 | 381 | * Tree management |
|---|
| 382 | 382 | ********************************************************/ |
|---|
| 383 | | VLC_EXPORT(void, playlist_NodeDump, ( playlist_t *p_playlist, playlist_item_t *p_item, int i_level ) ); |
|---|
| 384 | 383 | VLC_EXPORT( int, playlist_NodeChildrenCount, (playlist_t *,playlist_item_t* ) ); |
|---|
| 385 | 384 | |
|---|
| rab121fd |
r349c167 |
|
| 242 | 242 | playlist_NodeCreate |
|---|
| 243 | 243 | playlist_NodeDelete |
|---|
| 244 | | playlist_NodeDump |
|---|
| 245 | 244 | playlist_NodeEmpty |
|---|
| 246 | 245 | playlist_NodeInsert |
|---|
| r99fab90 |
r349c167 |
|
| 49 | 49 | * |
|---|
| 50 | 50 | * \param p_playlist the playlist |
|---|
| 51 | | * \paam psz_name the name of the node |
|---|
| | 51 | * \param psz_name the name of the node |
|---|
| 52 | 52 | * \param p_parent the parent node to attach to or NULL if no attach |
|---|
| 53 | 53 | * \param p_flags miscellaneous flags |
|---|
| … | … | |
| 667 | 667 | return NULL; |
|---|
| 668 | 668 | } |
|---|
| 669 | | |
|---|
| 670 | | /* Dump the contents of a node */ |
|---|
| 671 | | void playlist_NodeDump( playlist_t *p_playlist, playlist_item_t *p_item, |
|---|
| 672 | | int i_level ) |
|---|
| 673 | | { |
|---|
| 674 | | char str[512]; |
|---|
| 675 | | int i; |
|---|
| 676 | | |
|---|
| 677 | | if( i_level == 1 ) |
|---|
| 678 | | { |
|---|
| 679 | | msg_Dbg( p_playlist, "%s (%i)", |
|---|
| 680 | | p_item->p_input->psz_name, p_item->i_children ); |
|---|
| 681 | | } |
|---|
| 682 | | |
|---|
| 683 | | if( p_item->i_children == -1 ) |
|---|
| 684 | | { |
|---|
| 685 | | return; |
|---|
| 686 | | } |
|---|
| 687 | | |
|---|
| 688 | | for( i = 0; i< p_item->i_children; i++ ) |
|---|
| 689 | | { |
|---|
| 690 | | memset( str, 32, 512 ); |
|---|
| 691 | | sprintf( str + 2 * i_level , "%s (%i)", |
|---|
| 692 | | p_item->pp_children[i]->p_input->psz_name, |
|---|
| 693 | | p_item->pp_children[i]->i_children ); |
|---|
| 694 | | msg_Dbg( p_playlist, "%s",str ); |
|---|
| 695 | | if( p_item->pp_children[i]->i_children >= 0 ) |
|---|
| 696 | | { |
|---|
| 697 | | playlist_NodeDump( p_playlist, p_item->pp_children[i], |
|---|
| 698 | | i_level + 1 ); |
|---|
| 699 | | } |
|---|
| 700 | | } |
|---|
| 701 | | return; |
|---|
| 702 | | } |
|---|