From 93dd8ce0fcae3f3111c3eab4de0d20b053f44441 Mon Sep 17 00:00:00 2001 From: codewarrior Date: Tue, 3 Jan 2006 00:18:42 +0000 Subject: [PATCH] - ++authors - add ecore_file_symlink SVN revision: 19506 --- legacy/ecore/AUTHORS | 1 + legacy/ecore/src/lib/ecore_file/Ecore_File.h | 1 + legacy/ecore/src/lib/ecore_file/ecore_file.c | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/legacy/ecore/AUTHORS b/legacy/ecore/AUTHORS index e13fe0fc25..4f93c053a4 100644 --- a/legacy/ecore/AUTHORS +++ b/legacy/ecore/AUTHORS @@ -17,3 +17,4 @@ Jorge Luis Zapata Muga dan sinclair Michael 'Mickey' Lauer David 'onefang' Seikel +Hisham 'CodeWarrior' Mardam Bey diff --git a/legacy/ecore/src/lib/ecore_file/Ecore_File.h b/legacy/ecore/src/lib/ecore_file/Ecore_File.h index 80bfd152fe..e111f552bb 100644 --- a/legacy/ecore/src/lib/ecore_file/Ecore_File.h +++ b/legacy/ecore/src/lib/ecore_file/Ecore_File.h @@ -64,6 +64,7 @@ extern "C" { EAPI int ecore_file_mkpath (const char *path); EAPI int ecore_file_cp (const char *src, const char *dst); EAPI int ecore_file_mv (const char *src, const char *dst); + EAPI int ecore_file_symlink (const char *src, const char *dest); EAPI char *ecore_file_realpath (const char *file); EAPI int ecore_file_unlink (const char *file); EAPI const char *ecore_file_get_file (const char *path); diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c index a6e97ab4b6..97538bd9ed 100644 --- a/legacy/ecore/src/lib/ecore_file/ecore_file.c +++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c @@ -211,6 +211,14 @@ ecore_file_mv(const char *src, const char *dst) return 1; } +int +ecore_file_symlink(const char *src, const char *dest) +{ + if(!symlink(src, dest)) + return 1; + return 0; +} + char * ecore_file_realpath(const char *file) {