-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export QMP functions #1340
Export QMP functions #1340
Conversation
766d8c0
to
bb39fa8
Compare
@bensmrs I wonder, wouldn't it be cleaner if we just added a single command, So we'd then have
I'm basically trying to avoid us having to duplicate the entire QMP command list in here. |
Actually, I think I'd be willing to make a bit of a compromise because I do like the shorter syntax when you don't need to name all the arguments, but I still don't want to set a precedent which will get us to have to implement every single QMP command. So I think we may want to go with: Generic:
Specific:
Those are all modern QMP commands for core objects so not terribly likely to change or go away and the most likely to be called from the hook. The other more niche commands can go through run_command where for commands with no arguments (quit/system_reset), this will remain pretty nice and short. |
I expected the remark but I agree with your last message, I’ll look at it tomorrow |
Thanks! |
bb39fa8
to
a0c30c0
Compare
Just for a bit of context, I’m exploring the call stack to get the position in the Starlark code where there is a problem (in big scriptlets, it’s pretty useful). I haven’t found any other way, and Starlark doesn’t seem to offer much introspection into AST nodes, so that should do the trick… |
Signed-off-by: Benjamin Somers <[email protected]>
Signed-off-by: Benjamin Somers <[email protected]>
a0c30c0
to
24c4c0e
Compare
24c4c0e
to
8482bf6
Compare
Signed-off-by: Stéphane Graber <[email protected]>
8482bf6
to
f07fd5c
Compare
Closes: #1226