diff options
author | Havoc Pennington <hp@redhat.com> | 2003-03-25 04:37:08 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-03-25 04:37:08 +0000 |
commit | ce4fd314c6be9bfee16a172d5ca34e5097d309fc (patch) | |
tree | 744b8524f183a0fbb009d917029c9a129b34da9e /bus/policy.c | |
parent | 44fff656885ac32e319feb98fd0d06680d602977 (diff) | |
download | dbus-ce4fd314c6be9bfee16a172d5ca34e5097d309fc.tar.gz |
2003-03-24 Havoc Pennington <hp@redhat.com>
* dbus/dbus-sysdeps.c (_dbus_set_fd_nonblocking): move to this
file
* dbus/dbus-errors.c (dbus_set_error, dbus_set_error_const): allow
NULL argument for "message" if the error is a well-known one,
fill in a generic message in this case.
* dbus/dbus-errors.h (DBusResultCode): Kill DBusResultCode in
favor of DBusError
* bus/test.c (bus_test_flush_bus): add
* bus/policy.c (bus_policy_test): test code stub
Diffstat (limited to 'bus/policy.c')
-rw-r--r-- | bus/policy.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bus/policy.c b/bus/policy.c index 75013c85..b5187715 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -23,6 +23,7 @@ #include "policy.h" #include "services.h" +#include "test.h" #include <dbus/dbus-list.h> #include <dbus/dbus-internals.h> @@ -421,3 +422,18 @@ bus_policy_check_can_own (BusPolicy *policy, return allowed; } + +#ifdef DBUS_BUILD_TESTS + +dbus_bool_t +bus_policy_test (const DBusString *test_data_dir) +{ + /* This doesn't do anything for now because I decided to do it in + * dispatch.c instead by having some of the clients in dispatch.c + * have particular policies applied to them. + */ + + return TRUE; +} + +#endif /* DBUS_BUILD_TESTS */ |