1 /* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a
2 * BSD-style license. Please see the COPYING file for details.
7 #include <yajl/yajl_gen.h>
12 #define CONTENT_401 "<html><head><title>401 Unauthorized</title></head><body><h1>401 Unauthorized</h1>DENIED</body></html>"
13 #define CONTENT_404 "<html><head><title>404 Not Found</title></head><body><h1>404 Not Found</h1>I couldn't find that.</body></html>"
14 #define CONTENT_405 "<html><head><title>405 Method Not Allowed</title></head><body><h1>405 Method Not Allowed</h1>I'm sorry, Dave. I'm afraid I can't do that.</body></html>"
15 #define JSON_SUCCESS "{\"status\": \"success\"}"
16 #define JSON_FAILURE "{\"status\": \"failure\"}"
18 #define URL_INFO_AUTHOR 0x1
19 #define URL_INFO_RECORD 0x2
20 #define URL_INFO_RECORD_TO 0x4
21 #define DERP "DERP DERP DERP"
24 unsigned int contents;
30 int parse_url_info(const char *url, struct url_info *info);
31 uint64_t *make_sequential_list(uint64_t from, uint64_t to);