Skip to content

Commit

Permalink
Fix test (hopefully) (#68)
Browse files Browse the repository at this point in the history
* Fix "bindings changed"

* Also run workflow on PR
  • Loading branch information
Sainan authored and simon-wh committed Oct 21, 2024
1 parent 304f92f commit 2d77f3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test CI

on: push
on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
Expand Down
33 changes: 0 additions & 33 deletions includes/wooting-analog-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,6 @@ typedef enum WootingAnalogResult {
WootingAnalogResult_DLLNotFound = -1990,
} WootingAnalogResult;

/**
* The core `DeviceInfo` struct which contains all the interesting information
* for a particular device. This is for use internally and should be ignored if you're
* trying to use it when trying to interact with the SDK using the wrapper
*/
typedef struct WootingAnalog_DeviceInfo WootingAnalog_DeviceInfo;

typedef uint64_t WootingAnalog_DeviceID;

/**
Expand Down Expand Up @@ -141,29 +134,3 @@ typedef struct WootingAnalog_DeviceInfo_FFI {
*/
enum WootingAnalog_DeviceType device_type;
} WootingAnalog_DeviceInfo_FFI;

#ifdef __cplusplus
extern "C" {
#endif // __cplusplus

/**
* Create a new device info struct. This is only for use in Plugins that are written in C
* Rust plugins should use the native constructor
* The memory for the struct has been allocated in Rust. So `drop_device_info` must be called
* for the memory to be properly released
*/
struct WootingAnalog_DeviceInfo *new_device_info(uint16_t vendor_id,
uint16_t product_id,
char *manufacturer_name,
char *device_name,
WootingAnalog_DeviceID device_id,
enum WootingAnalog_DeviceType device_type);

/**
* Drops the given `DeviceInfo`
*/
void drop_device_info(struct WootingAnalog_DeviceInfo *device);

#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus

0 comments on commit 2d77f3d

Please sign in to comment.