[libvirt] [PATCH v1 2/4] remote: Implement remote{Get,Set}Time
Martin Kletzander
mkletzan at redhat.com
Fri Feb 14 13:23:20 UTC 2014
On Thu, Feb 13, 2014 at 07:51:43PM +0100, Michal Privoznik wrote:
> This is also adding new ACL permission to check 'set_time'.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> daemon/remote.c | 35 +++++++++++++++++++++++++++++++++++
> src/access/viraccessperm.c | 2 +-
> src/access/viraccessperm.h | 6 ++++++
> src/remote/remote_driver.c | 32 ++++++++++++++++++++++++++++++++
> src/remote/remote_protocol.x | 31 ++++++++++++++++++++++++++++++-
> src/remote_protocol-structs | 16 ++++++++++++++++
> 6 files changed, 120 insertions(+), 2 deletions(-)
>
> diff --git a/daemon/remote.c b/daemon/remote.c
> index 932f65f..8020e60 100644
> --- a/daemon/remote.c
> +++ b/daemon/remote.c
> @@ -6027,3 +6027,38 @@ error:
> }
> return -1;
> }
> +
> +static int
> +remoteDispatchDomainGetTime(virNetServerPtr server ATTRIBUTE_UNUSED,
> + virNetServerClientPtr client,
> + virNetMessagePtr msg ATTRIBUTE_UNUSED,
> + virNetMessageErrorPtr rerr,
> + remote_domain_get_time_args *args,
> + remote_domain_get_time_ret *ret)
> +{
> + int rv = -1;
> + virDomainPtr dom = NULL;
> + struct daemonClientPrivate *priv = virNetServerClientGetPrivateData(client);
> + long long time;
> +
Applies to previous patch too, this 'time' will be a problem with
'-Wshadow-declarations' on older (some) compilers.
ACK with that variable name changed.
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140214/c0908481/attachment-0001.sig>
More information about the libvir-list
mailing list