Commit f857ab39 authored by Liu Qing's avatar Liu Qing Committed by Tomasz Zawadzki
Browse files

include: wrap dif.h in extern "C" for c++



All header files in include/spdk should include
extern "C" declarations.

Signed-off-by: default avatarLiu Qing <winglq@gmail.com>
Change-Id: If3c5c1e064c7fbf48425d31d5af1068b714af8fb
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21889


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
parent 82961f6d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -8,6 +8,10 @@
#include "spdk/stdinc.h"
#include "spdk/assert.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 * Use `SPDK_DIF_APPTAG_IGNORE` and `SPDK_DIF_REFTAG_IGNORE`
 * as the special values when creating DIF context, when the two
@@ -461,4 +465,7 @@ int spdk_dix_remap_ref_tag(struct iovec *md_iov, uint32_t num_blocks,
			   const struct spdk_dif_ctx *dif_ctx,
			   struct spdk_dif_error *err_blk,
			   bool check_ref_tag);
#ifdef __cplusplus
}
#endif
#endif /* SPDK_DIF_H */