summaryrefslogtreecommitdiff
path: root/src/up-daemon.h
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2011-04-20 00:43:59 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2011-04-26 11:50:36 +0200
commiteddcf0ef3d0b8445618e368328d7e110a83b69b3 (patch)
tree937533db5a23c50d32b8b6d46d2f493557ed310a /src/up-daemon.h
parentf65aa4dbf2721a660300d14fc3a582d3be3c3072 (diff)
downloadupower-eddcf0ef3d0b8445618e368328d7e110a83b69b3.tar.gz
Add option to run daemon on the session bus for testing
Add a daemon option --test which will run upowerd on the session bus. This allows us to run tests without interfering with the system instance. This also avoids any root privileges entirely, which permits running integration tests as part of a package build.
Diffstat (limited to 'src/up-daemon.h')
-rw-r--r--src/up-daemon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/up-daemon.h b/src/up-daemon.h
index 99fb9da..09252b2 100644
--- a/src/up-daemon.h
+++ b/src/up-daemon.h
@@ -67,6 +67,8 @@ GQuark up_daemon_error_quark (void);
GType up_daemon_get_type (void);
UpDaemon *up_daemon_new (void);
void up_daemon_test (gpointer user_data);
+DBusBusType up_daemon_get_bus_type (void);
+void up_daemon_set_bus_type (DBusBusType type);
/* private */
guint up_daemon_get_number_devices_of_type (UpDaemon *daemon,