Enlightenment CVS committal Author : onefang Project : e17 Module : apps/e_utils
Dir : e17/apps/e_utils/src/bin/e17genmenu/src/bin Modified Files: fdo_paths.c parse.c parse.h Log Message: Add a generic ini-style file parser. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/e17genmenu/src/bin/fdo_paths.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- fdo_paths.c 1 Feb 2006 23:00:01 -0000 1.5 +++ fdo_paths.c 3 Feb 2006 00:15:12 -0000 1.6 @@ -46,6 +46,10 @@ static int _fdo_paths_cb_exe_exit(void *data, int type, void *event); +/* + * This conforms with XDG Base Directory Specification version 0.6 + */ + void fdo_paths_init() { =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/e17genmenu/src/bin/parse.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- parse.c 1 Feb 2006 09:41:25 -0000 1.4 +++ parse.c 3 Feb 2006 00:15:12 -0000 1.5 @@ -391,3 +391,14 @@ process_file(file, eap); free(eap); } + +Ecore_Hash *parse_ini_file(char *file) +{ + Ecore_Hash *result; + + result = ecore_hash_new(ecore_str_hash, ecore_str_compare); + if (result) + { + } + return result; +} =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/e17genmenu/src/bin/parse.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- parse.h 31 Jan 2006 22:04:17 -0000 1.2 +++ parse.h 3 Feb 2006 00:15:12 -0000 1.3 @@ -4,6 +4,7 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> +#include <Ecore_Data.h> /* Function Prototypes */ char *get_t(char *icon); @@ -12,5 +13,6 @@ void parse_desktop_file(char *path); void parse_debian_file(char *file); void process_file(char *file, G_Eap *eap); +Ecore_Hash *parse_ini_file(char *file); #endif ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs