1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#include "itdb_sysinfo_extended_parser.h"
#include <glib.h>
#include <glib-object.h>
int main (int argc, char **argv)
{
SysInfoIpodProperties *props;
GError *error = NULL;
if (argc != 2)
return(1);
#if !GLIB_CHECK_VERSION(2, 36, 0)
g_type_init ();
#endif
props = itdb_sysinfo_extended_parse (argv[1], &error);
if (props == NULL) {
g_print ("Couldn't parse %s: %s\n", argv[1], error->message);
return(2);
}
itdb_sysinfo_properties_dump (props);
itdb_sysinfo_properties_free (props);
props = NULL;
return 0;
}
|