#include <glib.h>
#include <glib-object.h>
#include <glib/gstdio.h>
#include <totem-pl-parser/1/plparser/totem-pl-parser.h>


static void uriParsed(TotemPlParser* parser,
                      gchar* uri,
                      gpointer metadata,
                      void* self)
{
}


int main(int argc, char* argv[])
{
    TotemPlParser* parser;
    TotemPlParserResult result;

    g_type_init ();

    parser = totem_pl_parser_new();
    g_object_set(parser, "recurse", FALSE, "disable-unsafe",
                 TRUE, NULL);

    g_signal_connect(G_OBJECT(parser), "entry-parsed", G_CALLBACK(uriParsed), parser);

    result = totem_pl_parser_parse(parser,
                          argv[1],
                          FALSE);

    return 0;
}
