aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/afm-main-plugin/utils-jbus.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-03 17:05:36 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-04 11:55:38 +0200
commit3d705a894b13759904b0601f8cdef1f2c226d8cc (patch)
tree0db4d06afe4db4877c4268209ef5857e162cc2f4 /plugins/afm-main-plugin/utils-jbus.h
parent5dd6480727cc1ecb12483fc4d971d73176505748 (diff)
Removing legacy dbus-1 library
Change-Id: I1c1d17cd702e12ed961ed90d1489bc12b074bd55 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'plugins/afm-main-plugin/utils-jbus.h')
-rw-r--r--plugins/afm-main-plugin/utils-jbus.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/plugins/afm-main-plugin/utils-jbus.h b/plugins/afm-main-plugin/utils-jbus.h
index d85b8aff..ff4c8fab 100644
--- a/plugins/afm-main-plugin/utils-jbus.h
+++ b/plugins/afm-main-plugin/utils-jbus.h
@@ -18,10 +18,12 @@
#pragma once
-struct sbusmsg;
+struct sd_bus;
+
+struct sd_bus_message;
struct jbus;
-extern struct jbus *create_jbus(struct sbus *sbus, const char *path);
+extern struct jbus *create_jbus(struct sd_bus *sdbus, const char *path);
extern void jbus_addref(struct jbus *jbus);
extern void jbus_unref(struct jbus *jbus);
@@ -89,31 +91,31 @@ extern int jbus_on_signal_j(
/* verbs for servers */
extern int jbus_reply_s(
- struct sbusmsg *smsg,
+ struct sd_bus_message *smsg,
const char *reply);
extern int jbus_reply_j(
- struct sbusmsg *smsg,
+ struct sd_bus_message *smsg,
struct json_object *reply);
extern int jbus_reply_error_s(
- struct sbusmsg *smsg,
+ struct sd_bus_message *smsg,
const char *reply);
extern int jbus_reply_error_j(
- struct sbusmsg *smsg,
+ struct sd_bus_message *smsg,
struct json_object *reply);
extern int jbus_add_service_s(
struct jbus *jbus,
const char *method,
- void (*oncall) (struct sbusmsg *, const char *, void *),
+ void (*oncall) (struct sd_bus_message *, const char *, void *),
void *data);
extern int jbus_add_service_j(
struct jbus *jbus,
const char *method,
- void (*oncall) (struct sbusmsg *, struct json_object *, void *),
+ void (*oncall) (struct sd_bus_message *, struct json_object *, void *),
void *data);
extern int jbus_start_serving(