Merge pull request #19 from nikkej/master
C linkage guard and missing symbol for libinfnoise exports
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user