diff options
Diffstat (limited to 'tests/test-sysinfo-extended-parsing.c')
-rw-r--r-- | tests/test-sysinfo-extended-parsing.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/test-sysinfo-extended-parsing.c b/tests/test-sysinfo-extended-parsing.c new file mode 100644 index 0000000..86731d1 --- /dev/null +++ b/tests/test-sysinfo-extended-parsing.c @@ -0,0 +1,24 @@ +#include "itdb_sysinfo_extended_parser.h" + +#include <glib.h> +#include <glib-object.h> + +int main (int argc, char **argv) +{ + SysInfoIpodProperties *props; + + if (argc != 2) + return(1); + + g_type_init (); + props = itdb_sysinfo_extended_parse (argv[1]); + if (props == NULL) { + g_print ("Couldn't parse %s\n", argv[1]); + } + itdb_sysinfo_properties_dump (props); + itdb_sysinfo_properties_free (props); + props = NULL; + + return 0; +} + |