From 263892c3b18be3cfa0e749fe2e8b9703e6e30c16 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 1 Aug 2010 12:12:11 +0300 Subject: modified: api/api.h modified: core/main.cpp modified: modules/example/main.cpp --- api/api.h | 12 ++++++++++++ core/main.cpp | 2 ++ modules/example/main.cpp | 1 + 3 files changed, 15 insertions(+) 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 +#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 +#include "../api/api.h" HINSTANCE hDllInstance=NULL; BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, -- cgit v1.2.3