libvlc.h: Don't expose libvlc_tree. It will get deleted.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 28 Aug 2007 02:41:46 +0000 (02:41 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 28 Aug 2007 02:41:46 +0000 (02:41 +0000)
include/vlc/libvlc.h
include/vlc/libvlc_structures.h
src/Makefile.am
src/control/libvlc_internal.h

index 4068c75..8c57beb 100644 (file)
@@ -121,58 +121,6 @@ VLC_PUBLIC_API void libvlc_destroy( libvlc_instance_t *, libvlc_exception_t * );
 
 /** @}*/
 
-/*****************************************************************************
- * Tree
- *****************************************************************************/
-/** defgroup libvlc_tree Tree
- * \ingroup libvlc
- * LibVLC Tree. A tree holds an item plus several subtrees.
- * @{
- */
-VLC_PUBLIC_API libvlc_tree_t *
-    libvlc_tree_new_with_media_list_as_item( libvlc_media_list_t * p_mlist,
-                                             libvlc_exception_t * p_e );
-
-VLC_PUBLIC_API libvlc_tree_t *
-    libvlc_tree_new_with_string_as_item( const char * psz,
-                                         libvlc_exception_t * p_e );
-VLC_PUBLIC_API void
-    libvlc_tree_release( libvlc_tree_t * p_tree );
-
-VLC_PUBLIC_API void
-    libvlc_tree_retain( libvlc_tree_t * p_tree );
-
-VLC_PUBLIC_API char *
-    libvlc_tree_item_as_string( libvlc_tree_t * p_tree,
-                                libvlc_exception_t * p_e );
-
-VLC_PUBLIC_API libvlc_media_list_t *
-    libvlc_tree_item_as_media_list( libvlc_tree_t * p_tree,
-                                    libvlc_exception_t * p_e );
-
-VLC_PUBLIC_API int
-    libvlc_tree_subtree_count( libvlc_tree_t * p_tree, libvlc_exception_t * p_e );
-
-VLC_PUBLIC_API libvlc_tree_t *
-    libvlc_tree_subtree_at_index( libvlc_tree_t * p_tree,
-                              int index,
-                              libvlc_exception_t * p_e );
-
-VLC_PUBLIC_API void
-    libvlc_tree_insert_subtree_at_index( libvlc_tree_t * p_tree,
-                                         libvlc_tree_t * p_subtree,
-                                         int index,
-                                         libvlc_exception_t * p_e );
-
-VLC_PUBLIC_API void
-    libvlc_tree_remove_subtree_at_index( libvlc_tree_t * p_tree,
-                                         int index,
-                                         libvlc_exception_t * p_e );
-
-/**@} */
-
-
-
 /*****************************************************************************
  * Media descriptor
  *****************************************************************************/
@@ -1232,7 +1180,6 @@ VLC_PUBLIC_API void libvlc_event_detach( libvlc_event_manager_t *p_event_manager
                                          void *p_user_data,
                                          libvlc_exception_t *p_e );
 
-
 /**
  * Get an event type name 
  * \param i_event_type the desired event
index 909c30e..e6b8f19 100644 (file)
@@ -52,22 +52,6 @@ typedef struct libvlc_exception_t
 
 /**@} */
 
-/*****************************************************************************
- * Tree
- *****************************************************************************/
-/** defgroup libvlc_tree Tree
- * \ingroup libvlc
- * LibVLC Tree 
- * @{
- */
-
-typedef void (*libvlc_retain_function)(void *);
-typedef void (*libvlc_release_function)(void *);
-
-typedef struct libvlc_tree_t libvlc_tree_t;
-
-/**@} */
-
 /*****************************************************************************
  * Tag
  *****************************************************************************/
@@ -313,10 +297,6 @@ typedef enum libvlc_event_type_t {
     libvlc_MediaListPlayerNextItemSet,
     libvlc_MediaListPlayerStopped,
 
-    libvlc_TreeSubtreeAdded,
-    libvlc_TreeSubtreeDeleted,
-    libvlc_TreeItemValueChanged,
-
 } libvlc_event_type_t;
 
 /**
@@ -359,23 +339,6 @@ typedef struct libvlc_event_t
             libvlc_media_descriptor_t * item;
             int index;
         } media_list_item_deleted;
-
-        /* Tree */
-        struct
-        {
-            libvlc_tree_t * subtree;
-            int index;
-        } tree_subtree_added;
-        struct
-        {
-            libvlc_tree_t * subtree;
-            int index;
-        } tree_subtree_deleted;
-        struct
-        {
-            void * new_value;
-        } tree_item_value_changed;
-
     } u;
 } libvlc_event_t;
 
index 4bf33fe..c4a74b5 100644 (file)
@@ -327,8 +327,7 @@ SOURCES_libvlc_control = \
        control/mediacontrol_util.c \
        control/mediacontrol_audio_video.c \
        control/media_discoverer.c \
-       control/tag_query.c \
-       control/tree.c
+       control/tag_query.c
 
 ###############################################################################
 # Stamp rules
index 429ad43..65909e7 100644 (file)
@@ -95,16 +95,6 @@ struct libvlc_tag_query_t
     char *             psz_tag_key;
 };
 
-struct libvlc_tree_t
-{
-    libvlc_event_manager_t * p_event_manager;
-    int     i_refcount;
-    void *  p_item; /* For dynamic sublist */
-    libvlc_retain_function  pf_item_retain;
-    libvlc_release_function pf_item_release;
-    DECL_ARRAY(struct libvlc_tree_t *)  subtrees; /* For dynamic sublist */
-};
-
 struct libvlc_media_list_t
 {
     libvlc_event_manager_t * p_event_manager;
@@ -161,7 +151,6 @@ struct libvlc_media_library_t
     libvlc_instance_t *      p_libvlc_instance;
     int                      i_refcount;
     libvlc_media_list_t *    p_mlist;
-    libvlc_tree_t *          p_playlists_tree;
 };
 
 struct libvlc_media_discoverer_t