mirror of
https://github.com/simon987/sist2.git
synced 2025-12-13 23:39:04 +00:00
SQLite search backend
This commit is contained in:
@@ -14,10 +14,9 @@ database_t *web_get_database(const char *index_id);
|
||||
|
||||
__always_inline
|
||||
static char *web_address_to_string(struct mg_addr *addr) {
|
||||
return "TODO";
|
||||
// static char address_to_string_buf[INET6_ADDRSTRLEN];
|
||||
//
|
||||
// return mg_ntoa(addr, address_to_string_buf, sizeof(address_to_string_buf));
|
||||
static char address_to_string_buf[INET6_ADDRSTRLEN];
|
||||
|
||||
return mg_ntoa(addr, address_to_string_buf, sizeof(address_to_string_buf));
|
||||
}
|
||||
|
||||
void web_send_headers(struct mg_connection *nc, int status_code, size_t length, char *extra_headers);
|
||||
@@ -29,4 +28,8 @@ void web_serve_asset_favicon_ico(struct mg_connection *nc);
|
||||
void web_serve_asset_style_css(struct mg_connection *nc);
|
||||
void web_serve_asset_chunk_vendors_css(struct mg_connection *nc);
|
||||
|
||||
cJSON *web_get_json_body(struct mg_http_message *hm);
|
||||
char *web_get_string_body(struct mg_http_message *hm);
|
||||
void mg_send_json(struct mg_connection *nc, const cJSON *json);
|
||||
|
||||
#endif //SIST2_WEB_UTIL_H
|
||||
|
||||
Reference in New Issue
Block a user