From b8345246dcc2121bcb6d1515a9341789de20199f Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sun, 27 Oct 2024 09:04:05 -0500 Subject: First crack at file objects. --- test/test_common.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'test/test_common.hpp') diff --git a/test/test_common.hpp b/test/test_common.hpp index f049fed..3d7ecba 100644 --- a/test/test_common.hpp +++ b/test/test_common.hpp @@ -18,9 +18,15 @@ #ifndef FUD_TEST_COMMON_HPP #define FUD_TEST_COMMON_HPP +#include "fud_status.hpp" + #include #include +extern "C" { +int unlink_cb(const char* fpath, const struct stat* sb_unused, int typeflag, struct FTW* ftwbuf); +} + namespace fud { // NOLINTBEGIN(cppcoreguidelines-macro-usage) @@ -70,11 +76,14 @@ struct MockFudAllocator { void deallocate(void* pointer); MockFudAlloc* m_allocator{&globalDefaultMockAlloc}; - MockFudDealloc* m_deallocator{&globalDefaultMockDealloc};; + MockFudDealloc* m_deallocator{&globalDefaultMockDealloc}; }; extern MockFudAllocator globalMockFudAlloc; -} // namespace ext_lib +class String; +FudStatus removeRecursive(const String& path); + +} // namespace fud #endif -- cgit v1.2.3