summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authordyniusz <dyniusz@fb.com>2017-05-04 12:17:34 -0700
committerdyniusz <dyniusz@fb.com>2017-05-04 12:17:34 -0700
commit966fcbd4c226d8c433b6e9f9dbd28c5efd442d82 (patch)
treeaaf4d9a9512ad64f40054dfb335048f012fc2bf2 /file.h
parentc55fae03f7d5c0981e55241fc9003d762f7a5fd9 (diff)
downloadfio-966fcbd4c226d8c433b6e9f9dbd28c5efd442d82.tar.gz
fio-966fcbd4c226d8c433b6e9f9dbd28c5efd442d82.tar.bz2
Adjustments to support C++ engines
Diffstat (limited to 'file.h')
-rw-r--r--file.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/file.h b/file.h
index 9801bb58..4c2ebd4a 100644
--- a/file.h
+++ b/file.h
@@ -187,9 +187,15 @@ extern void close_and_free_files(struct thread_data *);
extern uint64_t get_start_offset(struct thread_data *, struct fio_file *);
extern int __must_check setup_files(struct thread_data *);
extern int __must_check file_invalidate_cache(struct thread_data *, struct fio_file *);
+#ifdef __cplusplus
+extern "C" {
+#endif
extern int __must_check generic_open_file(struct thread_data *, struct fio_file *);
extern int __must_check generic_close_file(struct thread_data *, struct fio_file *);
extern int __must_check generic_get_file_size(struct thread_data *, struct fio_file *);
+#ifdef __cplusplus
+}
+#endif
extern int __must_check file_lookup_open(struct fio_file *f, int flags);
extern int __must_check pre_read_files(struct thread_data *);
extern unsigned long long get_rand_file_size(struct thread_data *td);