34 #ifndef __JAPI_INTERN_H__
35 #define __JAPI_INTERN_H__
37 #include <json-c/json.h>
147 japi_context *ctx, json_object *request, json_object *response);
Universal JAPI Push Services library.
void japi_request_not_found_handler(japi_context *ctx, json_object *request, json_object *response)
Default handler for reacting to unknown requests.
Definition: japi.c:656
int japi_process_message(japi_context *ctx, const char *request, char **response, int socket)
Process the JSON request.
Definition: japi.c:83
void japi_pushsrv_remove_client_from_all_pushsrv(japi_context *ctx, int socket)
Remove client from all push services.
Definition: japi_pushsrv.c:137
JAPI context struct.
Definition: japi.h:52
JAPI push service context.
Definition: japi_pushsrv.h:60
int japi_remove_client(japi_context *ctx, int socket)
Remove client.
Definition: japi.c:404
int japi_pushsrv_remove_client(japi_pushsrv_context *psc, int socket)
Remove client from push service.
Definition: japi_pushsrv.c:86
int japi_add_client(japi_context *ctx, int socket)
Add client.
Definition: japi.c:368
void japi_cmd_list(japi_context *ctx, json_object *request, json_object *response)
Provide the names of all registered commands as a JAPI response.
Definition: japi.c:630
int japi_remove_all_clients(japi_context *ctx)
Remove all clients.
Definition: japi.c:463