Commit da6841e4 authored by Sebastian Brzezinka's avatar Sebastian Brzezinka Committed by Jim Harris
Browse files

include/spdk: Add `extern "C"` to `/include/spdk` header files

parent 75389ed6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -13,6 +13,10 @@
#include "spdk/queue.h"
#include "spdk/config.h"

#ifdef __cplusplus
extern "C" {
#endif

struct spdk_accel_module_if;
struct spdk_accel_task;

@@ -373,4 +377,8 @@ struct spdk_accel_task *spdk_accel_sequence_next_task(struct spdk_accel_task *ta
 */
struct spdk_accel_module_if *spdk_accel_get_module(const char *name);

#ifdef __cplusplus
}
#endif

#endif
+8 −0
Original line number Diff line number Diff line
@@ -15,6 +15,10 @@

#include "spdk/assert.h"

#ifdef __cplusplus
extern "C" {
#endif

#pragma pack(push, 1)

#define SPDK_MBR_SIGNATURE 0xAA55
@@ -113,4 +117,8 @@ SPDK_STATIC_ASSERT(sizeof(struct spdk_gpt_partition_entry) == 128, "size incorre

#pragma pack(pop)

#ifdef __cplusplus
}
#endif

#endif
+8 −0
Original line number Diff line number Diff line
@@ -8,6 +8,10 @@

#include "spdk/stdinc.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 * Convert a binary array to hexlified string terminated by zero.
 *
@@ -25,4 +29,8 @@ char *spdk_hexlify(const char *bin, size_t len);
 */
char *spdk_unhexlify(const char *hex);

#ifdef __cplusplus
}
#endif

#endif /* SPDK_HEXLIFY_H */
+8 −0
Original line number Diff line number Diff line
@@ -16,6 +16,10 @@

#include "spdk/assert.h"

#ifdef __cplusplus
extern "C" {
#endif

#define ISCSI_BHS_LEN 48
#define ISCSI_DIGEST_LEN 4
#define ISCSI_ALIGNMENT 4
@@ -536,4 +540,8 @@ struct iscsi_ahs {
#define ISCSI_LOGIN_STATUS_SERVICE_UNAVAILABLE	0x01
#define ISCSI_LOGIN_STATUS_NO_RESOURCES		0x02

#ifdef __cplusplus
}
#endif

#endif /* SPDK_ISCSI_SPEC_H */
+8 −0
Original line number Diff line number Diff line
@@ -8,6 +8,10 @@
#include "spdk/stdinc.h"
#include "spdk/json.h"

#ifdef __cplusplus
extern "C" {
#endif

struct spdk_key;

/**
@@ -90,4 +94,8 @@ void spdk_keyring_for_each_key(struct spdk_keyring *keyring, void *ctx,
 */
void spdk_keyring_write_config(struct spdk_json_write_ctx *w);

#ifdef __cplusplus
}
#endif

#endif /* SPDK_KEYRING_H */
Loading