diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/afb-api-dbus.c | 4 | ||||
-rw-r--r-- | src/afb-api-so.c | 6 | ||||
-rw-r--r-- | src/afb-apis.c | 2 | ||||
-rw-r--r-- | src/afb-hreq.c | 3 | ||||
-rw-r--r-- | src/afb-hsrv.c | 2 | ||||
-rw-r--r-- | src/afb-hswitch.c | 2 | ||||
-rw-r--r-- | src/afb-ws-json1.c | 2 | ||||
-rw-r--r-- | src/main.c | 2 |
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" @@ -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" |