Commit graph

1974 commits

Author SHA1 Message Date
Havoc Pennington
401aaa225b minor cleanup 2005-01-02 20:15:01 +00:00
Havoc Pennington
b73cc81c6b clean up the naming of dbus_marshal functions 2005-01-02 19:10:16 +00:00
Havoc Pennington
fed88a4b84 delete some more noise, put args in consistent order (a big bug trap sadly),
and work on the set value stuff some
2005-01-02 08:46:42 +00:00
Havoc Pennington
fb40fedb9e cleanups and fixes 2005-01-02 05:01:07 +00:00
Havoc Pennington
ffd960fc3e implement _dbus_type_writer_write_reader() (to copy a block of values)
which is the first step toward a sane reimplementation of all that delete/modify
and realign nonsense in dbus-message.c
2005-01-02 04:29:52 +00:00
Havoc Pennington
df652bd9a1 change strings to be marshaled consistently with the other basic types (address of the value passed in, so char**) 2005-01-02 02:47:51 +00:00
Havoc Pennington
721e6c7abc make reader const-correct 2005-01-02 02:38:23 +00:00
Havoc Pennington
50103620b3 extend unit test to display progress and to verify that we are inserting not appending in all cases 2005-01-02 02:17:05 +00:00
Havoc Pennington
441907e73a add DBusTypeMark 2005-01-02 00:37:24 +00:00
Havoc Pennington
a6580a5940 2005-01-01 Havoc Pennington <hp@redhat.com>
* configure.in: add -Wfloat-equal
2005-01-01 23:32:45 +00:00
Havoc Pennington
10f0f04980 chop dbus-marshal-basic in half and move it to be insertion rather than append based 2005-01-01 21:05:48 +00:00
Havoc Pennington
e07789e511 voc Pennington <hp@redhat.com>
* dbus/dbus-sysdeps.h: add _DBUS_DOUBLES_BITWISE_EQUAL macro,
	for a variety of reasons '==' doesn't do this.
2005-01-01 20:53:42 +00:00
Havoc Pennington
60a9694974 all types now unit tested and working. 2005-01-01 08:19:28 +00:00
Havoc Pennington
e3ab3b2e84 add more "subclassing" to the test node classes 2005-01-01 03:37:26 +00:00
Havoc Pennington
64e0e91de0 yay, variant values working before the new year. 2005-01-01 03:28:08 +00:00
Havoc Pennington
2bf66111b6 minor tweaking 2005-01-01 02:47:13 +00:00
Havoc Pennington
bb8f518d07 add int64 to test suites, fix minor bug where marshaling assumed that DBusOctets8 was aligned when passed in as a function argument 2005-01-01 02:35:09 +00:00
Havoc Pennington
394d57c765 remove old unit test code, and clean up whitespace 2005-01-01 02:03:50 +00:00
Havoc Pennington
fb93fd5b3f test framework extension 2005-01-01 02:02:32 +00:00
Havoc Pennington
d89d5e41e1 further extend tests 2004-12-31 22:04:27 +00:00
Havoc Pennington
7ae17be411 new test framework in place 2004-12-31 21:08:06 +00:00
Havoc Pennington
c2a98e1103 2004-12-31 Havoc Pennington <hp@redhat.com>
* dbus/dbus-string.c (_dbus_string_equal_substrings): new function
	I keep wishing I had
2004-12-31 21:01:56 +00:00
Havoc Pennington
b16ad22d87 use vtable instead of flags for types only iterators 2004-12-31 00:24:24 +00:00
Havoc Pennington
4f2318345b add "types only" TypeReader, will move to use a vtable instead of a flag in a minute 2004-12-31 00:06:34 +00:00
Havoc Pennington
00999397ce - add variant reader
- further squish the iterator structs
2004-12-30 23:34:23 +00:00
Havoc Pennington
6e492b1ba1 store writer container_type in one byte to shrink iterator 2004-12-30 22:46:13 +00:00
Havoc Pennington
9836ac48fb remove unused element_type_len field 2004-12-30 22:44:44 +00:00
Havoc Pennington
daaee020dc - remove DICT type
- 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 22:34:17 +00:00
John (J5) Palmieri
7da3315f8c 2004-12-30 John (J5) Palmieri <johnp@redhat.com>
* python/dbus.py: s/ACTIVATION_REPLY_ACTIVE/ACTIVATION_REPLY_ACTIVATED
2004-12-30 18:28:03 +00:00
John (J5) Palmieri
63586e48f4 2004-12-30 John (J5) Palmieri <johnp@redhat.com>
* 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.
2004-12-30 14:19:54 +00:00
Havoc Pennington
eb4b165e30 DBusTypeWriterClass isn't going to work well, so remove vestiges of it. 2004-12-29 22:31:01 +00:00
Havoc Pennington
9b0fc4e482 switch to a vtable approach for the reader 2004-12-29 22:22:41 +00:00
Havoc Pennington
8645ee5251 put it in the test suite arrays (ok, I need to rewrite the unit tests here to be more automated...) 2004-12-29 06:39:32 +00:00
Havoc Pennington
fb1dfc9a9f struct of array of struct and array of struct of array 2004-12-29 06:27:59 +00:00
Havoc Pennington
160cf6f808 checkpoint with array-of-struct working 2004-12-29 05:04:01 +00:00
Havoc Pennington
d9afb9b5f1 arrays are working, woot 2004-12-28 23:14:31 +00:00
Havoc Pennington
7debfd9ff5 sync busted marshaling work in progress 2004-12-28 04:55:52 +00:00
John (J5) Palmieri
a11bbc91a7 2004-12-26 John (J5) Palmieri <johnp@redhat.com>
* 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-27 16:01:13 +00:00
Havoc Pennington
b8a309ac94 2004-12-24 Havoc Pennington <hp@redhat.com>
* 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
2004-12-24 17:54:01 +00:00
John (J5) Palmieri
f019ebdd20 * Forgot to add ChangeLog on last commit 2004-12-23 17:22:29 +00:00
John (J5) Palmieri
f06f148871 * patch from Rob Taylor <robtaylor@fastmail.fm>
- 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
2004-12-23 00:50:37 +00:00
Olivier Andrieu
dbd4279a80 * dbus/make-dbus-glib-error-enum.sh: omit the function keyword for
better POSIX compliance.
2004-12-21 10:51:46 +00:00
Havoc Pennington
617e73f763 2004-12-19 Havoc Pennington <hp@redhat.com>
* 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
2004-12-19 16:23:09 +00:00
Havoc Pennington
305a8d4d98 back up some files I'm working on that don't do anything yet 2004-12-19 00:11:49 +00:00
Havoc Pennington
f3228b477d 2004-12-18 Havoc Pennington <hp@redhat.com>
* 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-19 00:11:20 +00:00
Joe Shaw
b360305cda 2004-12-17 Joe Shaw <joeshaw@novell.com>
* 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-12-17 22:21:16 +00:00
Havoc Pennington
b60c835d34 2004-11-27 Havoc Pennington <hp@redhat.com>
* 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-27 07:30:22 +00:00
Havoc Pennington
65090abbb9 2004-11-26 Havoc Pennington <hp@redhat.com>
* 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-27 02:18:36 +00:00
Havoc Pennington
9e289c6488 2004-11-26 Havoc Pennington <hp@redhat.com>
* test/glib/test-profile.c: clean up how the fake_malloc_overhead
	thing was implemented
2004-11-27 00:19:49 +00:00
Havoc Pennington
f4a3751eef 2004-11-26 Havoc Pennington <hp@redhat.com>
* 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 07:42:24 +00:00