Skip to contentSkip to conversation

How to make changes to qapi-types.h

Qemu-devel Programmingkid 2 participants 5 messages Mar 1, 2016

lore
Share & tools
lore
#0 lore raw

I need to add a variable to the QKeyCode enum in the file qapi-types.h. This file is auto-generated so using traditional means to create a patch is not possible. Would anyone know how I can add to this file?

#1 lore raw
Quoted 3 lines · Programmingkid

I need to add a variable to the QKeyCode enum in the file qapi-types.h. This file is auto-generated so using traditional means to create a patch is not possible. Would anyone know how I can add to this file?

The file to look at is qapi-schema.json. The generator is also documented in docs/qapi-code-gen.txt.

Fam

#2 lore raw
Quoted 7 lines · Fam Zheng
Quoted 3 lines · Programmingkid

I need to add a variable to the QKeyCode enum in the file qapi-types.h. This file is auto-generated so using traditional means to create a patch is not possible. Would anyone know how I can add to this file?

The file to look at is qapi-schema.json. The generator is also documented in docs/qapi-code-gen.txt.

Thank you very much for your help, but the information in the files you sent did not seem to help. Maybe I should say exactly what I'm trying to do.

In the file qapi-types.h, there is an enum called QKeyCode. I want to add this to the enum:

Q_KEY_CODE_KP_EQUALS = 125,

Would anyone know how to do this so I can submit this change as a patch?

#3 lore raw
Quoted 14 lines · Programmingkid
Quoted 7 lines · Fam Zheng
Quoted 3 lines · Programmingkid

I need to add a variable to the QKeyCode enum in the file qapi-types.h. This file is auto-generated so using traditional means to create a patch is not possible. Would anyone know how I can add to this file?

The file to look at is qapi-schema.json. The generator is also documented in docs/qapi-code-gen.txt.

Thank you very much for your help, but the information in the files you sent did not seem to help. Maybe I should say exactly what I'm trying to do.

Quoted 6 lines

In the file qapi-types.h, there is an enum called QKeyCode. I want to add this to the enum:

Q_KEY_CODE_KP_EQUALS = 125,

Would anyone know how to do this so I can submit this change as a patch?

You missed what I was trying to point out.

qapi-schema.json +1 -1
index 7b8f2a1..ad50b06 100644
@@ -3096,7 +3096,7 @@
             'left', 'up', 'down', 'right', 'insert', 'delete', 'stop', 'again',
             'props', 'undo', 'front', 'copy', 'open', 'paste', 'find', 'cut',
             'lf', 'help', 'meta_l', 'meta_r', 'compose', 'pause', 'ro',
-            'kp_comma' ] }
+            'kp_comma', 'kp_equals' ] }
 
 ##
 # @KeyValue
#4 lore raw
Quoted 30 lines · Fam Zheng
Quoted 14 lines · Programmingkid
Quoted 7 lines · Fam Zheng
Quoted 3 lines · Programmingkid

I need to add a variable to the QKeyCode enum in the file qapi-types.h. This file is auto-generated so using traditional means to create a patch is not possible. Would anyone know how I can add to this file?

The file to look at is qapi-schema.json. The generator is also documented in docs/qapi-code-gen.txt.

Thank you very much for your help, but the information in the files you sent did not seem to help. Maybe I should say exactly what I'm trying to do.

Quoted 6 lines

In the file qapi-types.h, there is an enum called QKeyCode. I want to add this to the enum:

Q_KEY_CODE_KP_EQUALS = 125,

Would anyone know how to do this so I can submit this change as a patch?

You missed what I was trying to point out.

qapi-schema.json +0 -0
index 7b8f2a1..ad50b06 100644

qapi-schema.json line 3102

Quoted 8 lines
qapi-schema.json +1 -1
@@ -3096,7 +3096,7 @@
            'left', 'up', 'down', 'right', 'insert', 'delete', 'stop', 'again',
            'props', 'undo', 'front', 'copy', 'open', 'paste', 'find', 'cut',
            'lf', 'help', 'meta_l', 'meta_r', 'compose', 'pause', 'ro',
-            'kp_comma' ] }
+            'kp_comma', 'kp_equals' ] }
 
 ##
 # @KeyValue

Thank you very much for all your help.