From 9bcfef421b420061f7342e5517d226aa9f58dbdd Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 8 May 2001 22:05:00 +0000 Subject: Walk a hierarchy using the "/subfolders/" convention and call a callback * e-path.c (e_path_find_folders): Walk a hierarchy using the "/subfolders/" convention and call a callback for each folder found. svn path=/trunk/; revision=9721 --- e-util/e-path.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'e-util/e-path.h') diff --git a/e-util/e-path.h b/e-util/e-path.h index 808b666d9e..50a3507363 100644 --- a/e-util/e-path.h +++ b/e-util/e-path.h @@ -21,6 +21,16 @@ #ifndef __E_PATH__ #define __E_PATH__ -char *e_path_to_physical (const char *prefix, const char *vpath); +#include + +typedef gboolean (*EPathFindFoldersCallback) (const char *physical_path, + const char *path, + gpointer user_data); + +char * e_path_to_physical (const char *prefix, const char *vpath); + +gboolean e_path_find_folders (const char *prefix, + EPathFindFoldersCallback callback, + gpointer data); #endif /* __E_PATH__ */ -- cgit v1.2.3