Now also parse new diffs
[handlerosm.git] / handler_osm_user.c
blob1a66904c871ecacaa5ad4312a9c1854242d96eef
1 #include <cherokee/common-internal.h>
2 #include <cherokee/cherokee.h>
3 #include "handler_osm_user.h"
4 #include "handler_osm_sql.h"
6 void user_preferences(cherokee_buffer_t *buf)
8 cherokee_buffer_t content = CHEROKEE_BUF_INIT;
9 cherokee_buffer_add_str (buf, XML(PREFERENCES, " "));
10 if (content.len > 0) {
11 cherokee_buffer_add_str (buf, XMLCONTINUE);
12 cherokee_buffer_add_buffer (buf, &content);
13 cherokee_buffer_mrproper (&content);
14 cherokee_buffer_add_str (buf, XMLCLOSE(PREFERENCES, " "));
15 } else
16 cherokee_buffer_add_str (buf, XMLCLOSESHORT);
18 printf("%s\n", __func__);