diff options
author | David Robillard <d@drobilla.net> | 2012-01-08 03:55:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-08 03:55:00 +0000 |
commit | c8d1e0d49e2808e225e496cff0cfc8d0de72adc9 (patch) | |
tree | 88966c4aa03bee4d417085e060eb125838b750a1 /src/lilv_internal.h | |
parent | 47bdfa160502acc78cb90f350258fe975e4f956f (diff) | |
download | lilv-c8d1e0d49e2808e225e496cff0cfc8d0de72adc9.tar.gz lilv-c8d1e0d49e2808e225e496cff0cfc8d0de72adc9.tar.bz2 lilv-c8d1e0d49e2808e225e496cff0cfc8d0de72adc9.zip |
Localise directory traversal stuff.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3920 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/lilv_internal.h')
-rw-r--r-- | src/lilv_internal.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lilv_internal.h b/src/lilv_internal.h index 9950a61..43f92cd 100644 --- a/src/lilv_internal.h +++ b/src/lilv_internal.h @@ -342,8 +342,6 @@ char* lilv_strdup(const char* str); char* lilv_get_lang(void); char* lilv_expand(const char* path); char* lilv_dirname(const char* path); -char* lilv_find_free_path( - const char* in_path, bool (*exists)(const char*, void*), void* user_data); int lilv_copy_file(const char* src, const char* dst); bool lilv_path_exists(const char* path, void* ignored); bool lilv_path_is_absolute(const char* path); @@ -352,6 +350,15 @@ char* lilv_path_relative_to(const char* path, const char* base); bool lilv_path_is_child(const char* path, const char* dir); int lilv_flock(FILE* file, bool lock); +char* +lilv_find_free_path(const char* in_path, + bool (*exists)(const char*, void*), void* user_data); + +void +lilv_dir_for_each(const char* path, + void* data, + void (*f)(const char* path, const char* name, void* data)); + typedef void (*VoidFunc)(void); /** dlsym wrapper to return a function pointer (without annoying warning) */ |