3#ifdef WEB_FRAMEWORK_DLL
8#define EXPORT extern "C" __attribute__((visibility("default")))
10#define EXPORT extern "C" __declspec(dllexport)
15typedef void* WebFramework;
16typedef void* Exception;
18EXPORT
void deleteWebFrameworkString(String
string);
20EXPORT
void deleteWebFrameworkConfig(Config config);
22EXPORT
void deleteWebFramework(WebFramework webFramework);
24EXPORT
void deleteWebFrameworkException(Exception exception);
26EXPORT
const char* getDataFromString(String
string);
30EXPORT WebFramework createWebFrameworkFromPath(
const char* configPath, Exception* exception);
32EXPORT WebFramework createWebFrameworkFromString(
const char* serverConfiguration,
const char* applicationDirectory, Exception* exception);
34EXPORT WebFramework createWebFrameworkFromConfig(Config config, Exception* exception);
36EXPORT Config createConfigFromPath(
const char* configPath, Exception* exception);
38EXPORT Config createConfigFromString(
const char* serverConfiguration,
const char* applicationDirectory, Exception* exception);
42EXPORT
void startWebFrameworkServerCXX(WebFramework server,
bool wait,
void* onStartServer, Exception* exception);
44EXPORT
void startWebFrameworkServer(WebFramework server,
bool wait,
void (*onStartServer)(), Exception* exception);
46EXPORT
void stopWebFrameworkServer(WebFramework server,
bool wait, Exception* exception);
48EXPORT
bool isServerRunning(WebFramework server, Exception* exception);
50EXPORT
const char* getWebFrameworkVersion();
52EXPORT
void overrideConfigurationString(Config config,
const char* key,
const char* value,
bool recursive, Exception* exception);
54EXPORT
void overrideConfigurationInteger(Config config,
const char* key, int64_t value,
bool recursive, Exception* exception);
56EXPORT
void overrideConfigurationBoolean(Config config,
const char* key,
bool value,
bool recursive, Exception* exception);
58EXPORT
void overrideConfigurationStringArray(Config config,
const char* key,
const char** value,
bool recursive, int64_t size, Exception* exception);
60EXPORT
void overrideConfigurationIntegerArray(Config config,
const char* key,
const int64_t* value,
bool recursive, int64_t size, Exception* exception);
62EXPORT
void overrideBasePath(Config config,
const char* basePath, Exception* exception);
64EXPORT String getConfigurationString(Config config,
const char* key,
bool recursive, Exception* exception);
66EXPORT int64_t getConfigurationInteger(Config config,
const char* key,
bool recursive, Exception* exception);
68EXPORT
bool getConfigurationBoolean(Config config,
const char* key,
bool recursive, Exception* exception);
70EXPORT
void* getConfiguration(Config config, Exception* exception);
72EXPORT
const char* getRawConfiguration(Config config, Exception* exception);
74EXPORT
void* getBasePath(Config config, Exception* exception);
78EXPORT
const char* getErrorMessage(Exception exception);