Skip to content
Snippets Groups Projects
Commit 0377eea9 authored by Sergey Lyubka's avatar Sergey Lyubka
Browse files

Added enum for callback return codes

parent ad898685
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,10 @@ char *mg_md5(char buf[33], ...); ...@@ -101,7 +101,10 @@ char *mg_md5(char buf[33], ...);
int mg_authorize_digest(struct mg_connection *c, FILE *fp); int mg_authorize_digest(struct mg_connection *c, FILE *fp);
void mg_send_digest_auth_request(struct mg_connection *conn); void mg_send_digest_auth_request(struct mg_connection *conn);
// HTTP client interface // Callback return codes
enum { MG_REPLY_TO_BE_CONTINUED, MG_REPLY_COMPLETED };
// HTTP client events
enum { enum {
MG_CONNECT_SUCCESS, MG_CONNECT_FAILURE, MG_CONNECT_SUCCESS, MG_CONNECT_FAILURE,
MG_DOWNLOAD_SUCCESS, MG_DOWNLOAD_FAILURE MG_DOWNLOAD_SUCCESS, MG_DOWNLOAD_FAILURE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment