summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_file.c
diff options
context:
space:
mode:
authorIvan Furs <i.furs@samsung.com>2017-02-07 14:50:32 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-02-07 15:14:54 -0800
commit808fcf4daeb8fa7eeef276c72e34c441c09e3214 (patch)
tree06097d0df6a2e5662dcd2c18d35b2c7b5132c036 /src/lib/eina/eina_file.c
parentb04fa2ddba67528c1faacbac6d864b6b21f3dd64 (diff)
eina_file: add eina_file_unlink
Test Plan: split D4423 - unlink Reviewers: raster, vtorri, an.kroitor, jpeg, reutskiy.v.v, NikaWhite, cedric Reviewed By: cedric Subscribers: artem.popov, cedric, vtorri, jpeg Tags: #windows, #efl Differential Revision: https://phab.enlightenment.org/D4485 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/eina/eina_file.c')
-rw-r--r--src/lib/eina/eina_file.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/eina/eina_file.c b/src/lib/eina/eina_file.c
index cb29f28..c378ea5 100644
--- a/src/lib/eina/eina_file.c
+++ b/src/lib/eina/eina_file.c
@@ -898,6 +898,16 @@ eina_file_refresh(Eina_File *file)
898 return r; 898 return r;
899} 899}
900 900
901EAPI Eina_Bool
902eina_file_unlink(const char *pathname)
903{
904 if ( unlink(pathname) < 0)
905 {
906 return EINA_FALSE;
907 }
908 return EINA_TRUE;
909}
910
901EAPI void * 911EAPI void *
902eina_file_map_all(Eina_File *file, Eina_File_Populate rule) 912eina_file_map_all(Eina_File *file, Eina_File_Populate rule)
903{ 913{