[libvirt] [PATCH 0/2] Integration with systemd-machined

Daniel P. Berrange berrange at redhat.com
Thu Jul 18 13:27:08 UTC 2013


From: "Daniel P. Berrange" <berrange at redhat.com>

This includes a v2 of a previously submitted patch

  https://www.redhat.com/archives/libvir-list/2013-July/msg01084.html

This posting includes a second patch to actually wrap
the systemd call

Changes since that first posting

 - Use 'int' instead of 'size_t' for the ARRAY var-arg,
   since a plain number "3" does not promote to 'size_t'
   when passed through variadic args, only to 'int'.
   Using 'int' thus avoids need to cast every time.

 - Handle DBus error replies

 - Make sure building --without-dbus works

Daniel P. Berrange (2):
  Introduce virDBusCallMethod & virDBusMessageRead methods
  Add API for calling systemd-machined's DBus API

 .gitignore                  |   2 +
 include/libvirt/virterror.h |   2 +
 src/Makefile.am             |   1 +
 src/libvirt_private.syms    |   8 +
 src/util/virdbus.c          | 966 +++++++++++++++++++++++++++++++++++++++++++-
 src/util/virdbus.h          |  11 +
 src/util/virdbuspriv.h      |  45 +++
 src/util/virerror.c         |   7 +
 src/util/virerror.h         |  11 +
 src/util/virsystemd.c       | 139 +++++++
 src/util/virsystemd.h       |  36 ++
 tests/Makefile.am           |  29 ++
 tests/testutils.h           |   2 +
 tests/virdbustest.c         | 389 ++++++++++++++++++
 tests/virsystemdmock.c      |  77 ++++
 tests/virsystemdtest.c      | 131 ++++++
 16 files changed, 1855 insertions(+), 1 deletion(-)
 create mode 100644 src/util/virdbuspriv.h
 create mode 100644 src/util/virsystemd.c
 create mode 100644 src/util/virsystemd.h
 create mode 100644 tests/virdbustest.c
 create mode 100644 tests/virsystemdmock.c
 create mode 100644 tests/virsystemdtest.c

-- 
1.8.1.4




More information about the libvir-list mailing list