Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
minor
[src/app-framework-binder.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
b0261a4
..
f81bfef
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-30,9
+30,9
@@
#include "afb-plugin.h"
#include "local-def.h"
#include "afb-plugin.h"
#include "local-def.h"
-#include "afb-apis.h"
+#include "afb-hswitch.h"
+#include "afb-api-so.h"
#include "afb-hsrv.h"
#include "afb-hsrv.h"
-#include "afb-hreq.h"
#include "session.h"
#include "verbose.h"
#include "utils-upoll.h"
#include "session.h"
#include "verbose.h"
#include "utils-upoll.h"
@@
-513,9
+513,9
@@
int main(int argc, char *argv[]) {
}
if (session->config->ldpaths)
}
if (session->config->ldpaths)
- afb_api
s
_add_pathset(session->config->ldpaths);
+ afb_api
_so
_add_pathset(session->config->ldpaths);
- ctxStoreInit(CTX_NBCLIENTS, session->config->cntxTimeout,
afb_apis_count(),
session->config->token);
+ ctxStoreInit(CTX_NBCLIENTS, session->config->cntxTimeout, session->config->token);
install_error_handlers();
install_error_handlers();
@@
-569,10
+569,10
@@
static int init(struct afb_hsrv *hsrv, AFB_config * config)
{
int idx;
{
int idx;
- if (!afb_hsrv_add_handler(hsrv, config->rootapi, afb_h
req
_websocket_switch, NULL, 20))
+ if (!afb_hsrv_add_handler(hsrv, config->rootapi, afb_h
switch
_websocket_switch, NULL, 20))
return 0;
return 0;
- if (!afb_hsrv_add_handler(hsrv, config->rootapi, afb_h
req_rest_api
, NULL, 10))
+ if (!afb_hsrv_add_handler(hsrv, config->rootapi, afb_h
switch_apis
, NULL, 10))
return 0;
for (idx = 0; config->aliasdir[idx].url != NULL; idx++)
return 0;
for (idx = 0; config->aliasdir[idx].url != NULL; idx++)
@@
-582,7
+582,7
@@
static int init(struct afb_hsrv *hsrv, AFB_config * config)
if (!afb_hsrv_add_alias(hsrv, "", config->rootdir, -10))
return 0;
if (!afb_hsrv_add_alias(hsrv, "", config->rootdir, -10))
return 0;
- if (!afb_hsrv_add_handler(hsrv, config->rootbase, afb_h
req
_one_page_api_redirect, NULL, -20))
+ if (!afb_hsrv_add_handler(hsrv, config->rootbase, afb_h
switch
_one_page_api_redirect, NULL, -20))
return 0;
return 1;
return 0;
return 1;