Daniel P. Berrange
834c9c9459
Introduce virDBusCallMethod & virDBusMessageRead methods
...
Doing DBus method calls using libdbus.so is tedious in the
extreme. systemd developers came up with a nice high level
API for DBus method calls (sd_bus_call_method). While
systemd doesn't use libdbus.so, their API design can easily
be ported to libdbus.so.
This patch thus introduces methods virDBusCallMethod &
virDBusMessageRead, which are based on the code used for
sd_bus_call_method and sd_bus_message_read. This code in
systemd is under the LGPLv2+, so we're license compatible.
This code is probably pretty unintelligible unless you are
familiar with the DBus type system. So I added some API
docs trying to explain how to use them, as well as test
cases to validate that I didn't screw up the adaptation
from the original systemd code.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2013-07-22 13:09:58 +01:00
..
2013-07-01 14:30:42 +02:00
2013-05-06 14:01:08 -06:00
2012-03-27 09:54:49 -06:00
2013-07-22 13:57:53 +02:00
2013-04-15 17:35:31 +01:00
2012-11-02 09:56:23 -06:00
2013-04-25 13:05:10 +02:00
2013-05-13 17:24:18 +08:00
2010-01-19 21:13:03 +01:00
2013-05-13 13:15:19 +01:00
2013-02-27 10:55:24 -05:00
2013-06-25 00:22:36 -04:00
2013-06-25 00:22:36 -04:00
2013-06-26 14:10:56 -04:00
2012-11-13 00:35:36 +01:00
2012-05-21 06:26:34 -04:00
2012-05-21 06:26:34 -04:00
2013-05-13 18:30:26 +08:00
2013-07-16 11:47:39 +02:00
2013-07-22 13:16:29 +02:00
2013-06-28 09:52:00 +02:00
2012-10-30 08:54:32 +01:00
2013-01-14 13:40:04 +00:00
2012-10-19 17:35:09 -06:00
2013-05-17 08:33:22 +02:00
2013-07-16 12:16:37 +02:00
2013-07-16 12:16:37 +02:00
2013-05-17 08:35:08 +02:00
2013-07-18 10:08:04 -06:00
2013-06-21 13:25:30 +02:00
2013-06-21 13:25:30 +02:00
2013-04-04 11:07:31 +01:00
2012-07-21 20:15:02 +02:00
2011-11-30 10:12:30 +00:00
2012-05-08 16:57:37 -06:00
2012-04-02 09:33:54 -06:00
2013-04-02 15:53:43 +02:00
2013-02-07 14:08:14 -05:00
2010-01-15 16:28:05 +00:00
2013-07-11 14:18:11 -04:00
2013-07-18 12:18:24 +01:00
2012-09-17 14:59:37 -04:00
2013-07-22 13:57:53 +02:00
2012-05-08 16:57:37 -06:00
2012-03-27 15:52:25 +01:00
2010-05-20 13:50:03 -04:00
2013-07-10 11:07:31 +02:00
2013-07-10 17:40:13 +01:00
2013-07-10 17:40:13 +01:00
2013-07-10 11:07:31 +02:00
2013-05-31 10:51:33 -06:00
2011-07-29 17:17:21 +02:00
2010-01-15 16:28:05 +00:00
2013-07-10 11:07:31 +02:00
2013-05-13 15:15:54 -06:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2013-07-10 11:07:33 +02:00
2013-07-10 11:07:31 +02:00
2013-07-22 13:09:58 +01:00
2010-01-15 16:28:05 +00:00
2013-07-10 11:07:31 +02:00
2013-07-10 11:07:31 +02:00
2010-01-15 16:28:05 +00:00
2013-07-10 11:07:31 +02:00
2013-07-10 17:40:13 +01:00
2010-04-06 11:09:46 -04:00
2013-07-10 11:07:31 +02:00
2013-04-24 10:59:53 +01:00
2012-07-30 13:09:57 +01:00
2013-07-10 17:40:13 +01:00
2011-06-01 11:58:15 +02:00
2011-07-22 15:18:32 +01:00
2013-07-10 11:07:31 +02:00
2013-07-10 17:40:13 +01:00
2013-07-18 15:28:45 +02:00
2013-07-19 18:45:47 +02:00
2013-07-10 17:40:13 +01:00
2013-07-10 11:07:33 +02:00
2013-04-04 22:18:56 +02:00
2013-07-16 08:44:52 -04:00
2013-07-10 11:07:31 +02:00
2013-05-20 20:14:19 +08:00
2012-07-27 07:42:34 -06:00
2012-07-27 07:42:34 -06:00
2013-06-06 17:22:53 +02:00
2013-05-09 11:46:45 -06:00
2013-02-25 17:38:11 -07:00
2013-05-10 11:54:29 +02:00
2013-07-10 11:07:33 +02:00
2013-07-10 11:07:33 +02:00
2013-07-10 11:07:31 +02:00
2013-05-21 09:22:21 -04:00
2013-05-21 09:22:21 -04:00
2013-06-07 15:21:57 +02:00
2013-07-10 17:40:13 +01:00
2012-07-27 07:42:34 -06:00
2012-12-21 11:19:48 +00:00
2013-05-10 08:52:43 -04:00
2013-05-17 08:33:22 +02:00
2013-07-16 12:16:37 +02:00
2013-05-17 08:35:08 +02:00
2013-07-10 11:07:31 +02:00
2013-07-10 11:07:31 +02:00
2013-07-10 11:07:31 +02:00
2013-07-10 11:07:31 +02:00
2013-03-19 13:13:28 -06:00
2011-07-11 09:21:37 -06:00
2013-07-19 13:08:30 +01:00
2013-04-05 10:41:46 +01:00
2013-04-04 22:42:39 +02:00
2012-03-27 15:52:25 +01:00
2013-05-20 20:14:19 +08:00
2013-05-31 11:35:34 -06:00
2013-04-04 22:42:39 +02:00
2013-04-04 22:42:39 +02:00
2013-07-10 17:40:13 +01:00
2012-07-27 07:42:34 -06:00
2013-07-10 17:40:13 +01:00
2013-05-02 16:56:55 +02:00
2013-07-10 17:40:13 +01:00
2013-07-10 11:07:31 +02:00
2013-05-14 15:00:22 +01:00
2013-07-10 17:40:13 +01:00
2013-07-22 13:09:58 +01:00
2013-05-02 16:56:55 +02:00
2013-02-12 09:00:15 -07:00
2012-01-26 14:11:13 +00:00
2013-07-18 14:05:46 +02:00
2013-05-02 16:56:55 +02:00
2013-04-08 10:03:20 +01:00
2013-05-02 16:56:55 +02:00
2013-05-10 13:09:30 -04:00
2013-07-10 11:07:33 +02:00
2013-07-10 17:40:13 +01:00
2013-03-04 17:42:16 +00:00
2013-05-10 13:09:30 -04:00
2012-08-07 11:59:08 +01:00
2012-11-07 09:04:18 -07:00
2013-04-03 08:49:30 +02:00
2012-07-27 07:42:34 -06:00
2012-09-12 11:27:22 -06:00
2013-07-10 11:07:31 +02:00
2013-07-10 17:40:13 +01:00
2013-05-31 10:51:33 -06:00
2012-12-11 14:32:39 -07:00
2013-05-02 16:56:55 +02:00
2013-05-21 23:41:45 +08:00
2013-05-10 11:54:29 +02:00
2013-07-10 11:07:31 +02:00
2013-07-10 11:07:31 +02:00
2013-07-10 11:07:31 +02:00
2013-05-10 11:54:29 +02:00