Changed API: function mg_modify_passwords_file(). Instead of passing context, a domain name is passed, thus making this function completely mongoose-agnostic.

This commit is contained in:
valenok committed 2011-02-18 16:40:58 +00:00
1 parent 27ccf416c1
commit 29716fa22e
3 files changed
+7 -25

No files matched your search

+4 -2
View File
@@ -138,8 +138,10 @@ const char **mg_get_valid_option_names(void);
//
// Return:
// 1 on success, 0 on error.
int mg_modify_passwords_file(struct mg_context *ctx,
const char *passwords_file_name, const char *user, const char *password);
int mg_modify_passwords_file(const char *passwords_file_name,
const char *domain,
const char *user,
const char *password);
// Send data to the client.
int mg_write(struct mg_connection *, const void *buf, size_t len);