Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
AFBClient: trace dispatch_internal(), header hygiene
[staging/windowmanager.git]
/
AFBClient.h
diff --git
a/AFBClient.h
b/AFBClient.h
index
a31479c
..
c6da6f7
100644
(file)
--- a/
AFBClient.h
+++ b/
AFBClient.h
@@
-1,16
+1,13
@@
#ifndef AFBCLIENT_H
#define AFBCLIENT_H
#ifndef AFBCLIENT_H
#define AFBCLIENT_H
-#include <systemd/sd-event.h>
-
#include <functional>
extern "C"
{
#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
}
class AFBClient
@@
-46,13
+43,10
@@
public:
std::function<void(char const *label)> f);
private:
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;
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
};
#endif // AFBCLIENT_H