Skip to content
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
8 changes: 8 additions & 0 deletions include/splinterdb/data.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include "splinterdb/public_platform.h"
#include "splinterdb/public_util.h"

#ifdef __cplusplus
extern "C" {
#endif

/*
* Message type up to MESSAGE_TYPE_MAX_VALID_USER_TYPE is a
* disk-resident value (not including MESSAGE_TYPE_INVALID).
Expand Down Expand Up @@ -180,3 +184,7 @@ struct data_config {
key_to_str_fn key_to_string;
message_to_str_fn message_to_string;
};

#ifdef __cplusplus
}
#endif
8 changes: 8 additions & 0 deletions include/splinterdb/default_data_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@

#include "data.h"

#ifdef __cplusplus
extern "C" {
#endif

void
default_data_config_init(const uint64 max_key_size, // IN
data_config *out_cfg // OUT
);

#ifdef __cplusplus
}
#endif
8 changes: 8 additions & 0 deletions include/splinterdb/platform_linux/public_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
#include <stdint.h>
#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
#endif

// Types
typedef unsigned char uchar;
typedef int8_t int8;
Expand Down Expand Up @@ -97,3 +101,7 @@ platform_register_thread(void);
// Call this function before exiting a registered thread.
void
platform_deregister_thread(void);

#ifdef __cplusplus
}
#endif
8 changes: 8 additions & 0 deletions include/splinterdb/public_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

#include "splinterdb/public_platform.h"

#ifdef __cplusplus
extern "C" {
#endif

/*
* A slice is just a const pointer with a length. Slices do not
* manage the memory to which they point, i.e. slices do not allocate,
Expand Down Expand Up @@ -50,3 +54,7 @@ slice_data(const slice b)
{
return b.data;
}

#ifdef __cplusplus
}
#endif
8 changes: 8 additions & 0 deletions include/splinterdb/splinterdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

#include "data.h"

#ifdef __cplusplus
extern "C" {
#endif

// Get a version string for this build of SplinterDB
// Currently a git tag
const char *
Expand Down Expand Up @@ -393,3 +397,7 @@ splinterdb_stats_print_lookup(splinterdb *kvs);

void
splinterdb_stats_reset(splinterdb *kvs);

#ifdef __cplusplus
}
#endif
Loading