Enlightenment CVS committal Author : mekius Project : e17 Module : libs/efreet
Dir : e17/libs/efreet/src/bin Modified Files: ef_mime.c Log Message: Updated quite a bit. API break: efreet_mime_get is now efreet_mime_type_get and it no longer accepts methods as a parameter. It will do the full check of the magic and glob rules based on recommendations in the spec. Also fixed the major leaks, still a few minor ones left. =================================================================== RCS file: /cvs/e/e17/libs/efreet/src/bin/ef_mime.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ef_mime.c 2 Jul 2007 22:01:44 -0000 1.3 +++ ef_mime.c 3 Jul 2007 04:47:29 -0000 1.4 @@ -9,7 +9,6 @@ int ef_mime_cb_get(void) { - Efreet_Mime_Method flags = EFREET_MIME_FLAG_GLOB; const char *mime = NULL; int misses = 0, i = 0; const char *files[] = {PACKAGE_DATA_DIR"/efreet/test/test_type.desktop", @@ -25,13 +24,12 @@ for (i = 0; i < (sizeof(files) / sizeof(const char *)); ++i) { - mime = efreet_mime_get(files[i], flags); + mime = efreet_mime_type_get(files[i]); if (!mime) { printf("Missed %s\n", files[i]); misses ++; } - flags <<= 1; } efreet_mime_shutdown(); ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs