summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
28a3f9d)
Change-Id: I0e41a0db778c69b5f5ce71115d495b2bb8b4cffe
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
21 files changed:
ADD_DEFINITIONS(-DPLUGIN_INSTALL_DIR="${plugin_install_dir}")
ADD_SUBDIRECTORY(src)
ADD_DEFINITIONS(-DPLUGIN_INSTALL_DIR="${plugin_install_dir}")
ADD_SUBDIRECTORY(src)
+ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(plugins)
ADD_SUBDIRECTORY(plugins)
--- /dev/null
+INSTALL(DIRECTORY afb DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
-#include "afb-req-itf.h"
-#include "afb-evmgr-itf.h"
+#include <afb/afb-req-itf.h>
+#include <afb/afb-evmgr-itf.h>
/* Plugin Type */
enum AFB_pluginE
/* Plugin Type */
enum AFB_pluginE
#include <assert.h>
#include <json-c/json.h>
#include <assert.h>
#include <json-c/json.h>
+#include <afb/afb-plugin.h>
#include "audio-pulse.h"
#endif
#include "audio-pulse.h"
#endif
-#include "afb-plugin.h"
-#include "afb-req-itf.h"
+#include <afb/afb-plugin.h>
+#include <afb/afb-req-itf.h>
/* ------ BACKEND FUNCTIONS ------- */
/* ------ BACKEND FUNCTIONS ------- */
#include "media-api.h"
#include "media-rygel.h"
#include "media-api.h"
#include "media-rygel.h"
-#include "afb-plugin.h"
-#include "afb-req-itf.h"
+#include <afb/afb-plugin.h>
+#include <afb/afb-req-itf.h>
json_object* _rygel_list (mediaCtxHandleT *);
json_object* _rygel_list (mediaCtxHandleT *);
#include "radio-api.h"
#include "radio-rtlsdr.h"
#include "radio-api.h"
#include "radio-rtlsdr.h"
-#include "afb-plugin.h"
-#include "afb-req-itf.h"
+#include <afb/afb-plugin.h>
+#include <afb/afb-req-itf.h>
/* ********************************************************
/* ********************************************************
#include <stdio.h>
#include <json-c/json.h>
#include <stdio.h>
#include <json-c/json.h>
+#include <afb/afb-plugin.h>
#include <string.h>
#include <json-c/json.h>
#include <string.h>
#include <json-c/json.h>
+#include <afb/afb-plugin.h>
const struct AFB_interface *interface;
const struct AFB_interface *interface;
#include <string.h>
#include <json-c/json.h>
#include <string.h>
#include <json-c/json.h>
+#include <afb/afb-plugin.h>
// Sample Generic Ping Debug API
// Sample Generic Ping Debug API
#include <stdio.h>
#include <json-c/json.h>
#include <stdio.h>
#include <json-c/json.h>
+#include <afb/afb-plugin.h>
// Dummy sample of Client Application Context
typedef struct {
// Dummy sample of Client Application Context
typedef struct {
#include <systemd/sd-bus.h>
#include <json-c/json.h>
#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 <sys/types.h>
#include <sys/stat.h>
#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"
#include "session.h"
#include "afb-common.h"
#include "verbose.h"
#include "afb-apis.h"
#include "afb-context.h"
#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;
struct api_desc {
struct afb_api api;
#endif
#include "afb-method.h"
#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"
#include "afb-msg-json.h"
#include "afb-context.h"
#include "afb-hreq.h"
int afb_hreq_redirect_to(struct afb_hreq *hreq, const char *url)
{
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);
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);
#include "afb-context.h"
#include "afb-hreq.h"
#include "afb-hsrv.h"
#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"
#include "verbose.h"
#include "afb-common.h"
-#include "afb-req-itf.h"
+#include <afb/afb-req-itf.h>
#include "afb-context.h"
#include "afb-hreq.h"
#include "afb-apis.h"
#include "afb-context.h"
#include "afb-hreq.h"
#include "afb-apis.h"
#include "afb-ws-json1.h"
#include "afb-msg-json.h"
#include "session.h"
#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"
#include "afb-apis.h"
#include "afb-context.h"
#include "verbose.h"
#include "afb-common.h"
#include "verbose.h"
#include "afb-common.h"
+#include <afb/afb-plugin.h>
#if !defined(PLUGIN_INSTALL_DIR)
#error "you should define PLUGIN_INSTALL_DIR"
#if !defined(PLUGIN_INSTALL_DIR)
#error "you should define PLUGIN_INSTALL_DIR"