AFBClient: trace dispatch_internal(), header hygiene
[staging/windowmanager.git] / AFBClient.h
index a31479c..c6da6f7 100644 (file)
@@ -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