/full stuff
[handlerosm.git] / handler_osm_user.c
blobdd9fc38c99ae4c165b0d0f2a42512a814e20c36d
1 #include <cherokee/cherokee.h>
2 #include "handler_osm_user.h"
3 #include "handler_osm_sql.h"
5 void user_preferences(cherokee_buffer_t *buf)
7 cherokee_buffer_t content = CHEROKEE_BUF_INIT;
8 cherokee_buffer_add_str (buf, XML(PREFERENCES, " "));
9 if (content.len > 0) {
10 cherokee_buffer_add_str (buf, XMLCONTINUE);
11 cherokee_buffer_add_buffer (buf, &content);
12 cherokee_buffer_mrproper (&content);
13 cherokee_buffer_add_str (buf, XMLCLOSE(PREFERENCES, " "));
14 } else
15 cherokee_buffer_add_str (buf, XMLCLOSESHORT);
17 printf("%s\n", __func__);