summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-marshal-recursive.h
Commit message (Collapse)AuthorAgeFilesLines
* * dbus/dbus-marshal-recursive-util.c, dbus/dbus-marshal-recursive.c:John (J5) Palmieri2006-09-111-31/+0
| | | | remove DBusMark
* * doc/TODO, various source files: Audited todo's and FIXME's andJohn (J5) Palmieri2006-09-061-1/+1
| | | | | | prepended the ones we should be looking at with 1.0. Those prepended with 1.0? need clerification or might not be needed for 1.0
* 2005-05-11 Colin Walters <walters@verbum.org>Colin Walters2005-05-111-0/+1
| | | | | | | | | | | | | | | | | * dbus/dbus-signature.c (dbus_signature_iter_get_signature): New function, returns signature string for signature iter. * dbus/dbus-signature.h: Prototype it. * dbus/dbus-message.c (dbus_message_iter_get_signature): New function, returns signature string for message iter. (dbus_message_iter_get_array_len): New function, returns length of array. (dbus_message_iter_get_fixed_array): Fix assertion; this function should be used when the iter is pointing to the contents of an array * dbus/dbus-message.h: Prototypes. * dbus/dbus-marshal-recursive.c (_dbus_type_reader_get_array_length): New function; returns length of an array. * dbus/dbus-marshal-recursive.h: Prototype it.
* 2005-02-24 Colin Walters <walters@verbum.org>Colin Walters2005-02-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dbus/dbus-signature.c: New file; implements various functions related to type signatures. Includes an interator for parsing, validation functions. (dbus_type_is_basic): Moved here from dbus-marshal-basic.c:_dbus_type_is_basic. (dbus_type_is_container): Moved here from dbus-marshal-basic.c:_dbus_type_is_container. All callers of _dbus_type_is_container and _dbus_type_is_basic updated, and include dbus-signature.h. * dbus/dbus-signature.h: New file; prototypes for the above. * dbus/Makefile.am (DBUS_LIB_SOURCES): Add dbus-signature.c, dbus-signature.h. * dbus/dbus-marshal-basic.c (map_type_char_to_type): New utility function factored out of _dbus_first_type_in_signature. (_dbus_first_type_in_signature_c_str): New function; returns first type code for a type signature character. * dbus/dbus-marshal-basic.h: Prototype _dbus_first_type_in_signature_c_str, handle function moves. * dbus/dbus-marshal-recursive.h: Export _dbus_type_signature_next. * dbus/dbus-marshal-recursive.c (_dbus_type_signature_next): New function; skips to next complete type in type signature. Implemented using previous skip_one_complete_type. Now skip_one_complete_type just delegates to _dbus_type_signature_next. * dbus/dbus-marshal-basic.c (_dbus_type_is_basic): Moved to dbus-signature.c (_dbus_type_is_container): Ditto. * doc/dbus-specification.xml: Update introspection sample to use real type signatures. * dbus/dbus-test.h: Prototype signature test. * dbus/dbus-test.c (dbus_internal_do_not_use_run_tests): Run signature tests. * dbus/dbus-protocol.h (DBUS_ERROR_INVALID_SIGNATURE): New error.
* 2005-01-27 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-271-1/+3
| | | | | | | | | | * dbus/dbus-message.c: byteswap the message if you init an iterator to read/write from it * dbus/dbus-marshal-byteswap.c: new file implementing _dbus_marshal_byteswap() * dbus/dbus-marshal-basic.c: add _dbus_swap_array()
* 2005-01-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-271-18/+0
| | | | * dbus/dbus-marshal-recursive.h: remove todo comment
* 2005-01-16 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-161-33/+45
| | | | | | | | | | | | | | | | | * Add and fix docs according to Doxygen warnings throughout source. * dbus/dbus-marshal-recursive.c (_dbus_type_reader_array_is_empty): change this to just call array_reader_get_array_len() and make it static * dbus/dbus-message.c (dbus_message_iter_get_element_type): rename from get_array_type (dbus_message_iter_init_append): rename from append_iter_init * dbus/dbus-marshal-recursive.c (_dbus_type_reader_get_element_type): rename from _dbus_type_reader_get_array_type
* 2005-01-15 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-151-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Land the new message args API and type system. This patch is huge, but the public API change is not really large. The set of D-BUS types has changed somewhat, and the arg "getters" are more geared toward language bindings; they don't make a copy, etc. There are also some known issues. See these emails for details on this huge patch: http://lists.freedesktop.org/archives/dbus/2004-December/001836.html http://lists.freedesktop.org/archives/dbus/2005-January/001922.html * dbus/dbus-marshal-*: all the new stuff * dbus/dbus-message.c: basically rewritten * dbus/dbus-memory.c (check_guards): with "guards" enabled, init freed blocks to be all non-nul bytes so using freed memory is less likely to work right * dbus/dbus-internals.c (_dbus_test_oom_handling): add DBUS_FAIL_MALLOC=N environment variable, so you can do DBUS_FAIL_MALLOC=0 to skip the out-of-memory checking, or DBUS_FAIL_MALLOC=10 to make it really, really, really slow and thorough. * qt/message.cpp: port to the new message args API (operator<<): use str.utf8() rather than str.unicode() (pretty sure this is right from the Qt docs?) * glib/dbus-gvalue.c: port to the new message args API * bus/dispatch.c, bus/driver.c: port to the new message args API * dbus/dbus-string.c (_dbus_string_init_const_len): initialize the "locked" flag to TRUE and align_offset to 0; I guess we never looked at these anyhow, but seems cleaner. * dbus/dbus-string.h (_DBUS_STRING_ALLOCATION_PADDING): move allocation padding macro to this header; use it to implement (_DBUS_STRING_STATIC): ability to declare a static string. * dbus/dbus-message.c (_dbus_message_has_type_interface_member): change to return TRUE if the interface is not set. * dbus/dbus-string.[hc]: move the D-BUS specific validation stuff to dbus-marshal-validate.[hc] * dbus/dbus-marshal-basic.c (_dbus_type_to_string): move here from dbus-internals.c * dbus/Makefile.am: cut over from dbus-marshal.[hc] to dbus-marshal-*.[hc] * dbus/dbus-object-tree.c (_dbus_decompose_path): move this function here from dbus-marshal.c
* finish off my TODO list for stuff needed to port dbus-message.c. NextHavoc Pennington2005-01-031-8/+9
| | | | step is to do so.
* just when the file was looking all beautiful, add horrible hacky code toHavoc Pennington2005-01-031-32/+46
| | | | fixup array lengths after setting a value somewhere within the array.
* checkpoint set_variable_length workHavoc Pennington2005-01-031-29/+37
|
* values-only DBusTypeWriterHavoc Pennington2005-01-021-22/+29
|
* minor cleanupHavoc Pennington2005-01-021-1/+2
|
* delete some more noise, put args in consistent order (a big bug trap sadly),Havoc Pennington2005-01-021-3/+10
| | | | and work on the set value stuff some
* cleanups and fixesHavoc Pennington2005-01-021-25/+23
|
* implement _dbus_type_writer_write_reader() (to copy a block of values)Havoc Pennington2005-01-021-1/+4
| | | | | which is the first step toward a sane reimplementation of all that delete/modify and realign nonsense in dbus-message.c
* make reader const-correctHavoc Pennington2005-01-021-31/+33
|
* add DBusTypeMarkHavoc Pennington2005-01-021-23/+51
|
* chop dbus-marshal-basic in half and move it to be insertion rather than ↵Havoc Pennington2005-01-011-3/+16
| | | | append based
* use vtable instead of flags for types only iteratorsHavoc Pennington2004-12-311-2/+0
|
* add "types only" TypeReader, will move to use a vtable instead of a flag in ↵Havoc Pennington2004-12-311-5/+9
| | | | a minute
* - add variant readerHavoc Pennington2004-12-301-5/+7
| | | | - further squish the iterator structs
* store writer container_type in one byte to shrink iteratorHavoc Pennington2004-12-301-1/+1
|
* remove unused element_type_len fieldHavoc Pennington2004-12-301-2/+1
|
* - remove DICT typeHavoc Pennington2004-12-301-32/+25
| | | | | | | | - add SIGNATURE type - fix max name len of 256, should be 255 so it fits in a byte if it's going to be a number near 256 - generalize some of the recursive type marshaling code to share between arrays and variants - just started on implementing variant
* DBusTypeWriterClass isn't going to work well, so remove vestiges of it.Havoc Pennington2004-12-291-2/+0
|
* switch to a vtable approach for the readerHavoc Pennington2004-12-291-23/+6
|
* checkpoint with array-of-struct workingHavoc Pennington2004-12-291-1/+2
|
* arrays are working, wootHavoc Pennington2004-12-281-1/+1
|
* sync busted marshaling work in progressHavoc Pennington2004-12-281-19/+59
|
* 2004-12-19 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-12-191-22/+22
| | | | | | | * dbus/dbus-string.c (_dbus_string_insert_4_aligned) (_dbus_string_insert_8_aligned): new functions * dbus/dbus-string.c (_dbus_string_alloc_space): new function
* back up some files I'm working on that don't do anything yetHavoc Pennington2004-12-191-0/+112