aboutsummaryrefslogtreecommitdiffstats
path: root/binding/network-common.h
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-08-10 13:38:20 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-08-10 16:46:30 -0700
commit43d8cb57bce35be9c3bd316752d3cc63162af83a (patch)
tree1914b5782c4030d2bdf2fa897b49a7c74c1e53df /binding/network-common.h
parent17aba888bb7650a7ecc07e568ca85243311a6f02 (diff)
binding: network: upgrade to AFB v3 framework
Upgrade the binding to use v3 datatypes, and function parameters. Bug-AGL: SPEC-1660 Change-Id: I50b88b8d87a7176917bfa639bc8cffc0bc2bed89 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/network-common.h')
-rw-r--r--binding/network-common.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/binding/network-common.h b/binding/network-common.h
index 83c2e0f..b95350f 100644
--- a/binding/network-common.h
+++ b/binding/network-common.h
@@ -28,7 +28,7 @@
#include <json-c/json.h>
-#define AFB_BINDING_VERSION 2
+#define AFB_BINDING_VERSION 3
#include <afb/afb-binding.h>
struct call_work;
@@ -39,13 +39,13 @@ struct network_state {
guint manager_sub;
guint technology_sub;
guint service_sub;
- struct afb_event global_state_event;
- struct afb_event technologies_event;
- struct afb_event technology_properties_event;
- struct afb_event services_event;
- struct afb_event service_properties_event;
- struct afb_event counter_event;
- struct afb_event agent_event;
+ afb_event_t global_state_event;
+ afb_event_t technologies_event;
+ afb_event_t technology_properties_event;
+ afb_event_t services_event;
+ afb_event_t service_properties_event;
+ afb_event_t counter_event;
+ afb_event_t agent_event;
int ping_counter;
/* NOTE: single connection allowed for now */
@@ -71,7 +71,7 @@ struct call_work {
gchar *method;
gchar *connman_method;
struct connman_pending_work *cpw;
- struct afb_req request;
+ afb_req_t request;
gchar *agent_method;
GDBusMethodInvocation *invocation;
};