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 */