feat: add header for lib

This commit is contained in:
2024-03-25 09:07:01 +08:00
parent 53b0d99431
commit 5c970f4a09
3 changed files with 38 additions and 24 deletions
+1 -7
View File
@@ -1,10 +1,4 @@
#include "ncmcrypt.h"
#ifdef _WIN32
#define API __declspec(dllexport)
#else
#define API
#endif
#include "libncmdump.h"
extern "C" {
API NeteaseCrypt* CreateNeteaseCrypt(const char* path) {
+14
View File
@@ -0,0 +1,14 @@
#include "ncmcrypt.h"
#ifdef _WIN32
#define API __declspec(dllexport)
#else
#define API
#endif
extern "C" {
API NeteaseCrypt* CreateNeteaseCrypt(const char* path);
API int Dump(NeteaseCrypt* neteaseCrypt);
API void FixMetadata(NeteaseCrypt* neteaseCrypt);
API void DestroyNeteaseCrypt(NeteaseCrypt* neteaseCrypt);
}