Renamed stbbr_for -> stbbr_for_id

This commit is contained in:
James Booth
2015-06-01 22:02:18 +01:00
parent 66077b0194
commit ddb837cdcd
6 changed files with 10 additions and 10 deletions

View File

@@ -125,7 +125,7 @@ int connection_cb(void* cls, struct MHD_Connection* conn, const char* url, const
case STBBR_OP_FOR:
id = MHD_lookup_connection_value(conn, MHD_GET_ARGUMENT_KIND, "id");
if (id) {
prime_for(id, con_info->body->str);
prime_for_id(id, con_info->body->str);
return send_response(conn, NULL, MHD_HTTP_OK);
} else {
return send_response(conn, NULL, MHD_HTTP_BAD_REQUEST);

View File

@@ -61,7 +61,7 @@ prime_get_passwd(void)
}
void
prime_for(const char *id, char *stream)
prime_for_id(const char *id, char *stream)
{
if (idstubs) {
g_hash_table_insert(idstubs, strdup(id), strdup(stream));

View File

@@ -29,7 +29,7 @@ void prime_free_all(void);
void prime_required_passwd(char *password);
char* prime_get_passwd(void);
int prime_for(const char *id, char *stream);
int prime_for_id(const char *id, char *stream);
char* prime_get_for(const char *id);
#endif