From 0326182cb25bfaabdec8ebeb686401c4d7497932 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 27 Jan 2010 20:08:14 +0000 Subject: [PATCH] These files do not belong in here. SVN revision: 45638 --- src/modules/illume-softkey/e_mod_config.c | 65 ----------------------- src/modules/illume-softkey/e_mod_config.h | 22 -------- 2 files changed, 87 deletions(-) delete mode 100644 src/modules/illume-softkey/e_mod_config.c delete mode 100644 src/modules/illume-softkey/e_mod_config.h diff --git a/src/modules/illume-softkey/e_mod_config.c b/src/modules/illume-softkey/e_mod_config.c deleted file mode 100644 index 54da81ffe..000000000 --- a/src/modules/illume-softkey/e_mod_config.c +++ /dev/null @@ -1,65 +0,0 @@ -#include "e.h" -#include "e_mod_main.h" -#include "e_mod_config.h" - -EAPI Il_Sk_Config *il_sk_cfg = NULL; -static E_Config_DD *conf_edd = NULL; - -/* public functions */ -int -il_sk_config_init(E_Module *m) -{ - conf_edd = E_CONFIG_DD_NEW("Illume-Softkey_Cfg", Il_Sk_Config); - #undef T - #undef D - #define T Il_Sk_Config - #define D conf_edd - E_CONFIG_VAL(D, T, version, INT); - - il_sk_cfg = e_config_domain_load("module.illume-softkey", conf_edd); - if ((il_sk_cfg) && - ((il_sk_cfg->version >> 16) < IL_CONFIG_MAJ)) - { - E_FREE(il_sk_cfg); - il_sk_cfg = NULL; - } - if (!il_sk_cfg) - { - il_sk_cfg = E_NEW(Il_Sk_Config, 1); - il_sk_cfg->version = 0; - } - if (il_sk_cfg) - { - /* Add new config variables here */ - /* if ((il_sk_cfg->version & 0xffff) < 1) */ - il_sk_cfg->version = (IL_CONFIG_MAJ << 16) | IL_CONFIG_MIN; - } - il_sk_cfg->mod_dir = eina_stringshare_add(m->dir); - return 1; -} - -int -il_sk_config_shutdown(void) -{ - if (il_sk_cfg->mod_dir) eina_stringshare_del(il_sk_cfg->mod_dir); - il_sk_cfg->mod_dir = NULL; - - E_FREE(il_sk_cfg); - il_sk_cfg = NULL; - - E_CONFIG_DD_FREE(conf_edd); - return 1; -} - -int -il_sk_config_save(void) -{ - e_config_domain_save("module.illume-softkey", conf_edd, il_sk_cfg); - return 1; -} - -void -il_sk_config_show(E_Container *con, const char *params) -{ - -} diff --git a/src/modules/illume-softkey/e_mod_config.h b/src/modules/illume-softkey/e_mod_config.h deleted file mode 100644 index 735118a13..000000000 --- a/src/modules/illume-softkey/e_mod_config.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef E_MOD_CONFIG_H -#define E_MOD_CONFIG_H - -#define IL_CONFIG_MIN 0 -#define IL_CONFIG_MAJ 0 - -typedef struct _Il_Sk_Config Il_Sk_Config; -struct _Il_Sk_Config -{ - int version; - - const char *mod_dir; -}; - -int il_sk_config_init(E_Module *m); -int il_sk_config_shutdown(void); -int il_sk_config_save(void); -void il_sk_config_show(E_Container *con, const char *params); - -extern EAPI Il_Sk_Config *il_sk_cfg; - -#endif