mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
tools: ynl-gen: support code gen for events
Netlink specs support both events and notifications (former can define their own message contents). Plug in missing code to generate types, parsers and include events into notification tables. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -423,7 +423,7 @@ class SpecFamily(SpecElement):
|
||||
self.fixed_header = self.yaml['operations'].get('fixed-header')
|
||||
req_val = rsp_val = 1
|
||||
for elem in self.yaml['operations']['list']:
|
||||
if 'notify' in elem:
|
||||
if 'notify' in elem or 'event' in elem:
|
||||
if 'value' in elem:
|
||||
rsp_val = elem['value']
|
||||
req_val_next = req_val
|
||||
|
Reference in New Issue
Block a user