Improve includes
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 5 May 2017 10:59:09 +0000 (12:59 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 5 May 2017 10:59:09 +0000 (12:59 +0200)
Change-Id: I87278ce38270782e74bd29a7920fe6a6e63eea0d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
include/afb/afb-binding.h
src/afb-xreq.h
src/main.c

index 6d92cb8..c78a79d 100644 (file)
@@ -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"
index 498aed5..fc3e225 100644 (file)
 
 #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);
index 3518241..d605f2b 100644 (file)
@@ -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>