summaryrefslogtreecommitdiff
path: root/bus/policy.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-03-25 04:37:08 +0000
committerHavoc Pennington <hp@redhat.com>2003-03-25 04:37:08 +0000
commitce4fd314c6be9bfee16a172d5ca34e5097d309fc (patch)
tree744b8524f183a0fbb009d917029c9a129b34da9e /bus/policy.c
parent44fff656885ac32e319feb98fd0d06680d602977 (diff)
downloaddbus-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.c16
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 */