summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api/api.h12
-rw-r--r--core/main.cpp2
-rw-r--r--modules/example/main.cpp1
3 files changed, 15 insertions, 0 deletions
diff --git a/api/api.h b/api/api.h
index e69de29..b98829f 100644
--- a/api/api.h
+++ b/api/api.h
@@ -0,0 +1,12 @@
+#ifndef API_H
+#define API_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+__declspec(dllexport) void GetPluginInfo(PluginInfo* pPluginInfo, DWORD *pdwResult);
+__declspec(dllexport) void PluginHandler(DWORD dwCode, HostInfo *pHostInfo, DWORD *pdwResult);
+#ifdef __cplusplus
+}
+#endif
+#endif //API_H
+
diff --git a/core/main.cpp b/core/main.cpp
index f93b81b..61e7579 100644
--- a/core/main.cpp
+++ b/core/main.cpp
@@ -1,4 +1,5 @@
#include <windows.h>
+#include "../api/api.h"
int main()
{
@@ -6,3 +7,4 @@ int main()
return 0;
}
+
diff --git a/modules/example/main.cpp b/modules/example/main.cpp
index 9b2af1b..3ba6fb5 100644
--- a/modules/example/main.cpp
+++ b/modules/example/main.cpp
@@ -1,4 +1,5 @@
#include <windows.h>
+#include "../api/api.h"
HINSTANCE hDllInstance=NULL;
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call,