Commit 82b32970 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

netlink: specs: allow uapi-header in genetlink

Chuck wanted to put the UAPI header in linux/net/ which seems
reasonable, allow genetlink families to choose the location.
It doesn't really matter for non-C-like languages.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 74bf6477
...@@ -33,10 +33,10 @@ properties: ...@@ -33,10 +33,10 @@ properties:
protocol: protocol:
description: Schema compatibility level. Default is "genetlink". description: Schema compatibility level. Default is "genetlink".
enum: [ genetlink, genetlink-c ] enum: [ genetlink, genetlink-c ]
# Start genetlink-c
uapi-header: uapi-header:
description: Path to the uAPI header, default is linux/${family-name}.h description: Path to the uAPI header, default is linux/${family-name}.h
type: string type: string
# Start genetlink-c
c-family-name: c-family-name:
description: Name of the define for the family name. description: Name of the define for the family name.
type: string type: string
......
...@@ -33,10 +33,10 @@ properties: ...@@ -33,10 +33,10 @@ properties:
protocol: protocol:
description: Schema compatibility level. Default is "genetlink". description: Schema compatibility level. Default is "genetlink".
enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim
# Start genetlink-c
uapi-header: uapi-header:
description: Path to the uAPI header, default is linux/${family-name}.h description: Path to the uAPI header, default is linux/${family-name}.h
type: string type: string
# Start genetlink-c
c-family-name: c-family-name:
description: Name of the define for the family name. description: Name of the define for the family name.
type: string type: string
......
...@@ -33,6 +33,9 @@ properties: ...@@ -33,6 +33,9 @@ properties:
protocol: protocol:
description: Schema compatibility level. Default is "genetlink". description: Schema compatibility level. Default is "genetlink".
enum: [ genetlink ] enum: [ genetlink ]
uapi-header:
description: Path to the uAPI header, default is linux/${family-name}.h
type: string
definitions: definitions:
description: List of type and constant definitions (enums, flags, defines). description: List of type and constant definitions (enums, flags, defines).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment