summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2017-09-13 10:36:05 -0700
committerCedric Bail <cedric@osg.samsung.com>2017-09-13 10:36:05 -0700
commitaf452c439d10286e7dcdedb89163c2071eda8d0c (patch)
tree03f3b117e3cb23a6bc425b50762ec91a8b6f07ae /src
parentb737d4fea7141b8076dd01ee7c7dd8c2c54d3284 (diff)
eina: improve Eina_File support in Eina_Value.
Thanks Gustavo.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eina/eina_value.c4
-rw-r--r--src/lib/eina/eina_value.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/eina/eina_value.c b/src/lib/eina/eina_value.c
index 1fa84de231..59d54d8799 100644
--- a/src/lib/eina/eina_value.c
+++ b/src/lib/eina/eina_value.c
@@ -4682,7 +4682,7 @@ _eina_value_type_file_flush(const Eina_Value_Type *type EINA_UNUSED, void *mem)
4682{ 4682{
4683 Eina_File *f = *(Eina_File **)mem; 4683 Eina_File *f = *(Eina_File **)mem;
4684 4684
4685 eina_file_close(f); 4685 if (f) eina_file_close(f);
4686 return EINA_TRUE; 4686 return EINA_TRUE;
4687} 4687}
4688 4688
@@ -4771,7 +4771,7 @@ _eina_value_type_file_pget(const Eina_Value_Type *type EINA_UNUSED, const void *
4771EAPI const Eina_Value_Type _EINA_VALUE_TYPE_FILE = { 4771EAPI const Eina_Value_Type _EINA_VALUE_TYPE_FILE = {
4772 EINA_VALUE_TYPE_VERSION, 4772 EINA_VALUE_TYPE_VERSION,
4773 sizeof (Eina_File *), 4773 sizeof (Eina_File *),
4774 "Eina_Value_File", 4774 "Eina_File",
4775 _eina_value_type_file_setup, 4775 _eina_value_type_file_setup,
4776 _eina_value_type_file_flush, 4776 _eina_value_type_file_flush,
4777 _eina_value_type_file_copy, 4777 _eina_value_type_file_copy,
diff --git a/src/lib/eina/eina_value.h b/src/lib/eina/eina_value.h
index d698043463..090000706a 100644
--- a/src/lib/eina/eina_value.h
+++ b/src/lib/eina/eina_value.h
@@ -3671,7 +3671,7 @@ static inline const Eina_Value_Type *eina_value_optional_type_get(Eina_Value *va
3671 3671
3672/** 3672/**
3673 * @var EINA_VALUE_TYPE_FILE 3673 * @var EINA_VALUE_TYPE_FILE
3674 * manages optional type. 3674 * manages Eina_File type.
3675 * 3675 *
3676 * @since 1.21 3676 * @since 1.21
3677 */ 3677 */