-} AFB_config;
-
-
-
-typedef struct {
- int len; // command number within application
- json_object *jtype;
-} AFB_privateApi;
-
-
-typedef struct {
- char *msg;
- size_t len;
-} AFB_redirect_msg;
-
-// API definition
-typedef struct {
- char *name;
- AFB_apiCB callback;
- char *info;
- AFB_privateApi *private;
-} AFB_restapi;
-
-
-// User Client Session Context
-typedef struct {
- int cid; // index 0 if global
- char uuid[37]; // long term authentication of remote client
- char token[37]; // short term authentication of remote client
- time_t timeStamp; // last time token was refresh
- int restfull; // client does not use cookie
- void *handle; // application specific context
- AFB_apiCB freeHandleCB; // callback to free application handle [null for standard free]
-} AFB_clientCtx;
-