summaryrefslogtreecommitdiff
path: root/unit/test-connman.h
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-08-11 16:56:17 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2011-08-11 17:40:52 +0200
commit9d9d2dddec25496155baf2238b4ce876ff05406c (patch)
tree282010ccbf1dfcaec4638f88bb364305521d8003 /unit/test-connman.h
parent19793e54fe345ea280124b7ccb92ae523eb74096 (diff)
downloadconnman-9d9d2dddec25496155baf2238b4ce876ff05406c.tar.gz
connman-9d9d2dddec25496155baf2238b4ce876ff05406c.tar.bz2
connman-9d9d2dddec25496155baf2238b4ce876ff05406c.zip
unit: Add PropertyChanged watch for Manager
Diffstat (limited to 'unit/test-connman.h')
-rw-r--r--unit/test-connman.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/unit/test-connman.h b/unit/test-connman.h
index fb9f9578..0d9da930 100644
--- a/unit/test-connman.h
+++ b/unit/test-connman.h
@@ -27,12 +27,19 @@
struct test_session;
+struct test_manager {
+ char *state;
+};
+
struct test_fix {
gpointer user_data;
GMainLoop *main_loop;
DBusConnection *main_connection;
guint watch;
+ guint manager_watch;
+
+ struct test_manager manager;
/* session test cases */
unsigned int max_sessions;
@@ -123,6 +130,7 @@ DBusMessage *session_disconnect(DBusConnection *connection,
/* manager-api.c */
DBusMessage *manager_get_services(DBusConnection *connection);
+DBusMessage *manager_get_properties(DBusConnection *connection);
DBusMessage *manager_create_session(DBusConnection *connection,
struct test_session_info *info,
const char *notifier_path);
@@ -130,7 +138,8 @@ DBusMessage *manager_destroy_session(DBusConnection *connection,
const char *notifier_path);
DBusMessage *manager_set_session_mode(DBusConnection *connection,
connman_bool_t enable);
-
+int manager_parse_properties(DBusMessage *msg,
+ struct test_manager *manager);
/* #define DEBUG */
#ifdef DEBUG