Home | History | Annotate | Download | only in server
      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 
      9 /* Appends a key-value pair to the dbus message.
     10  * Args:
     11  *    key - the key (a string)
     12  *    type - the type of the value (for example, 'y')
     13  *    type_string - the type of the value in string form (for example, "y")
     14  *    value - a pointer to the value to be appended.
     15  * Returns:
     16  *    false if not enough memory.
     17 */
     18 dbus_bool_t append_key_value(DBusMessageIter *iter, const char *key,
     19 			     int type, const char *type_string,
     20 			     void *value);
     21