]> xenbits.xensource.com Git - libvirt.git/commitdiff
admin: Tiny cleanups
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 22 Jul 2015 09:01:58 +0000 (11:01 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 27 Jul 2015 07:33:24 +0000 (09:33 +0200)
First hunk changes the use of srcdir to top_srcdir so it complies with
other rules in the Makefile.  Second one removes the need of
remote_protocol.h in admin_protocol.h as it was suggested and worked in,
but this one line was missed apparently.  Last one just removes the
'remote' naming from admin protocol specification, just so it's cleaner.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
daemon/Makefile.am
src/admin/admin_protocol.x

index d3fc029f0580f464e1c220ef34a55c67cace9d18..59bc4d4eddfdca4ba68b679f60f56d7e01fa3701 100644 (file)
@@ -101,9 +101,9 @@ qemu_dispatch.h: $(top_srcdir)/src/rpc/gendispatch.pl \
          --mode=server qemu QEMU $(QEMU_PROTOCOL) \
          > $(srcdir)/qemu_dispatch.h
 
-admin_dispatch.h: $(srcdir)/../src/rpc/gendispatch.pl \
+admin_dispatch.h: $(top_srcdir)/src/rpc/gendispatch.pl \
                $(ADMIN_PROTOCOL)
-       $(AM_V_GEN)$(PERL) -w $(srcdir)/../src/rpc/gendispatch.pl \
+       $(AM_V_GEN)$(PERL) -w $(top_srcdir)/src/rpc/gendispatch.pl \
          --mode=server admin ADMIN $(ADMIN_PROTOCOL) \
          > $(srcdir)/admin_dispatch.h
 
index 1a2e94ee86e7f07c46236c537cba4bc89f72a0cc..cfc92ff74852181e18eb2e1d3034bc6247f0b3f2 100644 (file)
  * Author: Martin Kletzander <mkletzan@redhat.com>
  */
 
-%#include "remote_protocol.h"
-
 /*----- Data types. -----*/
 
 /* Length of long, but not unbounded, strings.
  * This is an arbitrary limit designed to stop the decoder from trying
  * to allocate unbounded amounts of memory when fed with a bad message.
  */
-const REMOTE_STRING_MAX = 4194304;
+const ADMIN_STRING_MAX = 4194304;
 
 /* A long string, which may NOT be NULL. */
-typedef string admin_nonnull_string<REMOTE_STRING_MAX>;
+typedef string admin_nonnull_string<ADMIN_STRING_MAX>;
 
 /* A long string, which may be NULL. */
 typedef admin_nonnull_string *admin_string;