21 #ifndef MONGOOSE_HEADER_INCLUDED 22 #define MONGOOSE_HEADER_INCLUDED 77 typedef void * (*mg_callback_t)(
enum mg_event event,
103 const char **options);
142 const char *passwords_file_name,
const char *user,
const char *password);
185 int mg_get_var(
const char *data,
size_t data_len,
186 const char *var_name,
char *buf,
size_t buf_len);
200 const char *cookie_name,
char *buf,
size_t buf_len);
213 void mg_md5(
char *buf, ...);
218 #endif // __cplusplus 220 #endif // MONGOOSE_HEADER_INCLUDED
int mg_get_cookie(const struct mg_connection *, const char *cookie_name, char *buf, size_t buf_len)
int mg_modify_passwords_file(struct mg_context *ctx, const char *passwords_file_name, const char *user, const char *password)
struct mg_request_info::mg_header http_headers[64]
void *(* mg_callback_t)(enum mg_event event, struct mg_connection *conn, const struct mg_request_info *request_info)
int mg_write(struct mg_connection *, const void *buf, size_t len)
void mg_md5(char *buf,...)
const char * mg_get_option(const struct mg_context *ctx, const char *name)
int mg_get_var(const char *data, size_t data_len, const char *var_name, char *buf, size_t buf_len)
void mg_stop(struct mg_context *)
int mg_read(struct mg_connection *, void *buf, size_t len)
struct mg_context * mg_start(mg_callback_t callback, void *user_data, const char **options)
const char ** mg_get_valid_option_names(void)
const char * mg_version(void)
int mg_printf(struct mg_connection *, const char *fmt,...)
const char * mg_get_header(const struct mg_connection *, const char *name)