From 5e74b8e653bcc319184d5c37f3897a893afb1374 Mon Sep 17 00:00:00 2001 From: Konrad Sztyber Date: Fri, 5 Jul 2019 13:35:13 +0200 Subject: [PATCH] lib/ftl: wrap header in extern "C" guards It makes it easier to include the header from c++ code. Change-Id: Ideea0cfb806dd9511e0d10b3e5ff75bddd141e36 Signed-off-by: Konrad Sztyber Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/460633 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk Reviewed-by: Shuhei Matsumoto --- include/spdk/ftl.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/spdk/ftl.h b/include/spdk/ftl.h index 59c5c450a..4df7cfbe9 100644 --- a/include/spdk/ftl.h +++ b/include/spdk/ftl.h @@ -41,6 +41,10 @@ #include "spdk/thread.h" #include "spdk/bdev.h" +#ifdef __cplusplus +extern "C" { +#endif + struct spdk_ftl_dev; /* Limit thresholds */ @@ -280,4 +284,8 @@ int spdk_ftl_write(struct spdk_ftl_dev *dev, struct spdk_io_channel *ch, uint64_ */ int spdk_ftl_flush(struct spdk_ftl_dev *dev, spdk_ftl_fn cb_fn, void *cb_arg); +#ifdef __cplusplus +} +#endif + #endif /* SPDK_FTL_H */