summaryrefslogtreecommitdiffstats
path: root/dbus
Commit message (Collapse)AuthorAgeFilesLines
...
* 2005-01-16 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-165-602/+32
| | | | | | | | | | * test/unused-code-gc.py: hacky script to find code that's used only by the bus (not libdbus) or used only by tests or not used at all. It has some false alarms, but looks like we can clean up a lot of size from libdbus. * dbus/dbus-sysdeps.c, dbus/dbus-sysdeps-utils.c, dbus/Makefile.am: initially move 10K of binary size out of libdbus
* 2005-01-16 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-1611-124/+261
| | | | | | | | | | | | | | | | | * 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-166-69/+101
| | | | | | | | | | | | | | | * test/glib/test-profile.c (with_bus_server_filter): fix crash * dbus/dbus-marshal-basic.c (_dbus_unpack_uint32): inline as macro when DBUS_DISABLE_ASSERT (_dbus_marshal_set_basic): be sure we align for the string length * dbus/dbus-marshal-recursive.c (skip_one_complete_type): make this look faster * dbus/dbus-string.c (_dbus_string_get_const_data_len): add an inline macro version (_dbus_string_set_byte): provide inline macro version
* 2005-01-15 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-1532-9580/+6030
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* fix doh! in test for double parsingHavoc Pennington2005-01-111-2/+2
|
* 2005-01-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-111-13/+2
| | | | | | | | | | | Patch from Timo Teräs <ext-timo.teras@nokia.com> * dbus/dbus-connection.c (_dbus_connection_queue_received_message_link): Call _dbus_connection_remove_timeout() instead of the _locked() variant, since it's always called from _dbus_connection_handle_watch(), which handles the locking. Removed the _locked() variant since it's no longer used.
* 2005-01-03 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-031-1/+1
| | | | | * dbus/dbus-internals.h: I'm an idiot, _dbus_assert certainly can return
* 2004-12-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-031-1/+1
| | | | * dbus/dbus-internals.h: add _DBUS_GNUC_NORETURN to _dbus_assert
* add a file to hold the validation routinesHavoc Pennington2005-01-033-3/+84
|
* 2005-01-03 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-033-2/+37
| | | | | | | * dbus/dbus-sysdeps.c (_dbus_sysdeps_test): fix using == on floating point * dbus/dbus-string.c (_dbus_string_insert_alignment): new function
* finish off my TODO list for stuff needed to port dbus-message.c. NextHavoc Pennington2005-01-034-192/+486
| | | | step is to do so.
* just when the file was looking all beautiful, add horrible hacky code toHavoc Pennington2005-01-033-136/+816
| | | | fixup array lengths after setting a value somewhere within the array.
* cleanup args to read func in test suiteHavoc Pennington2005-01-031-40/+40
|
* checkpoint set_variable_length workHavoc Pennington2005-01-032-175/+348
|
* values-only DBusTypeWriterHavoc Pennington2005-01-022-51/+171
|
* minor cleanupHavoc Pennington2005-01-022-49/+77
|
* clean up the naming of dbus_marshal functionsHavoc Pennington2005-01-023-152/+149
|
* delete some more noise, put args in consistent order (a big bug trap sadly),Havoc Pennington2005-01-024-688/+806
| | | | and work on the set value stuff some
* cleanups and fixesHavoc Pennington2005-01-022-98/+139
|
* implement _dbus_type_writer_write_reader() (to copy a block of values)Havoc Pennington2005-01-024-108/+300
| | | | | which is the first step toward a sane reimplementation of all that delete/modify and realign nonsense in dbus-message.c
* change strings to be marshaled consistently with the other basic types ↵Havoc Pennington2005-01-022-14/+19
| | | | (address of the value passed in, so char**)
* make reader const-correctHavoc Pennington2005-01-022-55/+91
|
* extend unit test to display progress and to verify that we are inserting not ↵Havoc Pennington2005-01-021-73/+225
| | | | appending in all cases
* add DBusTypeMarkHavoc Pennington2005-01-024-68/+272
|
* chop dbus-marshal-basic in half and move it to be insertion rather than ↵Havoc Pennington2005-01-014-2314/+662
| | | | append based
* voc Pennington <hp@redhat.com>Havoc Pennington2005-01-011-0/+15
| | | | | * dbus/dbus-sysdeps.h: add _DBUS_DOUBLES_BITWISE_EQUAL macro, for a variety of reasons '==' doesn't do this.
* all types now unit tested and working.Havoc Pennington2005-01-012-55/+604
|
* add more "subclassing" to the test node classesHavoc Pennington2005-01-011-236/+106
|
* yay, variant values working before the new year.Havoc Pennington2005-01-011-45/+157
|
* minor tweakingHavoc Pennington2005-01-011-5/+70
|
* add int64 to test suites, fix minor bug where marshaling assumed that ↵Havoc Pennington2005-01-013-6/+116
| | | | DBusOctets8 was aligned when passed in as a function argument
* remove old unit test code, and clean up whitespaceHavoc Pennington2005-01-011-1496/+182
|
* test framework extensionHavoc Pennington2005-01-011-122/+378
|
* further extend testsHavoc Pennington2004-12-311-50/+469
|
* new test framework in placeHavoc Pennington2004-12-311-38/+611
|
* 2004-12-31 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-12-312-1/+64
| | | | | * dbus/dbus-string.c (_dbus_string_equal_substrings): new function I keep wishing I had
* use vtable instead of flags for types only iteratorsHavoc Pennington2004-12-312-109/+144
|
* add "types only" TypeReader, will move to use a vtable instead of a flag in ↵Havoc Pennington2004-12-312-74/+145
| | | | a minute
* - add variant readerHavoc Pennington2004-12-302-7/+48
| | | | - 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-302-3/+1
|
* - remove DICT typeHavoc Pennington2004-12-305-217/+227
| | | | | | | | - 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-292-2/+10
|
* switch to a vtable approach for the readerHavoc Pennington2004-12-292-309/+368
|
* put it in the test suite arrays (ok, I need to rewrite the unit tests here ↵Havoc Pennington2004-12-291-1/+13
| | | | to be more automated...)
* struct of array of struct and array of struct of arrayHavoc Pennington2004-12-291-14/+361
|
* checkpoint with array-of-struct workingHavoc Pennington2004-12-292-232/+446
|
* arrays are working, wootHavoc Pennington2004-12-282-57/+126
|
* sync busted marshaling work in progressHavoc Pennington2004-12-285-153/+1103
|
* * dbus/make-dbus-glib-error-enum.sh: omit the function keyword forOlivier Andrieu2004-12-211-1/+1
| | | | better POSIX compliance.