diff options
Diffstat (limited to 'AFBClient.h')
-rw-r--r-- | AFBClient.h | 14 |
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 |