diff options
Diffstat (limited to 'src/rest.h')
-rw-r--r-- | src/rest.h | 31 |
1 files changed, 2 insertions, 29 deletions
@@ -3,6 +3,7 @@ #include <ev.h> #include <sys/time.h> +#include <netinet/in.h> extern struct ev_loop *og_loop; @@ -39,7 +40,6 @@ enum og_cmd_type { OG_CMD_IMAGE_RESTORE, OG_CMD_IMAGE_RESTRICT, OG_CMD_SETUP, - OG_CMD_RUN_SCHEDULE, OG_CMD_IMAGES, OG_CMD_CACHE_DELETE, OG_CMD_CACHE_FETCH, @@ -70,7 +70,6 @@ struct og_client { enum og_cmd_type last_cmd; unsigned int last_cmd_id; enum og_cmd_result last_cmd_result; - bool autorun; uint32_t speed; uint32_t seq; struct { @@ -132,12 +131,6 @@ enum og_rest_uri { OG_URI_CACHE_DELETE, OG_URI_CACHE_FETCH, OG_URI_PART_SETUP, - OG_URI_RUN_SCHEDULE, - OG_URI_TASK_RUN, - OG_URI_SCHEDULE_CREATE, - OG_URI_SCHEDULE_DELETE, - OG_URI_SCHEDULE_UPDATE, - OG_URI_SCHEDULE_GET, OG_URI_OGLIVE_LIST, OG_URI_OGLIVE_SET, OG_URI_CENTER_ADD, @@ -148,12 +141,6 @@ enum og_rest_uri { OG_URI_ROOM_UPDATE, OG_URI_ROOM_DELETE, OG_URI_ROOM_INFO, - OG_URI_PROC_ADD, - OG_URI_PROC_UPDATE, - OG_URI_PROC_RUN, - OG_URI_SCHEDULE_RUN, - OG_URI_PROC_DEL, - OG_URI_TASK_ADD, OG_URI_SERVER, OG_URI_STATS, OG_URI_FOLDER_ADD, @@ -173,20 +160,6 @@ int og_send_request(enum og_rest_method method, enum og_cmd_type type, const struct og_msg_params *params, const json_t *data); -struct og_cmd { - uint32_t id; - struct list_head list; - uint32_t client_id; - const char *ip; - const char *mac; - enum og_cmd_type type; - enum og_rest_method method; - struct og_msg_params params; - json_t *json; - struct timeval tv; -}; - -const struct og_cmd *og_cmd_find(const char *client_ip); -void og_cmd_free(const struct og_cmd *cmd); +int og_dbi_scope_get(struct og_dbi *dbi, json_t *array); #endif |