aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-17 15:12:11 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-17 15:29:46 +0200
commit06382af9092babedbf56aa1c00b3bd7cb0b86cda (patch)
tree294a43ae20190d90f6871545408a1be0902e7cc4 /src
parent28a3f9d5c0b92c7dd3a3844e73b83aa350d5e165 (diff)
provides developper files
Change-Id: I0e41a0db778c69b5f5ce71115d495b2bb8b4cffe Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r--src/afb-api-dbus.c4
-rw-r--r--src/afb-api-so.c6
-rw-r--r--src/afb-apis.c2
-rw-r--r--src/afb-hreq.c3
-rw-r--r--src/afb-hsrv.c2
-rw-r--r--src/afb-hswitch.c2
-rw-r--r--src/afb-ws-json1.c2
-rw-r--r--src/main.c2
8 files changed, 12 insertions, 11 deletions
diff --git a/src/afb-api-dbus.c b/src/afb-api-dbus.c
index 3a882a56..52d449f0 100644
--- a/src/afb-api-dbus.c
+++ b/src/afb-api-dbus.c
@@ -25,8 +25,8 @@
#include <systemd/sd-bus.h>
#include <json-c/json.h>
-#include "afb-plugin.h"
-#include "afb-req-itf.h"
+#include <afb/afb-plugin.h>
+#include <afb/afb-req-itf.h>
#include "afb-common.h"
diff --git a/src/afb-api-so.c b/src/afb-api-so.c
index 6ac5070f..72599e5b 100644
--- a/src/afb-api-so.c
+++ b/src/afb-api-so.c
@@ -27,9 +27,9 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include "afb-plugin.h"
-#include "afb-req-itf.h"
-#include "afb-evmgr-itf.h"
+#include <afb/afb-plugin.h>
+#include <afb/afb-req-itf.h>
+#include <afb/afb-evmgr-itf.h>
#include "session.h"
#include "afb-common.h"
diff --git a/src/afb-apis.c b/src/afb-apis.c
index 834850f2..5ebc96ff 100644
--- a/src/afb-apis.c
+++ b/src/afb-apis.c
@@ -26,7 +26,7 @@
#include "verbose.h"
#include "afb-apis.h"
#include "afb-context.h"
-#include "afb-req-itf.h"
+#include <afb/afb-req-itf.h>
struct api_desc {
struct afb_api api;
diff --git a/src/afb-hreq.c b/src/afb-hreq.c
index 0f2f0ffb..a1c750b4 100644
--- a/src/afb-hreq.c
+++ b/src/afb-hreq.c
@@ -33,7 +33,7 @@
#endif
#include "afb-method.h"
-#include "afb-req-itf.h"
+#include <afb/afb-req-itf.h>
#include "afb-msg-json.h"
#include "afb-context.h"
#include "afb-hreq.h"
@@ -471,6 +471,7 @@ int afb_hreq_reply_file(struct afb_hreq *hreq, int dirfd, const char *filename)
int afb_hreq_redirect_to(struct afb_hreq *hreq, const char *url)
{
+ /* TODO: append the query part! */
afb_hreq_reply_static(hreq, MHD_HTTP_MOVED_PERMANENTLY, 0, NULL,
MHD_HTTP_HEADER_LOCATION, url, NULL);
DEBUG("redirect from [%s] to [%s]", hreq->url, url);
diff --git a/src/afb-hsrv.c b/src/afb-hsrv.c
index 743315cb..46e61a01 100644
--- a/src/afb-hsrv.c
+++ b/src/afb-hsrv.c
@@ -33,7 +33,7 @@
#include "afb-context.h"
#include "afb-hreq.h"
#include "afb-hsrv.h"
-#include "afb-req-itf.h"
+#include <afb/afb-req-itf.h>
#include "verbose.h"
#include "afb-common.h"
diff --git a/src/afb-hswitch.c b/src/afb-hswitch.c
index bdded7fb..8dee80b3 100644
--- a/src/afb-hswitch.c
+++ b/src/afb-hswitch.c
@@ -23,7 +23,7 @@
#include <microhttpd.h>
-#include "afb-req-itf.h"
+#include <afb/afb-req-itf.h>
#include "afb-context.h"
#include "afb-hreq.h"
#include "afb-apis.h"
diff --git a/src/afb-ws-json1.c b/src/afb-ws-json1.c
index fe7514d9..85dc0259 100644
--- a/src/afb-ws-json1.c
+++ b/src/afb-ws-json1.c
@@ -29,7 +29,7 @@
#include "afb-ws-json1.h"
#include "afb-msg-json.h"
#include "session.h"
-#include "afb-req-itf.h"
+#include <afb/afb-req-itf.h>
#include "afb-apis.h"
#include "afb-context.h"
diff --git a/src/main.c b/src/main.c
index fdea9079..dbfbac5d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -41,7 +41,7 @@
#include "verbose.h"
#include "afb-common.h"
-#include "afb-plugin.h"
+#include <afb/afb-plugin.h>
#if !defined(PLUGIN_INSTALL_DIR)
#error "you should define PLUGIN_INSTALL_DIR"