Data Structures | |
union | DBusOctets8 |
Union used to manipulate 8 bytes as if they were various types. More... | |
Defines | |
#define | VERBOSE_DECOMPOSE 0 |
Set to 1 to get a bunch of spew about disassembling the path string. | |
Functions | |
dbus_uint32_t | _dbus_unpack_uint32 (int byte_order, const unsigned char *data) |
Unpacks a 32 bit unsigned integer from a data pointer. More... | |
dbus_int32_t | _dbus_unpack_int32 (int byte_order, const unsigned char *data) |
Unpacks a 32 bit signed integer from a data pointer. More... | |
dbus_uint64_t | _dbus_unpack_uint64 (int byte_order, const unsigned char *data) |
Unpacks a 64 bit unsigned integer from a data pointer. More... | |
dbus_int64_t | _dbus_unpack_int64 (int byte_order, const unsigned char *data) |
Unpacks a 64 bit signed integer from a data pointer. More... | |
void | _dbus_pack_uint32 (dbus_uint32_t value, int byte_order, unsigned char *data) |
Packs a 32 bit unsigned integer into a data pointer. More... | |
void | _dbus_pack_int32 (dbus_int32_t value, int byte_order, unsigned char *data) |
Packs a 32 bit signed integer into a data pointer. More... | |
void | _dbus_pack_uint64 (dbus_uint64_t value, int byte_order, unsigned char *data) |
Packs a 64 bit unsigned integer into a data pointer. More... | |
void | _dbus_pack_int64 (dbus_int64_t value, int byte_order, unsigned char *data) |
Packs a 64 bit signed integer into a data pointer. More... | |
void | _dbus_marshal_set_int32 (DBusString *str, int byte_order, int offset, dbus_int32_t value) |
Sets the 4 bytes at the given offset to a marshaled signed integer, replacing anything found there previously. More... | |
void | _dbus_marshal_set_uint32 (DBusString *str, int byte_order, int offset, dbus_uint32_t value) |
Sets the 4 bytes at the given offset to a marshaled unsigned integer, replacing anything found there previously. More... | |
void | _dbus_marshal_set_int64 (DBusString *str, int byte_order, int offset, dbus_int64_t value) |
Sets the 8 bytes at the given offset to a marshaled signed integer, replacing anything found there previously. More... | |
void | _dbus_marshal_set_uint64 (DBusString *str, int byte_order, int offset, dbus_uint64_t value) |
Sets the 8 bytes at the given offset to a marshaled unsigned integer, replacing anything found there previously. More... | |
dbus_bool_t | _dbus_marshal_set_string (DBusString *str, int byte_order, int offset, const DBusString *value, int len) |
Sets the existing marshaled string at the given offset with a new marshaled string. More... | |
void | _dbus_marshal_set_object_path (DBusString *str, int byte_order, int offset, const char **path, int path_len) |
Sets the existing marshaled object path at the given offset to a new value. More... | |
dbus_bool_t | _dbus_marshal_double (DBusString *str, int byte_order, double value) |
Marshals a double value. More... | |
dbus_bool_t | _dbus_marshal_int32 (DBusString *str, int byte_order, dbus_int32_t value) |
Marshals a 32 bit signed integer value. More... | |
dbus_bool_t | _dbus_marshal_uint32 (DBusString *str, int byte_order, dbus_uint32_t value) |
Marshals a 32 bit unsigned integer value. More... | |
dbus_bool_t | _dbus_marshal_int64 (DBusString *str, int byte_order, dbus_int64_t value) |
Marshals a 64 bit signed integer value. More... | |
dbus_bool_t | _dbus_marshal_uint64 (DBusString *str, int byte_order, dbus_uint64_t value) |
Marshals a 64 bit unsigned integer value. More... | |
dbus_bool_t | _dbus_marshal_string (DBusString *str, int byte_order, const char *value) |
Marshals a UTF-8 string. More... | |
dbus_bool_t | _dbus_marshal_string_len (DBusString *str, int byte_order, const char *value, int len) |
Marshals a UTF-8 string. More... | |
dbus_bool_t | _dbus_marshal_byte_array (DBusString *str, int byte_order, const unsigned char *value, int len) |
Marshals a byte array. More... | |
dbus_bool_t | _dbus_marshal_int32_array (DBusString *str, int byte_order, const dbus_int32_t *value, int len) |
Marshals a 32 bit signed integer array. More... | |
dbus_bool_t | _dbus_marshal_uint32_array (DBusString *str, int byte_order, const dbus_uint32_t *value, int len) |
Marshals a 32 bit unsigned integer array. More... | |
dbus_bool_t | _dbus_marshal_int64_array (DBusString *str, int byte_order, const dbus_int64_t *value, int len) |
Marshals a 64 bit signed integer array. More... | |
dbus_bool_t | _dbus_marshal_uint64_array (DBusString *str, int byte_order, const dbus_uint64_t *value, int len) |
Marshals a 64 bit unsigned integer array. More... | |
dbus_bool_t | _dbus_marshal_double_array (DBusString *str, int byte_order, const double *value, int len) |
Marshals a double array. More... | |
dbus_bool_t | _dbus_marshal_string_array (DBusString *str, int byte_order, const char **value, int len) |
Marshals a string array. More... | |
dbus_bool_t | _dbus_marshal_object_path (DBusString *str, int byte_order, const char **path, int path_len) |
Marshals an object path value. More... | |
double | _dbus_demarshal_double (const DBusString *str, int byte_order, int pos, int *new_pos) |
Demarshals a double. More... | |
dbus_int32_t | _dbus_demarshal_int32 (const DBusString *str, int byte_order, int pos, int *new_pos) |
Demarshals a 32 bit signed integer. More... | |
dbus_uint32_t | _dbus_demarshal_uint32 (const DBusString *str, int byte_order, int pos, int *new_pos) |
Demarshals a 32 bit unsigned integer. More... | |
dbus_int64_t | _dbus_demarshal_int64 (const DBusString *str, int byte_order, int pos, int *new_pos) |
Demarshals a 64 bit signed integer. More... | |
dbus_uint64_t | _dbus_demarshal_uint64 (const DBusString *str, int byte_order, int pos, int *new_pos) |
Demarshals a 64 bit unsigned integer. More... | |
void | _dbus_demarshal_basic_type (const DBusString *str, int type, void *value, int byte_order, int *pos) |
Demarshals a basic type. More... | |
char * | _dbus_demarshal_string (const DBusString *str, int byte_order, int pos, int *new_pos) |
Demarshals an UTF-8 string. More... | |
dbus_bool_t | _dbus_demarshal_byte_array (const DBusString *str, int byte_order, int pos, int *new_pos, unsigned char **array, int *array_len) |
Demarshals a byte array. More... | |
dbus_bool_t | _dbus_demarshal_int32_array (const DBusString *str, int byte_order, int pos, int *new_pos, dbus_int32_t **array, int *array_len) |
Demarshals a 32 bit signed integer array. More... | |
dbus_bool_t | _dbus_demarshal_uint32_array (const DBusString *str, int byte_order, int pos, int *new_pos, dbus_uint32_t **array, int *array_len) |
Demarshals a 32 bit unsigned integer array. More... | |
dbus_bool_t | _dbus_demarshal_int64_array (const DBusString *str, int byte_order, int pos, int *new_pos, dbus_int64_t **array, int *array_len) |
Demarshals a 64 bit signed integer array. More... | |
dbus_bool_t | _dbus_demarshal_uint64_array (const DBusString *str, int byte_order, int pos, int *new_pos, dbus_uint64_t **array, int *array_len) |
Demarshals a 64 bit unsigned integer array. More... | |
dbus_bool_t | _dbus_demarshal_double_array (const DBusString *str, int byte_order, int pos, int *new_pos, double **array, int *array_len) |
Demarshals a double array. More... | |
dbus_bool_t | _dbus_demarshal_basic_type_array (const DBusString *str, int element_type, void **array, int *array_len, int byte_order, int *pos) |
Demarshals an array of basic types. More... | |
dbus_bool_t | _dbus_demarshal_string_array (const DBusString *str, int byte_order, int pos, int *new_pos, char ***array, int *array_len) |
Demarshals a string array. More... | |
dbus_bool_t | _dbus_decompose_path (const char *data, int len, char ***path, int *path_len) |
Decompose an object path. More... | |
dbus_bool_t | _dbus_demarshal_object_path (const DBusString *str, int byte_order, int pos, int *new_pos, char ***path, int *path_len) |
Demarshals an object path. More... | |
dbus_bool_t | _dbus_marshal_get_arg_end_pos (const DBusString *str, int byte_order, int type, int pos, int *end_pos) |
Returns the position right after the end of an argument. More... | |
dbus_bool_t | _dbus_marshal_validate_type (const DBusString *str, int pos, int *type, int *end_pos) |
Validates and returns a typecode at a specific position in the message. More... | |
dbus_bool_t | _dbus_marshal_validate_arg (const DBusString *str, int byte_order, int depth, int type, int array_type_pos, int pos, int *end_pos) |
Validates an argument of a specific type, checking that it is well-formed, for example no ludicrous length fields, strings are nul-terminated, etc. More... | |
dbus_bool_t | _dbus_type_is_valid (int typecode) |
Return TRUE if the typecode is a valid typecode. More... | |
void | _dbus_verbose_bytes (const unsigned char *data, int len) |
If in verbose mode, print a block of binary data. More... | |
void | _dbus_verbose_bytes_of_string (const DBusString *str, int start, int len) |
Dump the given part of the string to verbose log. More... | |
dbus_bool_t | _dbus_marshal_basic_type (DBusString *str, char type, void *value, int byte_order) |
Marshals a basic type. More... | |
dbus_bool_t | _dbus_marshal_basic_type_array (DBusString *str, char element_type, const void *value, int len, int byte_order) |
Marshals a basic type array. More... |
Types and functions related to converting primitive data types from wire format to native machine format, and vice versa.
|
Decompose an object path. A path of just "/" is represented as an empty vector of strings.
Definition at line 1636 of file dbus-marshal.c. |
|
Demarshals a basic type.
Definition at line 1121 of file dbus-marshal.c. |
|
Demarshals an array of basic types.
Definition at line 1503 of file dbus-marshal.c. |
|
Demarshals a byte array.
Definition at line 1227 of file dbus-marshal.c. |
|
Demarshals a double.
Definition at line 1014 of file dbus-marshal.c. References DBusOctets8::d. |
|
Demarshals a double array.
Definition at line 1479 of file dbus-marshal.c. |
|
Demarshals a 32 bit signed integer.
Definition at line 1036 of file dbus-marshal.c. |
|
Demarshals a 32 bit signed integer array.
Definition at line 1383 of file dbus-marshal.c. |
|
Demarshals a 64 bit signed integer.
Definition at line 1074 of file dbus-marshal.c. References DBusOctets8::s. |
|
Demarshals a 64 bit signed integer array.
Definition at line 1431 of file dbus-marshal.c. |
|
Demarshals an object path. A path of just "/" is represented as an empty vector of strings.
Definition at line 1723 of file dbus-marshal.c. |
|
Demarshals an UTF-8 string.
Definition at line 1182 of file dbus-marshal.c. |
|
Demarshals a string array.
Definition at line 1549 of file dbus-marshal.c. |
|
Demarshals a 32 bit unsigned integer.
Definition at line 1054 of file dbus-marshal.c. |
|
Demarshals a 32 bit unsigned integer array.
Definition at line 1406 of file dbus-marshal.c. |
|
Demarshals a 64 bit unsigned integer.
Definition at line 1096 of file dbus-marshal.c. References DBusOctets8::u. |
|
Demarshals a 64 bit unsigned integer array.
Definition at line 1454 of file dbus-marshal.c. |
|
Marshals a basic type.
Definition at line 2537 of file dbus-marshal.c. |
|
Marshals a basic type array.
Definition at line 2582 of file dbus-marshal.c. |
|
Marshals a byte array.
Definition at line 660 of file dbus-marshal.c. |
|
Marshals a double value.
Definition at line 496 of file dbus-marshal.c. References DBusOctets8::d. |
|
Marshals a double array.
Definition at line 867 of file dbus-marshal.c. |
|
Returns the position right after the end of an argument. PERFORMS NO VALIDATION WHATSOEVER. The message must have been previously validated.
Definition at line 1759 of file dbus-marshal.c. |
|
Marshals a 32 bit signed integer value.
Definition at line 514 of file dbus-marshal.c. |
|
Marshals a 32 bit signed integer array.
Definition at line 783 of file dbus-marshal.c. |
|
Marshals a 64 bit signed integer value.
Definition at line 548 of file dbus-marshal.c. References DBusOctets8::s. |
|
Marshals a 64 bit signed integer array.
Definition at line 825 of file dbus-marshal.c. |
|
Marshals an object path value.
Definition at line 930 of file dbus-marshal.c. |
|
Sets the 4 bytes at the given offset to a marshaled signed integer, replacing anything found there previously.
Definition at line 320 of file dbus-marshal.c. |
|
Sets the 8 bytes at the given offset to a marshaled signed integer, replacing anything found there previously.
Definition at line 360 of file dbus-marshal.c. References DBusOctets8::s. |
|
Sets the existing marshaled object path at the given offset to a new value. The given offset must point to an existing object path or this function doesn't make sense.
Definition at line 449 of file dbus-marshal.c. |
|
Sets the existing marshaled string at the given offset with a new marshaled string. The given offset must point to an existing string or the wrong length will be deleted and replaced with the new string. Note: no attempt is made by this function to re-align any data which has been already marshalled after this string. Use with caution.
Definition at line 411 of file dbus-marshal.c. |
|
Sets the 4 bytes at the given offset to a marshaled unsigned integer, replacing anything found there previously.
Definition at line 339 of file dbus-marshal.c. |
|
Sets the 8 bytes at the given offset to a marshaled unsigned integer, replacing anything found there previously.
Definition at line 381 of file dbus-marshal.c. References DBusOctets8::u. |
|
Marshals a UTF-8 string.
Definition at line 589 of file dbus-marshal.c. |
|
Marshals a string array.
Definition at line 887 of file dbus-marshal.c. |
|
Marshals a UTF-8 string.
Definition at line 623 of file dbus-marshal.c. |
|
Marshals a 32 bit unsigned integer value.
Definition at line 530 of file dbus-marshal.c. |
|
Marshals a 32 bit unsigned integer array.
Definition at line 803 of file dbus-marshal.c. |
|
Marshals a 64 bit unsigned integer value.
Definition at line 566 of file dbus-marshal.c. References DBusOctets8::u. |
|
Marshals a 64 bit unsigned integer array.
Definition at line 845 of file dbus-marshal.c. |
|
Validates an argument of a specific type, checking that it is well-formed, for example no ludicrous length fields, strings are nul-terminated, etc. Returns the end position of the argument in end_pos, and returns TRUE if a valid arg begins at "pos"
Definition at line 2098 of file dbus-marshal.c. |
|
Validates and returns a typecode at a specific position in the message.
Definition at line 1957 of file dbus-marshal.c. |
|
Packs a 32 bit signed integer into a data pointer.
Definition at line 234 of file dbus-marshal.c. |
|
Packs a 64 bit signed integer into a data pointer.
Definition at line 267 of file dbus-marshal.c. References DBusOctets8::s. |
|
Packs a 32 bit unsigned integer into a data pointer.
Definition at line 219 of file dbus-marshal.c. |
|
Packs a 64 bit unsigned integer into a data pointer.
Definition at line 250 of file dbus-marshal.c. References DBusOctets8::u. |
|
Return TRUE if the typecode is a valid typecode.
Definition at line 2392 of file dbus-marshal.c. |
|
Unpacks a 32 bit signed integer from a data pointer.
Definition at line 134 of file dbus-marshal.c. |
|
Unpacks a 64 bit signed integer from a data pointer.
Definition at line 167 of file dbus-marshal.c. References DBusOctets8::s. |
|
Unpacks a 32 bit unsigned integer from a data pointer.
Definition at line 120 of file dbus-marshal.c. |
|
Unpacks a 64 bit unsigned integer from a data pointer.
Definition at line 149 of file dbus-marshal.c. References DBusOctets8::u. |
|
If in verbose mode, print a block of binary data.
Definition at line 2425 of file dbus-marshal.c. |
|
Dump the given part of the string to verbose log.
Definition at line 2497 of file dbus-marshal.c. |