aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/temperature/e_mod_main.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2008-10-15 15:12:56 +0000
committerCedric BAIL <cedric.bail@free.fr>2008-10-15 15:12:56 +0000
commit3d6749983b0547353b900088f275c4f91abe315c (patch)
treecbce52ce14fd9b42c082f53cf411dd6ecb3ff893 /src/modules/temperature/e_mod_main.c
parentCorrectly include eina and fix pkg-config description. (diff)
downloadenlightenment-3d6749983b0547353b900088f275c4f91abe315c.tar.gz
Switch to eina_stringshare.
This could also change the usage of string share in E17. SVN revision: 36679
Diffstat (limited to 'src/modules/temperature/e_mod_main.c')
-rw-r--r--src/modules/temperature/e_mod_main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/temperature/e_mod_main.c b/src/modules/temperature/e_mod_main.c
index cc608df37..f1d75cae5 100644
--- a/src/modules/temperature/e_mod_main.c
+++ b/src/modules/temperature/e_mod_main.c
@@ -66,7 +66,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
if (!inst)
{
inst = E_NEW(Config_Face, 1);
- inst->id = evas_stringshare_add(id);
+ inst->id = eina_stringshare_add(id);
inst->poll_interval = 128;
inst->low = 30;
inst->high = 80;
@@ -75,7 +75,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
inst->units = CELCIUS;
temperature_config->faces = evas_hash_direct_add(temperature_config->faces, inst->id, inst);
}
- if (!inst->id) evas_stringshare_add(id);
+ if (!inst->id) eina_stringshare_add(id);
E_CONFIG_LIMIT(inst->poll_interval, 1, 1024);
E_CONFIG_LIMIT(inst->low, 0, 100);
E_CONFIG_LIMIT(inst->high, 0, 220);
@@ -177,7 +177,7 @@ _gc_id_new(void)
snprintf(id, sizeof(id), "%s.%d", _gadcon_class.name, ++uuid);
inst = E_NEW(Config_Face, 1);
- inst->id = evas_stringshare_add(id);
+ inst->id = eina_stringshare_add(id);
inst->poll_interval = 128;
inst->low = 30;
inst->high = 80;
@@ -197,7 +197,7 @@ _gc_id_del(const char *id)
if (inst)
{
temperature_config->faces = evas_hash_del(temperature_config->faces, id, inst);
- if (inst->sensor_name) evas_stringshare_del(inst->sensor_name);
+ if (inst->sensor_name) eina_stringshare_del(inst->sensor_name);
free(inst);
}
}
@@ -358,8 +358,8 @@ _temperature_face_shutdown(const Evas_Hash *hash __UNUSED__, const char *key __U
inst = hdata;
- if (inst->sensor_name) evas_stringshare_del(inst->sensor_name);
- if (inst->id) evas_stringshare_del(inst->id);
+ if (inst->sensor_name) eina_stringshare_del(inst->sensor_name);
+ if (inst->id) eina_stringshare_del(inst->id);
free(inst);
return 1;
}