aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-05-05 12:59:09 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-05-05 12:59:09 +0200
commitd5296ff2254d084f290e112bc1bee1a3b0453eab (patch)
tree9282192389be91db26b10638d38ab2d135a2a008
parent0609e7481a2c2ab475ebd3cba60ce88eb53ddd20 (diff)
Improve includes
Change-Id: I87278ce38270782e74bd29a7920fe6a6e63eea0d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--include/afb/afb-binding.h2
-rw-r--r--src/afb-xreq.h7
-rw-r--r--src/main.c1
3 files changed, 5 insertions, 5 deletions
diff --git a/include/afb/afb-binding.h b/include/afb/afb-binding.h
index 6d92cb8c..c78a79d4 100644
--- a/include/afb/afb-binding.h
+++ b/include/afb/afb-binding.h
@@ -51,8 +51,8 @@
#include "afb-session.h"
#include "afb-auth.h"
-#include "afb-event-itf.h"
#include "afb-req-itf.h"
+#include "afb-event-itf.h"
#include "afb-service-itf.h"
#include "afb-daemon-itf.h"
#include "afb-binding-v1.h"
diff --git a/src/afb-xreq.h b/src/afb-xreq.h
index 498aed5c..fc3e2253 100644
--- a/src/afb-xreq.h
+++ b/src/afb-xreq.h
@@ -17,17 +17,16 @@
#pragma once
-
-#define AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO
-#include <afb/afb-binding.h>
#include "afb-context.h"
-#include "afb-evt.h"
struct json_object;
struct afb_evt_listener;
struct afb_xreq;
struct afb_cred;
struct afb_apiset;
+struct afb_event;
+struct afb_verb_desc_v1;
+struct afb_verb_v2;
struct afb_xreq_query_itf {
struct json_object *(*json)(struct afb_xreq *xreq);
diff --git a/src/main.c b/src/main.c
index 35182413..d605f2b0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -20,6 +20,7 @@
#define AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO
#include <stdlib.h>
+#include <stdio.h>
#include <stdint.h>
#include <signal.h>
#include <string.h>