* [Qemu-devel] How to make changes to qapi-types.h
@ 2016-03-01 1:26 Programmingkid
2016-03-01 1:59 ` Fam Zheng
0 siblings, 1 reply; 5+ messages in thread
From: Programmingkid @ 2016-03-01 1:26 UTC (permalink / raw)
To: qemu-devel qemu-devel
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?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] How to make changes to qapi-types.h
2016-03-01 1:26 [Qemu-devel] How to make changes to qapi-types.h Programmingkid
@ 2016-03-01 1:59 ` Fam Zheng
2016-03-01 2:38 ` Programmingkid
0 siblings, 1 reply; 5+ messages in thread
From: Fam Zheng @ 2016-03-01 1:59 UTC (permalink / raw)
To: Programmingkid; +Cc: qemu-devel qemu-devel
On Mon, 02/29 20:26, Programmingkid wrote:
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] How to make changes to qapi-types.h
2016-03-01 1:59 ` Fam Zheng
@ 2016-03-01 2:38 ` Programmingkid
2016-03-01 2:51 ` Fam Zheng
0 siblings, 1 reply; 5+ messages in thread
From: Programmingkid @ 2016-03-01 2:38 UTC (permalink / raw)
To: Fam Zheng; +Cc: qemu-devel qemu-devel
On Feb 29, 2016, at 8:59 PM, Fam Zheng wrote:
> On Mon, 02/29 20:26, Programmingkid wrote:
>> 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?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] How to make changes to qapi-types.h
2016-03-01 2:38 ` Programmingkid
@ 2016-03-01 2:51 ` Fam Zheng
2016-03-01 22:13 ` Programmingkid
0 siblings, 1 reply; 5+ messages in thread
From: Fam Zheng @ 2016-03-01 2:51 UTC (permalink / raw)
To: Programmingkid; +Cc: qemu-devel qemu-devel
On Mon, 02/29 21:38, Programmingkid wrote:
>
> On Feb 29, 2016, at 8:59 PM, Fam Zheng wrote:
>
> > On Mon, 02/29 20:26, Programmingkid wrote:
> >> 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?
You missed what I was trying to point out.
diff --git a/qapi-schema.json b/qapi-schema.json
index 7b8f2a1..ad50b06 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] How to make changes to qapi-types.h
2016-03-01 2:51 ` Fam Zheng
@ 2016-03-01 22:13 ` Programmingkid
0 siblings, 0 replies; 5+ messages in thread
From: Programmingkid @ 2016-03-01 22:13 UTC (permalink / raw)
To: Fam Zheng; +Cc: qemu-devel qemu-devel
On Feb 29, 2016, at 9:51 PM, Fam Zheng wrote:
> On Mon, 02/29 21:38, Programmingkid wrote:
>>
>> On Feb 29, 2016, at 8:59 PM, Fam Zheng wrote:
>>
>>> On Mon, 02/29 20:26, Programmingkid wrote:
>>>> 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?
>
> You missed what I was trying to point out.
>
> diff --git a/qapi-schema.json b/qapi-schema.json
> index 7b8f2a1..ad50b06 100644
> --- a/qapi-schema.json
> +++ b/qapi-schema.json
> @@ -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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-03-01 22:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-01 1:26 [Qemu-devel] How to make changes to qapi-types.h Programmingkid
2016-03-01 1:59 ` Fam Zheng
2016-03-01 2:38 ` Programmingkid
2016-03-01 2:51 ` Fam Zheng
2016-03-01 22:13 ` Programmingkid
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).