Commit e1d0c6d0 authored by Ammar Faizi's avatar Ammar Faizi Committed by Jens Axboe
Browse files

io_uring: uapi: Add `extern "C"` in io_uring.h for liburing

Make it easy for liburing to integrate uapi header with the kernel.
Previously, when this header changes, the liburing side can't directly
copy this header file due to some small differences. Sync them.

Link: https://lore.kernel.org/io-uring/f1feef16-6ea2-0653-238f-4aaee35060b6@kernel.dk


Cc: Bart Van Assche <bvanassche@acm.org>
Cc: Dylan Yudaken <dylany@fb.com>
Cc: Facebook Kernel Team <kernel-team@fb.com>
Signed-off-by: default avatarAmmar Faizi <ammarfaizi2@gnuweeb.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c2fa700c
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -12,6 +12,10 @@
#include <linux/types.h>
#include <linux/types.h>
#include <linux/time_types.h>
#include <linux/time_types.h>


#ifdef __cplusplus
extern "C" {
#endif

/*
/*
 * IO submission data structure (Submission Queue Entry)
 * IO submission data structure (Submission Queue Entry)
 */
 */
@@ -661,4 +665,8 @@ struct io_uring_recvmsg_out {
	__u32 flags;
	__u32 flags;
};
};


#ifdef __cplusplus
}
#endif

#endif
#endif