refactor(control_plane): remove business http server stack
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "cJSON.h"
|
||||
#include "esp_err.h"
|
||||
#include "esp_http_server.h"
|
||||
|
||||
bool rest_server_auth_ok(httpd_req_t *req);
|
||||
esp_err_t rest_server_send_json(httpd_req_t *req, const char *status, cJSON *root);
|
||||
esp_err_t rest_server_send_error(httpd_req_t *req, const char *status, const char *message);
|
||||
esp_err_t rest_server_read_body(httpd_req_t *req, char **out_body);
|
||||
bool rest_server_parse_uri_u32_tail(const char *uri, uint32_t *out_value);
|
||||
esp_err_t rest_server_base64_decode_alloc(const char *b64, uint8_t **out_raw, size_t *out_len);
|
||||
bool rest_server_json_bool_with_default(cJSON *item, bool default_value);
|
||||
esp_err_t rest_server_print_submit_raster_job_and_reply(httpd_req_t *req,
|
||||
const uint8_t *raw,
|
||||
size_t raw_len,
|
||||
uint16_t width,
|
||||
uint16_t height,
|
||||
const char *density,
|
||||
bool direct_ignore_precheck,
|
||||
const char *warning,
|
||||
const char *trace_id);
|
||||
|
||||
esp_err_t rest_server_health_get(httpd_req_t *req);
|
||||
esp_err_t rest_server_connect_post(httpd_req_t *req);
|
||||
esp_err_t rest_server_disconnect_post(httpd_req_t *req);
|
||||
esp_err_t rest_server_status_get(httpd_req_t *req);
|
||||
|
||||
esp_err_t rest_server_print_raster_post(httpd_req_t *req);
|
||||
esp_err_t rest_server_print_image_post(httpd_req_t *req);
|
||||
esp_err_t rest_server_print_text_post(httpd_req_t *req);
|
||||
|
||||
esp_err_t rest_server_job_get(httpd_req_t *req);
|
||||
esp_err_t rest_server_jobs_get(httpd_req_t *req);
|
||||
|
||||
esp_err_t rest_server_voice_status_get(httpd_req_t *req);
|
||||
esp_err_t rest_server_voice_session_start_post(httpd_req_t *req);
|
||||
esp_err_t rest_server_voice_session_stop_post(httpd_req_t *req);
|
||||
esp_err_t rest_server_voice_tap_start_post(httpd_req_t *req);
|
||||
esp_err_t rest_server_voice_tap_cancel_post(httpd_req_t *req);
|
||||
Reference in New Issue
Block a user