]> git.proxmox.com Git - mirror_qemu.git/commit
qga: Add 'guest-get-users' command
authorVinzenz Feenstra <vfeenstr@redhat.com>
Wed, 19 Apr 2017 09:26:15 +0000 (11:26 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 27 Apr 2017 04:57:45 +0000 (23:57 -0500)
commit161a56a9065feb6fa2f69cec6237a5c4e714b9d3
treee1c26dd740444144d8d0f92f2e7726b51b4d8777
parent1dbfbc17fe783e34644daf4abbb8f4e17344abcd
qga: Add 'guest-get-users' command

A command that will list all currently logged in users, and the time
since when they are logged in.

Examples:

virsh # qemu-agent-command F25 '{ "execute": "guest-get-users" }'
{"return":[{"login-time":1490622289.903835,"user":"root"}]}

virsh # qemu-agent-command Win2k12r2 '{ "execute": "guest-get-users" }'
{"return":[{"login-time":1490351044.670552,"domain":"LADIDA",
"user":"Administrator"}]}

Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
* make g_hash_table_contains compat func inline to avoid
  unused warnings
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
configure
include/glib-compat.h
qga/commands-posix.c
qga/commands-win32.c
qga/qapi-schema.json