From 6d78cac6559134b8013cd83eca3866ab22ae05dd Mon Sep 17 00:00:00 2001 From: Xusheng Date: Fri, 24 Nov 2023 17:06:08 +0800 Subject: Implement BN family of APIs based on std::filesystem --- binaryninjacore.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/binaryninjacore.h b/binaryninjacore.h index 229f708c..2bad8b38 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -6307,8 +6307,8 @@ extern "C" BINARYNINJACOREAPI void BNLlvmServicesAssembleFree(char* outBytes, char* err); // Filesystem functionality - BINARYNINJACOREAPI int BNDeleteFile(const char* path); - BINARYNINJACOREAPI int BNDeleteDirectory(const char* path, int contentsOnly); + BINARYNINJACOREAPI bool BNDeleteFile(const char* path); + BINARYNINJACOREAPI bool BNDeleteDirectory(const char* path); BINARYNINJACOREAPI bool BNCreateDirectory(const char* path, bool createSubdirectories); BINARYNINJACOREAPI bool BNPathExists(const char* path); BINARYNINJACOREAPI char* BNGetParentPath(const char* path); @@ -6317,8 +6317,8 @@ extern "C" BINARYNINJACOREAPI bool BNFileSize(const char* path, uint64_t* size); BINARYNINJACOREAPI bool BNRenameFile(const char* source, const char* dest); BINARYNINJACOREAPI bool BNCopyFile(const char* source, const char* dest); - BINARYNINJACOREAPI const char* BNGetFileName(const char* path); - BINARYNINJACOREAPI const char* BNGetFileExtension(const char* path); + BINARYNINJACOREAPI char* BNGetFileName(const char* path); + BINARYNINJACOREAPI char* BNGetFileExtension(const char* path); BINARYNINJACOREAPI char** BNGetFilePathsInDirectory(const char* path, size_t* count); BINARYNINJACOREAPI char* BNAppendPath(const char* path, const char* part); BINARYNINJACOREAPI void BNFreePath(char* path); -- cgit v1.3.1