Changeset d71d800d9d311531a566399bd6b33f9bff9c8a4a

Show
Ignore:
Timestamp:
19/11/07 14:48:23 (1 year ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1195480103 +0000
git-parent:

[140517913b5dce1fa54cb23ff6c37b526d904b76]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1195480103 +0000
Message:

src/control: Implement libvlc_media_list_view_children_at_index.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc/libvlc.h

    rb999b9b rd71d800  
    556556                                           libvlc_exception_t * p_e ); 
    557557 
     558VLC_PUBLIC_API libvlc_media_list_view_t * 
     559    libvlc_media_list_view_children_at_index(  libvlc_media_list_view_t * p_mlv, 
     560                                           int index, 
     561                                           libvlc_exception_t * p_e ); 
     562 
     563 
    558564VLC_PUBLIC_API int 
    559565    libvlc_media_list_view_index_of_item(  libvlc_media_list_view_t * p_mlv, 
  • src/control/flat_media_list_view.c

    r60327d5 rd71d800  
    7575 
    7676/************************************************************************** 
     77 *       flat_media_list_view_item_at_index  (private) 
     78 * (called by flat_media_list_view_item_at_index) 
     79 **************************************************************************/ 
     80static libvlc_media_list_view_t * 
     81flat_media_list_view_children_at_index( libvlc_media_list_view_t * p_mlv, 
     82                                        int index, 
     83                                        libvlc_exception_t * p_e ) 
     84{ 
     85    return NULL; 
     86} 
     87 
     88/************************************************************************** 
    7789 *       flat_media_list_view_release (private) 
    7890 * (called by media_list_view_release) 
     
    105117                                        flat_media_list_view_count, 
    106118                                        flat_media_list_view_item_at_index, 
     119                                        flat_media_list_view_children_at_index, 
    107120                                        flat_media_list_view_release, 
    108121                                        p_this_view_data, 
  • src/control/libvlc_internal.h

    rb86be30 rd71d800  
    118118typedef void (*libvlc_media_list_view_release_func_t)( libvlc_media_list_view_t * p_mlv ) ; 
    119119 
    120 typedef int (*libvlc_media_list_view_count_func_t)( struct libvlc_media_list_view_t * p_mlv, 
     120typedef int (*libvlc_media_list_view_count_func_t)( libvlc_media_list_view_t * p_mlv, 
    121121        libvlc_exception_t * ) ; 
    122122 
    123123typedef libvlc_media_descriptor_t * 
    124124        (*libvlc_media_list_view_item_at_index_func_t)( 
    125                 struct libvlc_media_list_view_t * p_mlv, 
     125                libvlc_media_list_view_t * p_mlv, 
     126                int index, 
     127                libvlc_exception_t * ) ; 
     128 
     129typedef libvlc_media_list_view_t * 
     130        (*libvlc_media_list_view_children_at_index_func_t)( 
     131                libvlc_media_list_view_t * p_mlv, 
    126132                int index, 
    127133                libvlc_exception_t * ) ; 
     
    140146 
    141147    /* Accessors */ 
    142     libvlc_media_list_view_count_func_t         pf_count; 
    143     libvlc_media_list_view_item_at_index_func_t pf_item_at_index; 
     148    libvlc_media_list_view_count_func_t              pf_count; 
     149    libvlc_media_list_view_item_at_index_func_t      pf_item_at_index; 
     150    libvlc_media_list_view_children_at_index_func_t  pf_children_at_index; 
    144151 
    145152    libvlc_media_list_view_release_func_t       pf_release; 
     
    291298                            libvlc_media_list_view_count_func_t pf_count, 
    292299                            libvlc_media_list_view_item_at_index_func_t pf_item_at_index, 
     300                            libvlc_media_list_view_children_at_index_func_t pf_children_at_index, 
    293301                            libvlc_media_list_view_release_func_t pf_release, 
    294302                            void * this_view_data, 
  • src/control/media_list_view.c

    r9636c64 rd71d800  
    105105                            libvlc_media_list_view_count_func_t pf_count, 
    106106                            libvlc_media_list_view_item_at_index_func_t pf_item_at_index, 
     107                            libvlc_media_list_view_children_at_index_func_t pf_children_at_index, 
    107108                            libvlc_media_list_view_release_func_t pf_release, 
    108109                            void * this_view_data, 
     
    121122    p_mlv->p_mlist = p_mlist; 
    122123 
    123     p_mlv->pf_count         = pf_count; 
    124     p_mlv->pf_item_at_index = pf_item_at_index; 
    125     p_mlv->pf_release       = pf_release; 
     124    p_mlv->pf_count             = pf_count; 
     125    p_mlv->pf_item_at_index     = pf_item_at_index; 
     126    p_mlv->pf_children_at_index = pf_children_at_index; 
     127    p_mlv->pf_release           = pf_release; 
    126128 
    127129    p_mlv->p_this_view_data = this_view_data; 
     
    226228MEDIA_LIST_VIEW_FUNCTION( count, int, 0 ) 
    227229MEDIA_LIST_VIEW_FUNCTION( item_at_index, libvlc_media_descriptor_t *, NULL, int arg1 ) 
    228  
     230MEDIA_LIST_VIEW_FUNCTION( children_at_index, libvlc_media_list_view_t *, NULL, int arg1 ) 
     231