summaryrefslogtreecommitdiff
path: root/include/agent.h
diff options
context:
space:
mode:
authorZhang zhengguang <zhengguang.zhang@intel.com>2014-07-17 02:37:39 (GMT)
committerZhang zhengguang <zhengguang.zhang@intel.com>2014-07-17 02:37:39 (GMT)
commit1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7 (patch)
tree6e991827d28537f7f40f20786c2354fd04a9fdad /include/agent.h
parentfbe905ab58ecc31fe64c410c5f580cadc30e7f04 (diff)
downloadconnman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.zip
connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.gz
connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.bz2
Imported Upstream version 1.24upstream/1.24
Diffstat (limited to 'include/agent.h')
-rw-r--r--include/agent.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/agent.h b/include/agent.h
index a084194..05462df 100644
--- a/include/agent.h
+++ b/include/agent.h
@@ -2,7 +2,7 @@
*
* Connection Manager
*
- * Copyright (C) 2012 Intel Corporation. All rights reserved.
+ * Copyright (C) 2012-2013 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -22,6 +22,8 @@
#ifndef __CONNMAN_AGENT_H
#define __CONNMAN_AGENT_H
+#include <stdbool.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -48,11 +50,12 @@ int connman_agent_driver_register(struct connman_agent_driver *driver);
void connman_agent_driver_unregister(struct connman_agent_driver *driver);
typedef void (* report_error_cb_t) (void *user_context,
- gboolean retry, void *user_data);
+ bool retry, void *user_data);
int connman_agent_report_error(void *user_context, const char *path,
const char *error,
- report_error_cb_t callback, void *user_data);
+ report_error_cb_t callback,
+ const char *dbus_sender, void *user_data);
int connman_agent_register(const char *sender, const char *path);
int connman_agent_unregister(const char *sender, const char *path);
@@ -62,9 +65,11 @@ typedef void (*agent_queue_cb)(DBusMessage *reply, void *user_data);
int connman_agent_queue_message(void *user_context,
DBusMessage *msg, int timeout,
- agent_queue_cb callback, void *user_data);
+ agent_queue_cb callback, void *user_data,
+ void *agent_data);
-void connman_agent_get_info(const char **sender, const char **path);
+void *connman_agent_get_info(const char *dbus_sender, const char **sender,
+ const char **path);
#ifdef __cplusplus
}