From 29c71168cd17b11eed65023c97aff401d5305b01 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 31 Mar 2003 08:19:50 +0000 Subject: 2003-03-31 Havoc Pennington * dbus/dbus-transport-unix.c (_dbus_transport_new_for_domain_socket) (_dbus_transport_new_for_tcp_socket): these didn't need the "server" argument since they are always client side * dbus/dbus-server.c (dbus_server_get_address): new function * bus/main.c (main): take the configuration file as an argument. * test/data/valid-config-files/debug-allow-all.conf: new file to use with dispatch.c tests for example * bus/test-main.c (main): require test data dir * bus/bus.c (bus_context_new): change this to take a configuration file name as argument * doc/config-file.txt (Elements): add * bus/system.conf, bus/session.conf: new files * dbus/dbus-bus.c (dbus_bus_get): look for system bus on well-known socket if none set * configure.in: create system.conf and session.conf --- test/data/valid-config-files/debug-allow-all.conf | 12 +++++++++ test/data/valid-config-files/session.conf | 31 +++++++++++++++++++++++ test/data/valid-config-files/system.conf | 20 +++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 test/data/valid-config-files/debug-allow-all.conf create mode 100644 test/data/valid-config-files/session.conf create mode 100644 test/data/valid-config-files/system.conf (limited to 'test/data') diff --git a/test/data/valid-config-files/debug-allow-all.conf b/test/data/valid-config-files/debug-allow-all.conf new file mode 100644 index 00000000..86900ebb --- /dev/null +++ b/test/data/valid-config-files/debug-allow-all.conf @@ -0,0 +1,12 @@ + + + + + debug-pipe:name=test-server + + + + + + diff --git a/test/data/valid-config-files/session.conf b/test/data/valid-config-files/session.conf new file mode 100644 index 00000000..fe7aa5f0 --- /dev/null +++ b/test/data/valid-config-files/session.conf @@ -0,0 +1,31 @@ + + + + + + unix:path=/tmp/foobar + + + + + + + + + session-local.conf + diff --git a/test/data/valid-config-files/system.conf b/test/data/valid-config-files/system.conf new file mode 100644 index 00000000..e2c7ab7f --- /dev/null +++ b/test/data/valid-config-files/system.conf @@ -0,0 +1,20 @@ + + + + + fixme + unix:path=/var/run/dbus/system_bus_socket + + + + + + + + + system-local.conf + -- cgit