libassetml API proposal
Here is an example of API that could be used to implement AssetML
/**
\fn GList* assetml_get_asset(gchar *dataset, gchar* categories, gchar* mimetype, gchar* name)
\brief Returns a list of AssetML struct
\param dataset the name of the dataset, NULL for ANY dataset
\param categories a list of categorie columns ';' separated (NULL for all)
\param mimetype an official mimetype describing the content (NULL for all)
\param locale is the locale to search for or NULL for the current locale
\param file the asset file name to get or NULL for any file name
*/
/
::
GList assetml_get_asset(gchar dataset, gchar categories, gchar mimetype, gchar locale, gchar name);
struct AssetML
{
gchar *dataset;
gchar *categories;
gchar *locale;
gchar *description;
gchar *file;
gchar *mimetype;
gchar *credits;
};
|