1 /*****************************************************************************
2 * tag_query.c: libvlc new API media tag query functions
3 *****************************************************************************
4 * Copyright (C) 2007 the VideoLAN team
7 * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
23 #include "libvlc_internal.h"
24 #include <vlc/libvlc.h>
25 #include "vlc_arrays.h"
27 /* XXX This API is in construction
29 * It's goal is to represent a meta tag query
30 * It should be also able to say if a query can be matched in a media
31 * descriptor through libvlc_query_match.
35 * Public libvlc functions
38 /**************************************************************************
39 * libvlc_tag_query_new (Public)
42 **************************************************************************/
44 libvlc_tag_query_new( libvlc_instance_t * p_inst,
45 libvlc_exception_t * p_e )
48 libvlc_tag_query_t * p_q;
50 p_q = malloc(sizeof(libvlc_tag_query_t));
55 p_q->p_libvlc_instance = p_inst;
61 /**************************************************************************
62 * libvlc_media_list_release (Public)
65 **************************************************************************/
66 void libvlc_tag_query_release( libvlc_tag_query_t * p_q )
70 if( p_q->i_refcount > 0 )
76 /**************************************************************************
77 * libvlc_media_list_retain (Public)
80 **************************************************************************/
81 void libvlc_tag_query_retain( libvlc_tag_query_t * p_q )
87 /**************************************************************************
88 * libvlc_query_match (Public)
90 * Return true if the query p_q is matched in p_md
91 **************************************************************************/
93 libvlc_tag_query_match( libvlc_tag_query_t * p_q,
94 libvlc_media_descriptor_t * p_md,
95 libvlc_exception_t * p_e )
101 /* In construction... */