Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_config.c 


Log Message:
* More config dialog work - nearly there.

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/entropy_config.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- entropy_config.c    15 Jul 2006 12:50:54 -0000      1.19
+++ entropy_config.c    31 Aug 2006 10:42:09 -0000      1.20
@@ -299,6 +299,9 @@
        _Entropy_Config = entropy_malloc(sizeof(Entropy_Config));
        mimes = entropy_malloc(sizeof(Entropy_Config_Loaded));
 
+       /*Init the misc hash*/
+       entropy_config_items_init();
+
 
        i = strlen(entropy_core_home_dir_get()) + strlen("/.e/entropy") + 2;
        _Entropy_Config->config_dir = entropy_malloc(i * sizeof(char));
@@ -486,8 +489,6 @@
 
 }
 
-
-
 /*Config helper functions*/
 void entropy_config_defaults_populate(Entropy_Config_Loaded* config)
 {
@@ -573,14 +574,8 @@
                config->structures = evas_list_append(config->structures, 
                                entropy_config_structure_new("Virtual Folders", 
"vfolder:///")
                                );
-
-               
-
-       
 }
 
-
-
 Evas_List *
 entropy_config_standard_structures_parse (entropy_gui_component_instance * 
instance,
                                char *config)
@@ -622,3 +617,18 @@
   free (eg);
 }
 
+void entropy_config_items_init()
+{
+       _Entropy_Config->Misc_Config = ecore_hash_new(ecore_str_hash, 
ecore_str_compare);
+}
+
+void entropy_config_misc_item_set_str(char* item, char* value)
+{
+       ecore_hash_set(_Entropy_Config->Misc_Config, strdup(item), 
strdup(value));
+       printf ("Set '%s' -> '%s'\n",item, value);
+}
+
+char* entropy_config_misc_item_get_str(char* item)
+{
+       return ecore_hash_get(_Entropy_Config->Misc_Config, item);
+}



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to