summaryrefslogtreecommitdiff
path: root/src/bindings
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/bindings
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/bindings')
-rw-r--r--src/bindings/luajit/eina/file.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bindings/luajit/eina/file.lua b/src/bindings/luajit/eina/file.lua
index d776047..675b810 100644
--- a/src/bindings/luajit/eina/file.lua
+++ b/src/bindings/luajit/eina/file.lua
@@ -97,6 +97,7 @@ ffi.cdef [[
97 Eina_File_Copy_Flags flags, Eina_File_Copy_Progress cb, 97 Eina_File_Copy_Flags flags, Eina_File_Copy_Progress cb,
98 const void *cb_data); 98 const void *cb_data);
99 Eina_File *eina_file_open(const char *name, Eina_Bool shared); 99 Eina_File *eina_file_open(const char *name, Eina_Bool shared);
100 Eina_Bool eina_file_unlink(const char *pathname);
100 Eina_File *eina_file_virtualize(const char *virtual_name, 101 Eina_File *eina_file_virtualize(const char *virtual_name,
101 const void *data, unsigned long long length, Eina_Bool copy); 102 const void *data, unsigned long long length, Eina_Bool copy);
102 Eina_Bool eina_file_virtual(Eina_File *file); 103 Eina_Bool eina_file_virtual(Eina_File *file);
@@ -315,6 +316,11 @@ M.File = ffi.metatype("Eina_File", {
315 open = function(name, shared) 316 open = function(name, shared)
316 return eina.eina_file_open(name, shared) 317 return eina.eina_file_open(name, shared)
317 end, 318 end,
319
320 unlink = function(self)
321 return eina.eina_file_unlink(pathname)
322 end,
323
318 virtualize = function(vname, data, length, copy) 324 virtualize = function(vname, data, length, copy)
319 return eina.eina_file_virtualize(vname, data, length, 325 return eina.eina_file_virtualize(vname, data, length,
320 copy or false) 326 copy or false)