Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update plugin.h for ABIv1 #84

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions includes/plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#else
#define ANALOGSDK_EXPORT __declspec(dllimport)
#endif
#pragma comment(lib, "userenv.lib")
#pragma comment(lib, "WS2_32")
#else
#define ANALOGSDK_EXPORT
#endif
Expand All @@ -21,7 +19,7 @@
#define ANALOGSDK_API ANALOGSDK_EXPORT
#endif

const uint32_t ANALOG_SDK_PLUGIN_ABI_VERSION = 1;
ANALOGSDK_API const uint32_t ANALOG_SDK_PLUGIN_ABI_VERSION = 1;

typedef void (*device_event)(void const *, WootingAnalog_DeviceEventType,
const WootingAnalog_DeviceInfo_FFI *);
Expand Down
1 change: 1 addition & 0 deletions wooting-analog-sdk/test_c_plugin/src/plugin.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define ANALOGSDK_EXPORTS
#include "../../../includes/plugin.h"

static bool initialised = false;
Expand Down