History

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.

Ammar Faizi committed 4 years ago

Commit e1d0c6d1 parent c2fa7001 file · +8 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/io_uring.h+8−0
@@ -12,6 +12,10 @@ · 11 unmodified lines
1212 #include <linux/types.h>
1313 #include <linux/time_types.h>
1414
15+#ifdef __cplusplus
16+extern "C" {
17+#endif
18+
1519 /*
1620 * IO submission data structure (Submission Queue Entry)
1721 */
@@ -661,4 +665,8 @@ struct io_uring_recvmsg_out { · 643 unmodified lines
661665 __u32 flags;
662666 };
663667
668+#ifdef __cplusplus
669+}
670+#endif
671+
664672 #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t