Bug 28460 - Refactored dbus configuration access.
authorRalf Habacker <ralf.habacker@freenet.de>
Mon, 14 Jun 2010 16:27:04 +0000 (18:27 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Mon, 14 Jun 2010 16:27:04 +0000 (18:27 +0200)
commit6f9077ee870ad02119facf83d1293301b4535c3b
treed66fafdb3c68af7501efcefdf4f777ddd6eac45c
parent9280395330c833dd98d0811d31349c26a84b2f6a
Bug 28460 - Refactored dbus configuration access.

Libdbus uses several config variables. On unix these settings are read from
environment variables by using _dbus_getenv.

On other platforms like wince there are no environment variables available and
_dbus_getenv needs an emulation for those plattforms (see
dbus/dbus-sysdeps-wince-glue.c)

To cleanup this emulation the appended patch adds a config api by adding
_dbus_config_... functions.

Also having all client config related functions listed in one header file
provides a good overview about which config attributes  are available.

The default implementation retrieves the config values from environment
variables. For other os this could be easily extended or replaced by.
12 files changed:
cmake/dbus/CMakeLists.txt
dbus/Makefile.am
dbus/dbus-bus.c
dbus/dbus-config.c [new file with mode: 0644]
dbus/dbus-config.h [new file with mode: 0644]
dbus/dbus-internals.c
dbus/dbus-memory.c
dbus/dbus-sysdeps-unix.c
dbus/dbus-sysdeps-util-unix.c
dbus/dbus-sysdeps-win.c
dbus/dbus-sysdeps.c
dbus/dbus-test.c