summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2003-03-26 19:39:49 +0000
committerAnders Carlsson <andersca@codefactory.se>2003-03-26 19:39:49 +0000
commitb01a215f54143f6ad6b83d435ac738ef79b58752 (patch)
treea8f7cb2f04a06486ae7ea8fdc43397f8646fa4f8
parent4b13bb6d7f9a8e240cc41466dc70d9beb912a35e (diff)
Forgot this.
-rw-r--r--dbus/dbus-dict.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/dbus/dbus-dict.c b/dbus/dbus-dict.c
index bf1d6c92..e19f9a65 100644
--- a/dbus/dbus-dict.c
+++ b/dbus/dbus-dict.c
@@ -628,6 +628,16 @@ dbus_dict_set_double_array (DBusDict *dict,
return FALSE;
}
+/**
+ * Adds a byte array to the dict. If a value with the same key
+ * already exists, then it will be replaced by the new value.
+ *
+ * @param dict the dict
+ * @param key the key
+ * @param value the value
+ * @param len the array length
+ * @returns #TRUE on success
+ */
dbus_bool_t
dbus_dict_set_byte_array (DBusDict *dict,
const char *key,
@@ -956,6 +966,16 @@ dbus_dict_get_double_array (DBusDict *dict,
return TRUE;
}
+/**
+ * Gets a byte array from a dict using a key.
+ *
+ * @param dict the dict
+ * @param key the key
+ * @param value return location for the value
+ * @param len return location for the array length
+ * @returns #TRUE if the key exists and the value is of the correct
+ * type
+ */
dbus_bool_t
dbus_dict_get_byte_array (DBusDict *dict,
const char *key,