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
CP-10203: XenAPI: api call for RDP on/off request #158
Conversation
@@ -69,6 +69,7 @@ module VM = struct | |||
let s3suspend _ _ = unimplemented "VM.s3suspend" | |||
let s3resume _ _ = unimplemented "VM.s3resume" | |||
let get_state _ = Xenops_utils.halted_vm | |||
let beg_rdp _ _ = () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could return unimplemented like the s3suspend
and s3resume
. This is more accurate since returning unit is unclear whether it has done something or nothing.
My guess is it's too late to change the name of this API call. To me, Apart from the aesthetics of this API design, it seems functionally sane. |
You can blame me for the name. |
Thanks Simon for the comment on lib/xenops_server_skeleton.ml. About the API name, Simon and Thomas, could you please let me know your opinion? To change it to a more suitable name (any suggestion?) or just keep it? |
Like @simonjbeaumont, I am not very comfortable with the name of the API call. This is even more important for the higher-level public API introduced in xapi-project/xen-api#2042. How about "request" rather than "beg"? |
Thanks Rob for the suggestion. |
@huizh: sorry to mess you around, but did you see @djs55's comment here: xapi-project/xapi-project.github.io#12 (comment). He's suggesting a different API call name. |
Signed-off-by: Hui Zhang <hui.zhang@citrix.com>
Thanks all for the comments. Much appreciate. |
CP-10203: XenAPI: api call for RDP on/off request
Thanks @thomassa |
Xapi delegates the xenstore operations to xenopsd.
Signed-off-by: Hui Zhang hui.zhang@citrix.com