1 /* gcompris - assetml.h
2  *
3  * Copyright (C) 2003 Bruno Coudoin
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 
20 /*! \file assetml.h
21   \brief The libassetml API
22 */
23 
24 #ifndef ASSETML_H
25 #define ASSETML_H
26 
27 #include <glib.h>
28 
29 /**
30    \fn GList*	 assetml_get_asset(gchar *dataset, gchar* categories, gchar* mimetype, gchar* name)
31    \brief Returns a list of AssetML struct
32    \param dataset the name of the dataset, NULL for ANY dataset
33    \param categories a list of categorie columns ';' separated (NULL for all)
34    \param mimetype an official mimetype describing the content (NULL for all)
35    \param locale is the locale to search for or NULL for the current locale
36    \param file the asset file name to get or NULL for any file name
37 */
38 GList*	 assetml_get_asset(gchar *dataset, gchar* categories, gchar* mimetype, gchar* locale, gchar* name);
39 
40 
41 void	 assetml_free_assetlist(GList *assetlist);
42 
43 typedef struct _AssetML         AssetML;
44 
45 struct _AssetML
46 {
47   gchar		*dataset;
48   gchar		*categories;
49   gchar		*locale;
50   gchar		*description;
51   gchar		*file;
52   gchar		*mimetype;
53   gchar		*credits;
54 };
55 
56 
57 #endif
58