]> git.ipfire.org Git - thirdparty/libvirt.git/commit
sendkey: use consistent API convention
authorEric Blake <eblake@redhat.com>
Wed, 15 Jun 2011 16:33:59 +0000 (10:33 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 15 Jun 2011 17:25:53 +0000 (11:25 -0600)
commit1d57562942a915da17c0c799645b6d59eea6af8a
treea921b4dbfc6126d8a1a92373a3a293a85d1174c2
parentb33cd5e349f89c90207710b07b4bb2b0a52b9ca7
sendkey: use consistent API convention

Even though rpc uses 'unsigned int' for the _len parameter that
passes the length of item<length>, the public libvirt APIs all
use 'int' and filter out lengths < 0, except for virDomainSendKey.

* include/libvirt/libvirt.h.in (virDomainSendKey): All other APIs
use int for array length.
* src/libvirt.c (virDomainSendKey): Adjust.
* src/driver.h (virDrvDomainSendKey): Likewise.
* daemon/remote_generator.pl: Likewise.
daemon/remote_generator.pl
include/libvirt/libvirt.h.in
src/driver.h
src/libvirt.c