* hb_chapter_list_copy ********************************************************************** * *********************************************************************/
| 5648 | * |
| 5649 | *********************************************************************/ |
| 5650 | hb_list_t *hb_chapter_list_copy(const hb_list_t *src) |
| 5651 | { |
| 5652 | hb_list_t *list = hb_list_init(); |
| 5653 | hb_chapter_t *chapter = NULL; |
| 5654 | int i; |
| 5655 | |
| 5656 | if( src ) |
| 5657 | { |
| 5658 | for( i = 0; i < hb_list_count(src); i++ ) |
| 5659 | { |
| 5660 | if( ( chapter = hb_list_item( src, i ) ) ) |
| 5661 | { |
| 5662 | hb_list_add( list, hb_chapter_copy(chapter) ); |
| 5663 | } |
| 5664 | } |
| 5665 | } |
| 5666 | return list; |
| 5667 | } |
| 5668 | |
| 5669 | /********************************************************************** |
| 5670 | * hb_chapter_close |
no test coverage detected