summaryrefslogtreecommitdiffstats
path: root/plugins/afm-main-plugin/utils-sbus.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-sbus.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-sbus.h')
-rw-r--r--plugins/afm-main-plugin/utils-sbus.h98
1 files changed, 0 insertions, 98 deletions
diff --git a/plugins/afm-main-plugin/utils-sbus.h b/plugins/afm-main-plugin/utils-sbus.h
deleted file mode 100644
index 8a9dfc59..00000000
--- a/plugins/afm-main-plugin/utils-sbus.h
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- Copyright 2015 IoT.bzh
-
- author: José Bollo <jose.bollo@iot.bzh>
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
-
-#pragma once
-
-struct sbus;
-struct sbusmsg;
-struct sbus_signal;
-struct sbus_service;
-
-struct sbus_itf
-{
- int (*wait)(int timeout, void *itfclo);
- void *(*open)(int fd, void *closure, void *itfclo);
- int (*on_readable)(void *hndl, void (*callback)(void *closure));
- int (*on_writable)(void *hndl, void (*callback)(void *closure));
- void (*on_hangup)(void *hndl, void (*callback)(void *closure));
- void (*close)(void *hndl);
-};
-
-extern struct sbus *sbus_session(const struct sbus_itf *itf, void *itfclo);
-extern struct sbus *sbus_system(const struct sbus_itf *itf, void *itfclo);
-
-extern void sbus_addref(struct sbus *sbus);
-extern void sbus_unref(struct sbus *sbus);
-
-extern int sbus_send_signal(struct sbus *sbus, const char *sender, const char *path, const char *iface, const char *name, const char *content);
-
-extern int sbus_call(
- struct sbus *sbus,
- const char *destination,
- const char *path,
- const char *iface,
- const char *method,
- const char *query,
- void (*onresp) (int, const char *, void *),
- void *closure);
-
-extern char *sbus_call_sync(
- struct sbus *sbus,
- const char *destination,
- const char *path,
- const char *iface,
- const char *method,
- const char *query);
-
-extern struct sbus_signal *sbus_add_signal(
- struct sbus *sbus,
- const char *sender,
- const char *path,
- const char *iface,
- const char *name,
- void (*onsignal) (const struct sbusmsg *, const char *, void *),
- void *closure);
-
-extern int sbus_remove_signal(struct sbus *sbus, struct sbus_signal *signal);
-
-extern int sbus_add_name(struct sbus *sbus, const char *name);
-
-extern struct sbus_service *sbus_add_service(
- struct sbus *sbus,
- const char *destination,
- const char *path,
- const char *iface,
- const char *member,
- void (*oncall) (struct sbusmsg *, const char *, void *),
- void *closure);
-
-extern int sbus_remove_service(struct sbus *sbus, struct sbus_service *service);
-
-extern const char *sbus_sender(const struct sbusmsg *smsg);
-
-extern const char *sbus_destination(const struct sbusmsg *smsg);
-
-extern const char *sbus_path(const struct sbusmsg *smsg);
-
-extern const char *sbus_interface(const struct sbusmsg *smsg);
-
-extern const char *sbus_member(const struct sbusmsg *smsg);
-
-extern int sbus_reply_error(struct sbusmsg *smsg, const char *error);
-extern int sbus_reply(struct sbusmsg *smsg, const char *reply);
-