Commit 218648ea authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

libvlc.h: Don't expose libvlc_tree. It will get deleted.

parent 176b609e
...@@ -121,58 +121,6 @@ VLC_PUBLIC_API void libvlc_destroy( libvlc_instance_t *, libvlc_exception_t * ); ...@@ -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 * Media descriptor
*****************************************************************************/ *****************************************************************************/
...@@ -1232,7 +1180,6 @@ VLC_PUBLIC_API void libvlc_event_detach( libvlc_event_manager_t *p_event_manager ...@@ -1232,7 +1180,6 @@ VLC_PUBLIC_API void libvlc_event_detach( libvlc_event_manager_t *p_event_manager
void *p_user_data, void *p_user_data,
libvlc_exception_t *p_e ); libvlc_exception_t *p_e );
/** /**
* Get an event type name * Get an event type name
* \param i_event_type the desired event * \param i_event_type the desired event
......
...@@ -52,22 +52,6 @@ typedef struct libvlc_exception_t ...@@ -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 * Tag
*****************************************************************************/ *****************************************************************************/
...@@ -313,10 +297,6 @@ typedef enum libvlc_event_type_t { ...@@ -313,10 +297,6 @@ typedef enum libvlc_event_type_t {
libvlc_MediaListPlayerNextItemSet, libvlc_MediaListPlayerNextItemSet,
libvlc_MediaListPlayerStopped, libvlc_MediaListPlayerStopped,
libvlc_TreeSubtreeAdded,
libvlc_TreeSubtreeDeleted,
libvlc_TreeItemValueChanged,
} libvlc_event_type_t; } libvlc_event_type_t;
/** /**
...@@ -359,23 +339,6 @@ typedef struct libvlc_event_t ...@@ -359,23 +339,6 @@ typedef struct libvlc_event_t
libvlc_media_descriptor_t * item; libvlc_media_descriptor_t * item;
int index; int index;
} media_list_item_deleted; } 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; } u;
} libvlc_event_t; } libvlc_event_t;
......
...@@ -327,8 +327,7 @@ SOURCES_libvlc_control = \ ...@@ -327,8 +327,7 @@ SOURCES_libvlc_control = \
control/mediacontrol_util.c \ control/mediacontrol_util.c \
control/mediacontrol_audio_video.c \ control/mediacontrol_audio_video.c \
control/media_discoverer.c \ control/media_discoverer.c \
control/tag_query.c \ control/tag_query.c
control/tree.c
############################################################################### ###############################################################################
# Stamp rules # Stamp rules
......
...@@ -95,16 +95,6 @@ struct libvlc_tag_query_t ...@@ -95,16 +95,6 @@ struct libvlc_tag_query_t
char * psz_tag_key; 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 struct libvlc_media_list_t
{ {
libvlc_event_manager_t * p_event_manager; libvlc_event_manager_t * p_event_manager;
...@@ -161,7 +151,6 @@ struct libvlc_media_library_t ...@@ -161,7 +151,6 @@ struct libvlc_media_library_t
libvlc_instance_t * p_libvlc_instance; libvlc_instance_t * p_libvlc_instance;
int i_refcount; int i_refcount;
libvlc_media_list_t * p_mlist; libvlc_media_list_t * p_mlist;
libvlc_tree_t * p_playlists_tree;
}; };
struct libvlc_media_discoverer_t struct libvlc_media_discoverer_t
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment