Enlightenment CVS committal Author : chaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/plugins/meta Modified Files: evfs_meta_extractor.c Log Message: * Change back to bringing in evfs_metadata.c via libevfs - otherwise objects that are dlopened can't access the same resource pointers (i.e sqlite*), as the main evfs binary. * Start of a metadata 'fork' harvesting system =================================================================== RCS file: /cvs/e/e17/apps/evfs/src/plugins/meta/evfs_meta_extractor.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- evfs_meta_extractor.c 21 Jul 2006 17:07:00 -0000 1.2 +++ evfs_meta_extractor.c 22 Jul 2006 13:12:58 -0000 1.3 @@ -84,6 +84,8 @@ evfs_plugin_functions_meta* functions = calloc(1, sizeof(evfs_plugin_functions_meta)); functions->evfs_file_meta_retrieve = evfs_file_meta_retrieve; + _extractors = EXTRACTOR_loadDefaultLibraries(); + return functions; } @@ -93,8 +95,11 @@ Evas_List* ret_list = NULL; evfs_meta_obj* obj; char* key; + evfs_filereference* ref; + + ref = command->file_command.files[0]; - keywords=EXTRACTOR_getKeywords(_extractors, buffer); + keywords=EXTRACTOR_getKeywords(_extractors, ref->path); keywords=EXTRACTOR_removeDuplicateKeywords(keywords,0); while(keywords) { @@ -105,6 +110,8 @@ obj->key = strdup(key); obj->value = strdup(keywords->keyword); ret_list = evas_list_append(ret_list, obj); + + printf("Adding keyword %s -> %s\n", key, keywords->keyword); keywords = keywords->next; } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs