aboutsummaryrefslogtreecommitdiffstats
path: root/AFBClient.h
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-01 12:55:56 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-14 14:04:51 +0200
commit31768957cd3e7ce3152db910b487ff73b73fffc4 (patch)
treeb22c9038d058b69d28919e6a7d1884624dbd8b2a /AFBClient.h
parentb8ec6408f237065d6f87a23bcfe6c20ac56528bf (diff)
AFBClient: trace dispatch_internal(), header hygiene
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'AFBClient.h')
-rw-r--r--AFBClient.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/AFBClient.h b/AFBClient.h
index a31479c..c6da6f7 100644
--- a/AFBClient.h
+++ b/AFBClient.h
@@ -1,16 +1,13 @@
#ifndef AFBCLIENT_H
#define AFBCLIENT_H
-#include <systemd/sd-event.h>
-
#include <functional>
extern "C"
{
-#include <json-c/json.h>
-
-#include "afb-wsj1.h"
-#include "afb-ws-client.h"
+ struct json_object;
+ struct afb_wsj1;
+ struct sd_event;
}
class AFBClient
@@ -46,13 +43,10 @@ public:
std::function<void(char const *label)> f);
private:
- /// object will be json_object_put
int call(const char *verb, json_object *object,
std::function<void(bool ok, json_object*)> onReply);
struct afb_wsj1 *wsj1;
- struct afb_wsj1_itf itf;
-
- sd_event *loop;
+ struct sd_event *loop;
};
#endif // AFBCLIENT_H