[libvirt] [PATCH 4/4] Cleanup remote protocol definitions

Eric Blake eblake at redhat.com
Mon Jun 27 22:30:27 UTC 2011


On 06/27/2011 08:24 AM, Daniel P. Berrange wrote:
> The standard remote protocol for libvirtd no longer needs to
> include definitions of the generic message header/error structs
> or status codes. This is all defined in the generic RPC protocol
> 
> * src/remote/remote_protocol.x: Remove all RPC message definitions
> * src/remote/remote_protocol.h, src/remote/remote_protocol.c:
>   Re-generate
> * daemon/remote_generate_stubs.pl: Delete obsolete script

Commit message is out-of-date; this file was renamed
daemon/remote_generator.pl in commit 999f5b3, then moved to
src/rpc/gendispatch.pl in commit b17b4af.

> ---
>  src/remote/remote_protocol.x |  115 ------------------------------------------
>  1 files changed, 0 insertions(+), 115 deletions(-)

Given the above commit message, should you also be trimming away at
src/rpc/gendispatch.pl, or any of the Makefile.am snippets that still
create the various *_bodies.h files?

ACK with that question resolved, and this squashed in.

diff --git i/src/remote_protocol-structs w/src/remote_protocol-structs
index c07ba81..25979b4 100644
--- i/src/remote_protocol-structs
+++ w/src/remote_protocol-structs
@@ -1615,11 +1615,3 @@ struct remote_domain_get_control_info_ret {
         u_int                      details;
         uint64_t                   stateTime;
 };
-struct remote_message_header {
-        u_int                      prog;
-        u_int                      vers;
-        int                        proc;
-        remote_message_type        type;
-        u_int                      serial;
-        remote_message_status      status;
-};

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110627/ad205acb/attachment-0001.sig>


More information about the libvir-list mailing list