summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* voc Pennington <hp@redhat.com>Havoc Pennington2005-01-013-0/+24
| | | | | * 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-313-1/+69
| | | | | * 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
* 2004-12-30 John (J5) Palmieri <johnp@redhat.com>John (J5) Palmieri2004-12-302-1/+5
| | | | * python/dbus.py: s/ACTIVATION_REPLY_ACTIVE/ACTIVATION_REPLY_ACTIVATED
* 2004-12-30 John (J5) Palmieri <johnp@redhat.com>John (J5) Palmieri2004-12-302-2/+10
| | | | | | | * python/dbus_bindings.pyx.in: Change DBUS_ACTIVATION_REPLY_ACTIVATED and DBUS_ACTIVATION_REPLY_ALREADY_ACTIVE to match the values in dbus-protocol.h. Because they are defines and not enums they are not autogenerated.
* 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
|
* 2004-12-26 John (J5) Palmieri <johnp@redhat.com>John (J5) Palmieri2004-12-273-0/+31
| | | | | | | | * python/dbus_bindings.pyx.in (bus_activate_service): Bind dbus_bus_activate_service * python/dbus.py (Bus.activate_service): activate a service on the bus.
* 2004-12-24 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-12-243-24/+54
| | | | | | | * test/decode-gcov.c: change to use .gcno and .gcda files, but the file format has also changed and I haven't adapted to that yet * Makefile.am: load .gcno files from latest gcc
* * Forgot to add ChangeLog on last commitJohn (J5) Palmieri2004-12-231-0/+12
|
* * patch from Rob Taylor <robtaylor@fastmail.fm>John (J5) Palmieri2004-12-233-2/+18
| | | | | | - wrap bus_get_unix_user method in low level bindings - add get_unix_user method to the Bus class - fix extract.py so it can handle unsigned long return types
* * dbus/make-dbus-glib-error-enum.sh: omit the function keyword forOlivier Andrieu2004-12-212-1/+6
| | | | better POSIX compliance.
* 2004-12-19 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-12-198-234/+664
| | | | | | | * 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-195-0/+4350
|
* 2004-12-18 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-12-195-4/+33
| | | | | | | | | | | | * dbus/dbus-string.c (_dbus_string_validate_ascii): use ISASCII macro * dbus/dbus-message.c: fix a comment, and add a still-unused not-implemented function * dbus/dbus-marshal.h: fix comment * dbus/dbus-internals.h (_DBUS_ISASCII): new macro
* 2004-12-17 Joe Shaw <joeshaw@novell.com>Joe Shaw2004-12-176-5/+14
| | | | | | | | | * mono/DBusType/Byte.cs, mono/DBusType/Int32.cs, mono/DBusType/Int64.cs, mono/DBusType/UInt32.cs, mono/DBusType/UInt64.cs: Use Enum.GetUnderlyingType() instead of Type.UnderlyingSystemType to get the actual system type underneath. This code previously depended on the broken Mono behavior, which was fixed in 1.1.3.
* 2004-11-27 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-11-276-6/+62
| | | | | | | | | | | | * dbus/dbus-string.h (_dbus_string_get_byte): inline when asserts are disabled (_dbus_string_get_const_data): inline when asserts are disabled * dbus/dbus-message.c: record the _dbus_current_generation of creation so we can complain if dbus_shutdown() is used improperly. Do this only if checks are enabled. * dbus/dbus-connection.c: ditto
* 2004-11-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-11-276-51/+386
| | | | | | | | | | * test/glib/test-profile.c: add with_bus mode to profile echoes that go through the bus. * test/glib/run-test.sh: add ability to run test-profile * bus/dbus-daemon-1.1.in: fix to say that SIGHUP causes partial config file reload.
* 2004-11-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-11-272-18/+30
| | | | | * test/glib/test-profile.c: clean up how the fake_malloc_overhead thing was implemented
* 2004-11-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-11-262-30/+109
| | | | | | | * test/glib/test-profile.c: tweak a bit, add support for some made-up minimal malloc overhead with plain sockets, since in real life some sort of buffers are unavoidable thus we could count them in the theoretical best case
* 2004-11-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-11-262-5/+17
| | | | | * dbus/dbus-message.c (dbus_message_cache_or_finalize): fix bug where I was trying to cache one too many messages
* 2004-11-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-11-262-27/+67
| | | | | * dbus/dbus-message.c: reimplement message cache as an array which makes the cache about twice as fast and saves maybe 1.5% overall
* 2004-11-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-11-262-2/+8
| | | | | * dbus/dbus-threads.c (init_global_locks): forgot to put the message cache lock here
* 2004-11-26 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-11-266-53/+287
| | | | | | | | | | | | * dbus/dbus-message.c (struct DBusMessage): put the locked bit and the "char byte_order" next to each other to save 4 bytes (dbus_message_new_empty_header): reduce preallocation, since the message cache should achieve a similar effect (dbus_message_cache_or_finalize, dbus_message_get_cached): add a message cache that keeps a few DBusMessage around in a pool, another 8% speedup or so. * dbus/dbus-dataslot.c (_dbus_data_slot_list_clear): new function
* 2004-11-25 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-11-262-1/+31
| | | | | | | * dbus/dbus-transport-unix.c (unix_do_iteration): if we're going to write, without reading or blocking, try it before the poll() and skip the poll() if nothing remains to write. This is about a 3% speedup in the echo client/server
* 2004-11-25 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-11-2622-207/+772
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The primary change here is to always write() once before adding the write watch, which gives us about a 10% performance increase. * dbus/dbus-transport-unix.c: a number of modifications to cope with removing messages_pending (check_write_watch): properly handle DBUS_AUTH_STATE_WAITING_FOR_MEMORY; adapt to removal of messages_pending stuff (check_read_watch): properly handle WAITING_FOR_MEMORY and AUTHENTICATED cases (unix_handle_watch): after writing, see if the write watch can be removed (unix_do_iteration): assert that write_watch/read_watch are non-NULL rather than testing that they aren't, since they aren't allowed to be NULL. check_write_watch() at the end so we add the watch if we did not finish writing (e.g. got EAGAIN) * dbus/dbus-transport-protected.h: remove messages_pending call, since it resulted in too much inefficient watch adding/removing; instead we now require that the transport user does an iteration after queueing outgoing messages, and after trying the first write() we add a write watch if we got EAGAIN or exceeded our max bytes to write per iteration setting * dbus/dbus-string.c (_dbus_string_validate_signature): add this function * dbus/dbus-server-unix.c (unix_finalize): the socket name was freed and then accessed, valgrind flagged this bug, fix it * dbus/dbus-message.c: fix several bugs where HEADER_FIELD_LAST was taken as the last valid field plus 1, where really it is equal to the last valid field. Corrects some message corruption issues. * dbus/dbus-mainloop.c: verbosity changes * dbus/dbus-keyring.c (_dbus_keyring_new_homedir): handle OOM instead of aborting in one of the test codepaths * dbus/dbus-internals.c (_dbus_verbose_real): fix a bug that caused not printing the pid ever again if a verbose was missing the newline at the end (_dbus_header_field_to_string): add HEADER_FIELD_SIGNATURE * dbus/dbus-connection.c: verbosity changes; (dbus_connection_has_messages_to_send): new function (_dbus_connection_message_sent): no longer call transport->messages_pending (_dbus_connection_send_preallocated_unlocked): do one iteration to try to write() immediately, so we can avoid the write watch. This is the core purpose of this patchset (_dbus_connection_get_dispatch_status_unlocked): if disconnected, dump the outgoing message queue, so nobody will get confused trying to send them or thinking stuff is pending to be sent * bus/test.c: verbosity changes * bus/driver.c: verbosity/assertion changes * bus/dispatch.c: a bunch of little tweaks to get it working again because this patchset changes when/where you need to block.
* 2004-11-23 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-11-232-36/+518
| | | | | | * test/glib/test-profile.c: modify to accept a plain_sockets argument in which case it will bench plain sockets instead of libdbus, for comparison purposes.