Initial commit

This commit is contained in:
faumaray committed 2026-02-01 23:05:41 +03:00
commit b4073ddf1e
20 files changed
+2747

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
#pragma once
#include "CoreInterface.hpp"
// Platform-specific export macros
#ifdef _WIN32
#ifdef ECHOION_API_EXPORT
#define ECHOION_API __declspec(dllexport)
#else
#define ECHOION_API __declspec(dllimport)
#endif
#else
#define ECHOION_API __attribute__((visibility("default")))
#endif
namespace Echoion::Api {
// Version information
constexpr uint32_t VERSION_MAJOR = 1;
constexpr uint32_t VERSION_MINOR = 0;
constexpr uint32_t VERSION_PATCH = 0;
constexpr const char* VERSION_STRING = "1.0.0";
// API export functions
extern "C" {
// Create a new core instance
ECHOION_API CoreInterfacePtr CreateCore();
// Destroy a core instance
ECHOION_API void DestroyCore(ICoreInterface* core);
// Get API version
ECHOION_API const char* GetApiVersion();
// Check if API is compatible
ECHOION_API bool IsApiCompatible(uint32_t major, uint32_t minor);
}
} // namespace Echoion::Api