mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-22 14:50:11 +01:00
hmm, make check is currently not passing. * doc/dbus-specification.xml: add requirement that custom type names follow the same rules as interface names. * dbus/dbus-protocol.h: change some of the byte codes, to avoid duplication and allow 'c' to be 'custom'; dict is now 'm' for 'map' * doc/dbus-specification.xml: update type codes to match dbus-protocol.h, using the ASCII byte values. Rename type NAMED to CUSTOM. Add type OBJECT_PATH to the spec. 2003-10-17 Havoc Pennington <hp@redhat.com> * bus/driver.c (create_unique_client_name): use "." as separator in base service names instead of '-' * dbus/dbus-string.c (_dbus_string_get_byte): allow getting nul byte at the end of the string * dbus/dbus-internals.h (_DBUS_LIKELY, _DBUS_UNLIKELY): add optimization macros since string validation seems to be a slow point. * doc/dbus-specification.xml: restrict valid service/interface/member/error names. Add test suite code for the name validation. * dbus/dbus-string.c: limit service/interface/member/error names to [0-9][A-Z][a-z]_ * dbus/dbus-connection.c (dbus_connection_dispatch): add missing format arg to verbose spew * glib/dbus-gproxy.c (dbus_gproxy_call_no_reply): if not out of memory, return instead of g_error * test/test-service.c (path_message_func): support emitting a signal on request * dbus/dbus-bus.c (init_connections_unlocked): only fill in activation bus type if DBUS_BUS_ACTIVATION was set; default to assuming the activation bus was the session bus so that services started manually will still register. (init_connections_unlocked): fix so that in OOM situation we get the same semantics when retrying the function * test/test-service.c (main): change to use path registration, to test those codepaths; register with DBUS_BUS_ACTIVATION rather than DBUS_BUS_SESSION
65 lines
1.1 KiB
Text
65 lines
1.1 KiB
Text
# Message with lots of different argument types
|
|
|
|
VALID_HEADER method_call
|
|
REQUIRED_FIELDS
|
|
ALIGN 8
|
|
END_LENGTH Header
|
|
START_LENGTH Body
|
|
TYPE NIL
|
|
TYPE BYTE
|
|
BYTE 42
|
|
TYPE INT32
|
|
INT32 0x12345678
|
|
TYPE UINT32
|
|
UINT32 0x8765432
|
|
TYPE DOUBLE
|
|
DOUBLE 3.141592653589
|
|
TYPE STRING
|
|
STRING 'This is a string'
|
|
TYPE ARRAY
|
|
TYPE BOOLEAN
|
|
BOOLEAN_ARRAY { true, false, false, true, false }
|
|
TYPE ARRAY
|
|
TYPE INT32
|
|
INT32_ARRAY { 1, -2, 3, -4, 5, -6, 7, -8, 9, -10 }
|
|
TYPE ARRAY
|
|
TYPE UINT32
|
|
UINT32_ARRAY { 11, 12, 314, 1911, 57692, 1237, 2834 }
|
|
TYPE ARRAY
|
|
TYPE DOUBLE
|
|
DOUBLE_ARRAY { 0.1, 0.2, 3.1415926, 2.7183, 10.0, 9.99 }
|
|
TYPE ARRAY
|
|
TYPE STRING
|
|
STRING_ARRAY { 'Hello', 'This', 'Is', 'A', 'String', 'Array!' }
|
|
TYPE CUSTOM
|
|
STRING 'named type'
|
|
BYTE_ARRAY { 'b', 'i', 'n', 'a', 'r', 'y', 'd', 'a', 't', 'a' }
|
|
|
|
TYPE ARRAY
|
|
TYPE DICT
|
|
LENGTH Array
|
|
START_LENGTH Array
|
|
|
|
LENGTH Dict1
|
|
START_LENGTH Dict1
|
|
STRING 'key1'
|
|
TYPE INT32
|
|
INT32 0x12345678
|
|
STRING 'key2'
|
|
TYPE UINT32
|
|
UINT32 0x8765432
|
|
END_LENGTH Dict1
|
|
|
|
LENGTH Dict2
|
|
START_LENGTH Dict2
|
|
STRING 'key1'
|
|
TYPE INT32
|
|
INT32 0x12345678
|
|
STRING 'key2'
|
|
TYPE UINT32
|
|
UINT32 0x8765432
|
|
END_LENGTH Dict2
|
|
|
|
END_LENGTH Array
|
|
|
|
END_LENGTH Body
|