int main (int argc, char *argv[]) { const char *result; const char *file_name; int i; test_glob_type (); test_aliasing (); test_subclassing (); test_matches (); test_icons (); for (i = 1; i < argc; i++) { file_name = argv[i]; result = xdg_mime_get_mime_type_for_file (file_name, NULL); printf ("File \"%s\" has a mime-type of %s\n", file_name, result); } #if 0 xdg_mime_dump (); #endif return 0; }
static PyObject *dump (PyObject *self, PyObject *args) { xdg_mime_dump(); Py_RETURN_NONE; }