Enlightenment CVS committal
Author : sebastid
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_file
Modified Files:
Ecore_File.h ecore_file.c
Log Message:
New func
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/Ecore_File.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- Ecore_File.h 28 Sep 2005 05:57:41 -0000 1.15
+++ Ecore_File.h 5 Oct 2005 18:38:27 -0000 1.16
@@ -48,24 +48,26 @@
} Ecore_File_Event;
- EAPI int ecore_file_init (void);
- EAPI int ecore_file_shutdown (void);
- EAPI time_t ecore_file_mod_time (const char *file);
- EAPI int ecore_file_exists (const char *file);
- EAPI int ecore_file_is_dir (const char *file);
- EAPI int ecore_file_mkdir (const char *dir);
- EAPI int ecore_file_rmdir (const char *dir);
- 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 char *ecore_file_realpath (const char *file);
- EAPI int ecore_file_unlink (const char *file);
- EAPI char *ecore_file_get_file (char *path);
- EAPI char *ecore_file_get_dir (char *path);
+ EAPI int ecore_file_init (void);
+ EAPI int ecore_file_shutdown (void);
+ EAPI time_t ecore_file_mod_time (const char *file);
+ EAPI int ecore_file_exists (const char *file);
+ EAPI int ecore_file_is_dir (const char *file);
+ EAPI int ecore_file_mkdir (const char *dir);
+ EAPI int ecore_file_rmdir (const char *dir);
+ 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 char *ecore_file_realpath (const char *file);
+ EAPI int ecore_file_unlink (const char *file);
+ EAPI char *ecore_file_get_file (char *path);
+ EAPI char *ecore_file_get_dir (char *path);
- EAPI int ecore_file_can_exec (const char *file);
- EAPI char *ecore_file_readlink (const char *link);
- EAPI Ecore_List *ecore_file_ls (const char *dir);
+ EAPI int ecore_file_can_exec (const char *file);
+ EAPI char *ecore_file_readlink (const char *link);
+ EAPI Ecore_List *ecore_file_ls (const char *dir);
+ EAPI char *ecore_file_app_exe_get (const char *app);
+ EAPI char *ecore_file_strip_ext (const char *file);
EAPI Ecore_File_Monitor *ecore_file_monitor_add(const char *path,
void (*func) (void *data,
@@ -77,7 +79,6 @@
EAPI const char *ecore_file_monitor_path_get(Ecore_File_Monitor
*ecore_file_monitor);
EAPI int ecore_file_app_installed(const char *exe);
- EAPI char *ecore_file_app_exe_get(const char *app);
EAPI int ecore_file_download(const char *url, const char *dst,
void (*completion_cb)(void *data,
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/ecore_file.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- ecore_file.c 2 Oct 2005 15:44:24 -0000 1.23
+++ ecore_file.c 5 Oct 2005 18:38:27 -0000 1.24
@@ -374,3 +374,17 @@
*pp = 0;
return exe;
}
+
+char *
+ecore_file_strip_ext(const char *path)
+{
+ char *p;
+
+ file = strdup(path);
+
+ p = strrchr(file, '.');
+ if (p)
+ *p = 0;
+
+ return file;
+}
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs