Merge pull request #19 from nikkej/master

C linkage guard and missing symbol for libinfnoise exports
This commit is contained in:
Manuel Domke
2019-08-12 21:24:02 +02:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -15,6 +15,10 @@
// We also write this in one go to the Keccak sponge, which is at most 1600 bits
#define BUFLEN 512u
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(_WIN32)
struct infnoise_context {
struct ftdi_context ftdic;
@@ -87,4 +91,8 @@ void deinitInfnoise(struct infnoise_context *context);
*/
uint32_t readData(struct infnoise_context *context, uint8_t *result, bool raw, uint32_t outputMultiplier);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -1,5 +1,5 @@
libinfnoise {
global: listUSBDevices; initInfnoise; readRawData; readData; # explicitly list symbols to be exported
global: listUSBDevices; initInfnoise; deinitInfnoise; readRawData; readData; # explicitly list symbols to be exported
local: *; # hide everything else
};