mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-30 15:00:34 +00:00
f7160f3218
The various schemas included in QEMU use a JSON-based format which is, however, strictly speaking not valid JSON. As a consequence, when vim tries to apply syntax highlight rules for JSON (as guessed from the file name), the result is an unreadable mess which mostly consist of red markers pointing out supposed errors in, well, pretty much everything. Using Python syntax highlighting produces much better results, and in fact these files already start with specially-formatted comments that instruct Emacs to process them as if they were Python files. This commit adds the equivalent special comments for vim. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Message-Id: <20200729185024.121766-1-abologna@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
40 lines
812 B
Python
40 lines
812 B
Python
# -*- Mode: Python -*-
|
|
# vim: filetype=python
|
|
#
|
|
|
|
##
|
|
# = RDMA device
|
|
##
|
|
|
|
##
|
|
# @RDMA_GID_STATUS_CHANGED:
|
|
#
|
|
# Emitted when guest driver adds/deletes GID to/from device
|
|
#
|
|
# @netdev: RoCE Network Device name
|
|
#
|
|
# @gid-status: Add or delete indication
|
|
#
|
|
# @subnet-prefix: Subnet Prefix
|
|
#
|
|
# @interface-id : Interface ID
|
|
#
|
|
# Since: 4.0
|
|
#
|
|
# Example:
|
|
#
|
|
# <- {"timestamp": {"seconds": 1541579657, "microseconds": 986760},
|
|
# "event": "RDMA_GID_STATUS_CHANGED",
|
|
# "data":
|
|
# {"netdev": "bridge0",
|
|
# "interface-id": 15880512517475447892,
|
|
# "gid-status": true,
|
|
# "subnet-prefix": 33022}}
|
|
#
|
|
##
|
|
{ 'event': 'RDMA_GID_STATUS_CHANGED',
|
|
'data': { 'netdev' : 'str',
|
|
'gid-status' : 'bool',
|
|
'subnet-prefix' : 'uint64',
|
|
'interface-id' : 'uint64' } }
|