Commit bc52b393 authored by Donald Hunter's avatar Donald Hunter Committed by Jakub Kicinski

doc/netlink: Allow empty enum-name in ynl specs

Update the ynl schemas to allow the specification of empty enum names
for all enum code generation.
Signed-off-by: default avatarDonald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20240306231046.97158-6-donald.hunter@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent b6e6a76d
...@@ -126,8 +126,9 @@ properties: ...@@ -126,8 +126,9 @@ properties:
Prefix for the C enum name of the attributes. Default family[name]-set[name]-a- Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
type: string type: string
enum-name: enum-name:
description: Name for the enum type of the attribute. description: |
type: string Name for the enum type of the attribute, if empty no name will be used.
type: [ string, "null" ]
doc: doc:
description: Documentation of the space. description: Documentation of the space.
type: string type: string
...@@ -261,14 +262,16 @@ properties: ...@@ -261,14 +262,16 @@ properties:
the prefix with the upper case name of the command, with dashes replaced by underscores. the prefix with the upper case name of the command, with dashes replaced by underscores.
type: string type: string
enum-name: enum-name:
description: Name for the enum type with commands. description: |
type: string Name for the enum type with commands, if empty no name will be used.
type: [ string, "null" ]
async-prefix: async-prefix:
description: Same as name-prefix but used to render notifications and events to separate enum. description: Same as name-prefix but used to render notifications and events to separate enum.
type: string type: string
async-enum: async-enum:
description: Name for the enum type with notifications/events. description: |
type: string Name for the enum type with commands, if empty no name will be used.
type: [ string, "null" ]
list: list:
description: List of commands description: List of commands
type: array type: array
......
...@@ -168,8 +168,9 @@ properties: ...@@ -168,8 +168,9 @@ properties:
Prefix for the C enum name of the attributes. Default family[name]-set[name]-a- Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
type: string type: string
enum-name: enum-name:
description: Name for the enum type of the attribute. description: |
type: string Name for the enum type of the attribute, if empty no name will be used.
type: [ string, "null" ]
doc: doc:
description: Documentation of the space. description: Documentation of the space.
type: string type: string
...@@ -304,14 +305,16 @@ properties: ...@@ -304,14 +305,16 @@ properties:
the prefix with the upper case name of the command, with dashes replaced by underscores. the prefix with the upper case name of the command, with dashes replaced by underscores.
type: string type: string
enum-name: enum-name:
description: Name for the enum type with commands. description: |
type: string Name for the enum type with commands, if empty no name will be used.
type: [ string, "null" ]
async-prefix: async-prefix:
description: Same as name-prefix but used to render notifications and events to separate enum. description: Same as name-prefix but used to render notifications and events to separate enum.
type: string type: string
async-enum: async-enum:
description: Name for the enum type with notifications/events. description: |
type: string Name for the enum type with commands, if empty no name will be used.
type: [ string, "null" ]
# Start genetlink-legacy # Start genetlink-legacy
fixed-header: &fixed-header fixed-header: &fixed-header
description: | description: |
......
...@@ -189,8 +189,9 @@ properties: ...@@ -189,8 +189,9 @@ properties:
Prefix for the C enum name of the attributes. Default family[name]-set[name]-a- Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
type: string type: string
enum-name: enum-name:
description: Name for the enum type of the attribute. description: |
type: string Name for the enum type of the attribute, if empty no name will be used.
type: [ string, "null" ]
doc: doc:
description: Documentation of the space. description: Documentation of the space.
type: string type: string
...@@ -371,14 +372,16 @@ properties: ...@@ -371,14 +372,16 @@ properties:
the prefix with the upper case name of the command, with dashes replaced by underscores. the prefix with the upper case name of the command, with dashes replaced by underscores.
type: string type: string
enum-name: enum-name:
description: Name for the enum type with commands. description: |
type: string Name for the enum type with commands, if empty no name will be used.
type: [ string, "null" ]
async-prefix: async-prefix:
description: Same as name-prefix but used to render notifications and events to separate enum. description: Same as name-prefix but used to render notifications and events to separate enum.
type: string type: string
async-enum: async-enum:
description: Name for the enum type with notifications/events. description: |
type: string Name for the enum type with commands, if empty no name will be used.
type: [ string, "null" ]
# Start genetlink-legacy # Start genetlink-legacy
fixed-header: &fixed-header fixed-header: &fixed-header
description: | description: |
......
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