Skip to content

Commit

Permalink
Merge pull request #19 from nikkej/master
Browse files Browse the repository at this point in the history
C linkage guard and missing symbol for libinfnoise exports
  • Loading branch information
manuel-domke authored Aug 12, 2019
2 parents 9307c44 + aa8e2ee commit e80ddd7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions software/libinfnoise.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion software/libinfnoise.version
Original file line number Diff line number Diff line change
@@ -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
};

0 comments on commit e80ddd7

Please sign in to comment.