Skip to content

Commit b5c5a82

Browse files
Asbjørn Sloth Tønnesenzx2c4
authored andcommitted
wireguard: uapi: move enum wg_cmd
This patch moves enum wg_cmd to the end of the file, where ynl-gen would generate it. This is an incremental step towards adopting an UAPI header generated by ynl-gen. This is split out to keep the patches readable. This is a trivial patch with no behavioural changes intended. Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 parent 6b0f4ca commit b5c5a82

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

include/uapi/linux/wireguard.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111

1212
#define WG_KEY_LEN 32
1313

14-
enum wg_cmd {
15-
WG_CMD_GET_DEVICE,
16-
WG_CMD_SET_DEVICE,
17-
__WG_CMD_MAX
18-
};
19-
#define WG_CMD_MAX (__WG_CMD_MAX - 1)
20-
2114
enum wgdevice_flag {
2215
WGDEVICE_F_REPLACE_PEERS = 1U << 0,
2316
__WGDEVICE_F_ALL = WGDEVICE_F_REPLACE_PEERS
@@ -73,4 +66,12 @@ enum wgallowedip_attribute {
7366
};
7467
#define WGALLOWEDIP_A_MAX (__WGALLOWEDIP_A_LAST - 1)
7568

69+
enum wg_cmd {
70+
WG_CMD_GET_DEVICE,
71+
WG_CMD_SET_DEVICE,
72+
73+
__WG_CMD_MAX
74+
};
75+
#define WG_CMD_MAX (__WG_CMD_MAX - 1)
76+
7677
#endif /* _WG_UAPI_WIREGUARD_H */

0 commit comments

Comments
 (0)