summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 2005-01-21 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-217-54/+109
| | | | | | | | | | | * dbus/dbus-bus.c: add more return_if_fail checks * dbus/dbus-message.c (load_message): have the "no validation" mode (have to edit the code to toggle the mode for now though) * dbus/dbus-marshal-header.c (_dbus_header_load): have a mode that skips all validation; I want to use this at least for benchmark baseline, I'm not sure if it should be a publicly-available switch.
* 2005-01-21 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-213-7/+22
| | | | | | | * glib/dbus-gmain.c: don't put the GLib bindings in the same toplevel doxygen group as the low-level API stuff * dbus/dbus.h: note that libdbus is the low-level API
* 2005-01-20 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-212-0/+52
| | | | | * update-dbus-docs.sh: script to update docs on the web site, only works for me though. neener.
* 2005-01-20 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-212-2/+7
| | | | | * dbus/dbus-sysdeps.c (_dbus_poll): amazingly, trying to compile code can reveal bugs in it
* 2005-01-20 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-212-16/+22
| | | | | * dbus/dbus-sysdeps.c (_dbus_poll): fix several bugs in the select() version, patches from Tor Lillqvist
* 2005-01-20 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-217-51/+68
| | | | | | | | | | | | | | * doc/dbus-tutorial.xml: replace > with &gt; * bus/services.c (bus_registry_acquire_service): validate the name and return a better error if it's no good. * doc/dbus-specification.xml: note NO_AUTO_START change * dbus/dbus-protocol.h (DBUS_HEADER_FLAG_NO_AUTO_START): change from AUTO_START, we're toggling the default * bus/dispatch.c: adapt the tests to change of auto-start default
* 2005-01-18 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-1811-39/+37
| | | | * rename dbus-daemon-1 to dbus-daemon throughout
* 2005-01-18 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-1833-1044/+1606
| | | | | | | | | | | | * Throughout, grand renaming to strip out the use of "service", just say "name" instead (or "bus name" when ambiguous). Did not change the internal code of the message bus itself, only the programmer-facing API and messages. * doc/dbus-specification.xml: further update the message bus section * bus/config-parser.c (all_are_equiv): fix bug using freed string in error case
* 2005-01-17 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-184-359/+351
| | | | | | | | | | | | * dbus/dbus-types.h: remove 16-bit types since we don't use them ever * dbus/dbus-marshal-validate.c (_dbus_validate_path): disallow any "invalid name character" not only non-ASCII * doc/dbus-specification.xml: further update spec, message bus parts are still out-of-date but the marshaling etc. stuff is now accurate-ish
* 2005-01-17 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-182-163/+520
| | | | * doc/dbus-specification.xml: partially update spec
* 2005-01-17 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-177-71/+80
| | | | | | | | | | | * Throughout, align variant bodies according to the contained type, rather than always to 8. Should save a fair bit of space in message headers. * dbus/dbus-marshal-validate.c (_dbus_validate_body_with_reason): fix handling of case where p == end * doc/TODO: remove the dbus_bool_t item and variant alignment items
* 2005-01-17 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-1712-36/+54
| | | | | | | | * dbus/dbus-types.h: hardcode dbus_bool_t to 32 bits * Throughout: modify DBUS_TYPE_BOOLEAN to be a 32-bit type instead of an 8-bit type. Now dbus_bool_t is the type to use whenever you are marshaling/unmarshaling a boolean.
* 2005-01-16 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-1726-5626/+6517
| | | | | | | | | | | | | | | | | | | | | | | | This is about it on what can be disabled/deleted from libdbus easily, back below 150K anyhow. Deeper cuts are more work than just turning the code off as I've done here. * dbus/dbus-marshal-basic.c (_dbus_pack_int32): we don't need the signed int convenience funcs * dbus/dbus-internals.c (_dbus_verbose_real): omit when not in verbose mode * dbus/dbus-string-util.c, dbus/dbus-string.c: more breaking things out of libdbus * dbus/dbus-sysdeps.c, dbus/dbus-sysdeps-util.c: same * dbus/dbus-hash.c: purge the TWO_STRINGS crap (well, make it tests-enabled-only, though it should probably be deleted) * dbus/dbus-message-util.c: same stuff * dbus/dbus-auth-util.c: same stuff
* 2005-01-16 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-178-357/+501
| | | | | | | | * dbus/dbus-userdb-util.c: split out part of dbus-userdb.c * dbus/dbus-sysdeps.c (_dbus_uid_from_string): move here to pave way for stripping down dbus-userdb.c stuff included in libdbus. Rename _dbus_parse_uid for consistency.
* 2005-01-16 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-1710-43/+56
| | | | | | | | | | | | | | | | | | | | | | | | * dbus/dbus-internals.c (_dbus_real_assert): print the function name the assertion failed in * dbus/dbus-internals.h (_dbus_return_if_fail) (_dbus_return_val_if_fail): assert that the name of the function containing the check doesn't start with '_', since we only want to use checks on public functions * dbus/dbus-connection.c (_dbus_connection_ref_unlocked): change checks to assertions * dbus/dbus-marshal-header.c (_dbus_header_set_field_basic): change checks to asserts for private function * dbus/dbus-message.c (_dbus_message_set_serial): checks to asserts for private function * dbus/dbus-marshal-recursive.c (skip_one_complete_type): remove broken assertion that was breaking make check (_dbus_type_reader_array_is_empty): remove this rather than fix it, was only used in assertions
* 2005-01-16 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-167-602/+282
| | | | | | | | | | * 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-1619-131/+285
| | | | | | | | | | | | | | | | | * 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-168-75/+118
| | | | | | | | | | | | | | | * 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-1556-9901/+6561
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Update some paths in HACKINGJoe Shaw2005-01-131-3/+3
|
* 2005-01-12 Joe Shaw <joeshaw@novell.com>dbus-0.23Joe Shaw2005-01-123-1/+36
| | | | | | * NEWS: Update for 0.23. * configure.in: Release 0.23.
* 2005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-122-2/+2
| | | | | | * mono/Makefile.am, mono/example/Makefile.am: Always build the dbus DLL with --debug. Clean up after the .mdb files this leaves behind.
* 2005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-123-5/+6
| | | | | | * mono/Makefile.am, mono/example/Makefile.am: Always build the dbus DLL with --debug. Clean up after the .mdb files this leaves behind.
* 2005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-122-0/+8
| | | | | * mono/doc/Makefile.am: Need to uninstall the docs on "make uninstall"
* 2005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-122-4/+5
| | | | | * mono/Makefile.am, mono/example/Makefile.am: Always build the dbus DLL with --debug.
* 2005-01-12 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-123-2/+12
| | | | | | | | * mono/Makefile.am: Always build the dbus DLL with --debug. * mono/Arguments.cs (GetDBusTypeConstructor): If the type is an enum, get the enum's underlying type. Another mono 1.1.3 fix.
* fix doh! in test for double parsingHavoc Pennington2005-01-111-2/+2
|
* 2005-01-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-113-4/+7
| | | | | | | Patch from Sjoerd Simons <sjoerd@luon.net> * mono/Makefile.am, mono/example/Makefile.am: Don't redefine DESTDIR. It breaks stuff.
* 2005-01-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-113-1/+17
| | | | | | | | | | | | Patch from Tambet Ingo <tambet@ximian.com> * mono/DBusType/Array.cs (Get): Get the underlying element type by calling type.GetElementType(). The code previously depended on broken Mono behavior, which was fixed in Mono 1.1.3. * mono/DBusType/Dict.cs (constructor): Fix the parameters for Activator.CreateInstance() so that the class's constructor is called with the right parameters.
* 2005-01-11 Joe Shaw <joeshaw@novell.com>Joe Shaw2005-01-112-13/+13
| | | | | | | | | | | 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-032-1/+6
| | | | | * dbus/dbus-internals.h: I'm an idiot, _dbus_assert certainly can return
* 2004-12-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-032-1/+5
| | | | * 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-034-2/+48
| | | | | | | * 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
|
* 2005-01-01 Havoc Pennington <hp@redhat.com>Havoc Pennington2005-01-012-0/+9
| | | | * configure.in: add -Wfloat-equal
* chop dbus-marshal-basic in half and move it to be insertion rather than ↵Havoc Pennington2005-01-014-2314/+662
| | | | append based