Added enum for callback return codes

This commit is contained in:
Sergey Lyubka committed 2014-01-22 18:25:05 +00:00
1 parent ad89868564
commit 0377eea9c5
1 file changed
+4 -1
+4 -1
View File
@@ -101,7 +101,10 @@ char *mg_md5(char buf[33], ...);
int mg_authorize_digest(struct mg_connection *c, FILE *fp);
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 {
MG_CONNECT_SUCCESS, MG_CONNECT_FAILURE,
MG_DOWNLOAD_SUCCESS, MG_DOWNLOAD_FAILURE