diff options
author | Haru <haru@dotalux.com> | 2019-01-03 23:14:39 +0100 |
---|---|---|
committer | Dastgir <dastgirp@gmail.com> | 2019-10-02 12:12:32 +0530 |
commit | 557384a0628c82303db29ff0b81ac77c8fdb5a1d (patch) | |
tree | 8726dce1a315a52c99f97cc21e20b447f76eb358 /src/common/utils.h | |
parent | d95b2fd08db9acf768bc31e5c6cdb23a61876719 (diff) | |
download | hercules-557384a0628c82303db29ff0b81ac77c8fdb5a1d.tar.gz hercules-557384a0628c82303db29ff0b81ac77c8fdb5a1d.tar.bz2 hercules-557384a0628c82303db29ff0b81ac77c8fdb5a1d.tar.xz hercules-557384a0628c82303db29ff0b81ac77c8fdb5a1d.zip |
Extend the findfile() function with a general purpose context argument
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/utils.h')
-rw-r--r-- | src/common/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/utils.h b/src/common/utils.h index f564dcf29..81234c843 100644 --- a/src/common/utils.h +++ b/src/common/utils.h @@ -39,7 +39,7 @@ void WriteDump(FILE* fp, const void* buffer, size_t length); void ShowDump(const void* buffer, size_t length); -void findfile(const char *p, const char *pat, void (func)(const char*)); +void findfile(const char *p, const char *pat, void (func)(const char *, void *), void *context); bool exists(const char* filename); /// calculates the value of A / B, in percent (rounded down) |