Find a file
Havoc Pennington 993be1059a 2003-01-08 Havoc Pennington <hp@pobox.com>
* dbus/dbus-string.c (_dbus_string_align_length): new function

	* dbus/dbus-test-main.c: move main() for test app here
	* dbus/dbus-test.c
	(dbus_internal_symbol_do_not_use_run_tests): we have to export a
	symbol to run tests, because dbus-test isn't in the main
	library

        Code review nitpicks.

	* dbus/dbus-message.c (dbus_message_write_header): add newlines
	for people with narrow emacs ;-). Assert client_serial was filled
	in. Assert message->name != NULL.
	(dbus_message_append_fields): have "first_field_type" arg separate
	from va list, needed for C++ binding that also uses varargs IIRC
	and helps with type safety
	(dbus_message_new): add @todo about using DBusString to store
	service/name internally
	(dbus_message_new): don't leak ->service and ->name on OOM later
	in the function
	(dbus_message_unref): free the service name
	(dbus_message_get_fields): same change to varargs
	i.e. first_field_type
	(_dbus_message_loader_return_buffer): assert that the message data
	is aligned (if not it's a bug in our code). Put in verbose griping
	about why we set corrupted = TRUE.
	(decode_header_data): add FIXME that char* is evil.  Was going to
	add FIXME about evil locale-specific string.h strncmp, but just
	switched to wacky string-as-uint32 optimization. Move check for
	"no room for field name" above get_const_data_len() to avoid
	assertion failure in get_const_data_len if we have trailing 2
	bytes or the like. Check for service and name fields being
	provided twice. Don't leak service/name on error. Require field
	names to be aligned to 4 bytes.

	* dbus/dbus-marshal.c: move byte swap stuff to header
	(_dbus_pack_int32): uscore-prefix
	(_dbus_unpack_int32): uscore-prefix
	(_dbus_unpack_uint32): export
	(_dbus_demarshal_string): add @todo complaining about use of
	memcpy()
	(_dbus_marshal_get_field_end_pos): add @todo about bad error
	handling allowing corrupt data to go unchecked
2003-01-09 01:31:35 +00:00
bus 2003-01-05 Havoc Pennington <hp@pobox.com> 2003-01-06 01:08:14 +00:00
dbus 2003-01-08 Havoc Pennington <hp@pobox.com> 2003-01-09 01:31:35 +00:00
doc 2003-01-04 Havoc Pennington <hp@pobox.com> 2003-01-04 07:28:54 +00:00
glib 2003-01-07 Anders Carlsson <andersca@codefactory.se> 2003-01-07 20:18:23 +00:00
qt very basic check for Qt integration. Another proof that Qt's build 2002-12-28 09:10:43 +00:00
test 2003-01-07 Anders Carlsson <andersca@codefactory.se> 2003-01-07 20:18:23 +00:00
.cvsignore ignore more stamp files before I switch to srcdir!=objdir 2002-12-15 13:23:37 +00:00
acinclude.m4 2002-12-27 Anders Carlsson <andersca@codefactory.se> 2002-12-27 21:32:38 +00:00
AUTHORS initial import of "dbus" skeleton 2002-11-21 16:41:33 +00:00
autogen.sh check for libtoolize before attempting to use it 2002-12-15 13:02:44 +00:00
ChangeLog 2003-01-08 Havoc Pennington <hp@pobox.com> 2003-01-09 01:31:35 +00:00
configure.in 2003-01-04 Havoc Pennington <hp@pobox.com> 2003-01-04 20:29:46 +00:00
COPYING 2002-11-21 Havoc Pennington <hp@redhat.com> 2002-11-21 19:54:29 +00:00
dbus-1.0.pc.in initial import of "dbus" skeleton 2002-11-21 16:41:33 +00:00
dbus-glib-1.0.pc.in Forgot this. 2002-12-22 19:01:06 +00:00
Doxyfile.in 2002-11-23 Havoc Pennington <hp@pobox.com> 2002-11-23 07:48:28 +00:00
HACKING 2002-12-11 Havoc Pennington <hp@pobox.com> 2002-12-12 04:26:46 +00:00
INSTALL initial import of "dbus" skeleton 2002-11-21 16:41:33 +00:00
Makefile.am very basic check for Qt integration. Another proof that Qt's build 2002-12-28 09:10:43 +00:00
Makefile.cvs 2002-11-21 Havoc Pennington <hp@redhat.com> 2002-11-21 19:03:04 +00:00
NEWS initial import of "dbus" skeleton 2002-11-21 16:41:33 +00:00
README initial import of "dbus" skeleton 2002-11-21 16:41:33 +00:00

D-BUS is a simple IPC library based on messages.