Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/include


Modified Files:
        entropy.h entropy_config.h 


Log Message:
* Implement a config versioning system.  Sorry guys, but this means your config 
will be wiped out more often.  If you have any suggestions for the default 
config (MIME->App mappings, etc), feel free to contact me

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/include/entropy.h,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- entropy.h   19 Mar 2006 04:28:42 -0000      1.25
+++ entropy.h   19 Mar 2006 10:38:47 -0000      1.26
@@ -140,4 +140,17 @@
 /* Random defines */
 #define ENTROPY_NULL_MIME "object/unidentified"
 
+#undef FREE
+#define FREE(dat) \
+{ \
+        free(dat); dat = NULL; \
+}
+
+#undef IF_FREE
+#define IF_FREE(dat) \
+{ \
+        if (dat) FREE(dat); \
+}
+
+
 #endif
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/include/entropy_config.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- entropy_config.h    19 Mar 2006 00:35:26 -0000      1.6
+++ entropy_config.h    19 Mar 2006 10:38:47 -0000      1.7
@@ -19,10 +19,11 @@
 };
 typedef struct Entropy_Config_Mime_Binding_Action 
Entropy_Config_Mime_Binding_Action;
 
-struct Entropy_Config_Mime {
+struct Entropy_Config_Loaded {
+       int config_version;
        Evas_List* mime_bindings;
 };
-typedef struct Entropy_Config_Mime Entropy_Config_Mime;
+typedef struct Entropy_Config_Loaded Entropy_Config_Loaded;
 
 
 struct Entropy_Config {
@@ -30,7 +31,8 @@
        char* config_dir_and_file;
        char* config_dir_and_file_eet;
 
-       Entropy_Config_Mime* Config_Mimes;
+       
+       Entropy_Config_Loaded* Loaded_Config;
 };
 typedef struct Entropy_Config Entropy_Config;
 
@@ -50,6 +52,9 @@
        instance, char *name, char *uri);
 void entropy_config_standard_structures_create ();
 void entropy_config_eet_config_save();
+void entropy_config_version_check();
+void entropy_config_edd_build();
+void entropy_config_loaded_config_free();
 
 
 #define ENTROPY_CONFIG_INT_UNDEFINED 65535




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to