1 /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 */ 5 6 #include <dbus/dbus.h> 7 8 /* Appends a key-value pair to the dbus message. 9 * Args: 10 * key - the key (a string) 11 * type - the type of the value (for example, 'y') 12 * type_string - the type of the value in string form (for example, "y") 13 * value - a pointer to the value to be appended. 14 * Returns: 15 * false if not enough memory. 16 */ 17 dbus_bool_t append_key_value(DBusMessageIter *iter, const char *key, int type, 18 const char *type_string, void *value); 19