Changeset 218648ea6605438015bcc9fa9d9c843870dad259
- Timestamp:
- 28/08/07 04:41:46 (1 year ago)
- git-parent:
- Files:
-
- include/vlc/libvlc.h (modified) (2 diffs)
- include/vlc/libvlc_structures.h (modified) (3 diffs)
- src/Makefile.am (modified) (1 diff)
- src/control/libvlc_internal.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
include/vlc/libvlc.h
r130484c r218648e 123 123 124 124 /***************************************************************************** 125 * Tree126 *****************************************************************************/127 /** defgroup libvlc_tree Tree128 * \ingroup libvlc129 * LibVLC Tree. A tree holds an item plus several subtrees.130 * @{131 */132 VLC_PUBLIC_API libvlc_tree_t *133 libvlc_tree_new_with_media_list_as_item( libvlc_media_list_t * p_mlist,134 libvlc_exception_t * p_e );135 136 VLC_PUBLIC_API libvlc_tree_t *137 libvlc_tree_new_with_string_as_item( const char * psz,138 libvlc_exception_t * p_e );139 VLC_PUBLIC_API void140 libvlc_tree_release( libvlc_tree_t * p_tree );141 142 VLC_PUBLIC_API void143 libvlc_tree_retain( libvlc_tree_t * p_tree );144 145 VLC_PUBLIC_API char *146 libvlc_tree_item_as_string( libvlc_tree_t * p_tree,147 libvlc_exception_t * p_e );148 149 VLC_PUBLIC_API libvlc_media_list_t *150 libvlc_tree_item_as_media_list( libvlc_tree_t * p_tree,151 libvlc_exception_t * p_e );152 153 VLC_PUBLIC_API int154 libvlc_tree_subtree_count( libvlc_tree_t * p_tree, libvlc_exception_t * p_e );155 156 VLC_PUBLIC_API libvlc_tree_t *157 libvlc_tree_subtree_at_index( libvlc_tree_t * p_tree,158 int index,159 libvlc_exception_t * p_e );160 161 VLC_PUBLIC_API void162 libvlc_tree_insert_subtree_at_index( libvlc_tree_t * p_tree,163 libvlc_tree_t * p_subtree,164 int index,165 libvlc_exception_t * p_e );166 167 VLC_PUBLIC_API void168 libvlc_tree_remove_subtree_at_index( libvlc_tree_t * p_tree,169 int index,170 libvlc_exception_t * p_e );171 172 /**@} */173 174 175 176 /*****************************************************************************177 125 * Media descriptor 178 126 *****************************************************************************/ … … 1233 1181 libvlc_exception_t *p_e ); 1234 1182 1235 1236 1183 /** 1237 1184 * Get an event type name include/vlc/libvlc_structures.h
r6d9dc5e r218648e 54 54 55 55 /***************************************************************************** 56 * Tree57 *****************************************************************************/58 /** defgroup libvlc_tree Tree59 * \ingroup libvlc60 * LibVLC Tree61 * @{62 */63 64 typedef void (*libvlc_retain_function)(void *);65 typedef void (*libvlc_release_function)(void *);66 67 typedef struct libvlc_tree_t libvlc_tree_t;68 69 /**@} */70 71 /*****************************************************************************72 56 * Tag 73 57 *****************************************************************************/ … … 314 298 libvlc_MediaListPlayerStopped, 315 299 316 libvlc_TreeSubtreeAdded,317 libvlc_TreeSubtreeDeleted,318 libvlc_TreeItemValueChanged,319 320 300 } libvlc_event_type_t; 321 301 … … 360 340 int index; 361 341 } media_list_item_deleted; 362 363 /* Tree */364 struct365 {366 libvlc_tree_t * subtree;367 int index;368 } tree_subtree_added;369 struct370 {371 libvlc_tree_t * subtree;372 int index;373 } tree_subtree_deleted;374 struct375 {376 void * new_value;377 } tree_item_value_changed;378 379 342 } u; 380 343 } libvlc_event_t; src/Makefile.am
rd0f7b99 r218648e 328 328 control/mediacontrol_audio_video.c \ 329 329 control/media_discoverer.c \ 330 control/tag_query.c \ 331 control/tree.c 330 control/tag_query.c 332 331 333 332 ############################################################################### src/control/libvlc_internal.h
r259aca4 r218648e 94 94 libvlc_tag_t tag; 95 95 char * psz_tag_key; 96 };97 98 struct libvlc_tree_t99 {100 libvlc_event_manager_t * p_event_manager;101 int i_refcount;102 void * p_item; /* For dynamic sublist */103 libvlc_retain_function pf_item_retain;104 libvlc_release_function pf_item_release;105 DECL_ARRAY(struct libvlc_tree_t *) subtrees; /* For dynamic sublist */106 96 }; 107 97 … … 162 152 int i_refcount; 163 153 libvlc_media_list_t * p_mlist; 164 libvlc_tree_t * p_playlists_tree;165 154 }; 166 155
