Daniel P. Berrange 88a2dc1f4c Support passing dict by reference for dbus messages
Currently DBus dict values must be passed inline

   virDBusMessageEncode("a{ss}",
                        3,
                        "key1", "val1",
                        "key2", "val2",
                        "key3", "val3");
   virDBusMessageDecode("a{ss}",
                        3,
                        &key1, &val1,
                        &key2, &val2,
                        &key3, &val3);

This allows them to be passed by reference

   const char **dictin = {
      "key1", "val1",
      "key2", "val2",
      "key3", "val3"
   };
   char **dictout;
   size_t ndictout;

   virDBusMessageEncode("a&{ss}",
                        ARRAY_CARDINALITY(dict) / 2,
                        dictin);
   virDBusMessageDecode("a&{ss}",
                        &ndictout,
                        &dictout);

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2014-09-24 15:29:22 +01:00
..
2014-07-16 06:48:53 -06:00
2014-08-23 14:29:24 -06:00
2014-05-06 11:22:13 -04:00
2013-02-12 09:00:15 -07:00
2014-07-29 11:25:16 +01:00
2014-04-07 06:14:45 -06:00
2014-04-07 06:14:45 -06:00
2013-12-24 17:36:47 +01:00
2013-12-24 17:36:47 +01:00
2014-09-04 15:18:43 -06:00
2014-08-20 16:15:00 +02:00
2014-04-07 06:14:45 -06:00
2014-04-07 06:14:45 -06:00
2014-07-28 14:10:29 -06:00
2014-03-04 12:24:13 +00:00
2014-09-15 10:44:27 -04:00
2013-04-12 16:55:45 -04:00
2014-07-03 10:41:15 +02:00
2014-03-04 12:24:13 +00:00