Frontpage and style tweaks
[blerg.git] / common / app.h
index 98b8521..d1df688 100644 (file)
@@ -1,3 +1,6 @@
+/* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a
+ * BSD-style license.  Please see the COPYING file for details.
+ */
 #ifndef _APP_H
 #define _APP_H
 
@@ -9,8 +12,8 @@
 #define CONTENT_401 "<html><head><title>401 Unauthorized</title></head><body><h1>401 Unauthorized</h1>DENIED</body></html>"
 #define CONTENT_404 "<html><head><title>404 Not Found</title></head><body><h1>404 Not Found</h1>I couldn't find that.</body></html>"
 #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>"
-#define JSON_SUCCESS "{status: \"success\"}"
-#define JSON_FAILURE "{status: \"failure\"}"
+#define JSON_SUCCESS "{\"status\": \"success\"}"
+#define JSON_FAILURE "{\"status\": \"failure\"}"
 
 #define URL_INFO_AUTHOR    0x1
 #define URL_INFO_RECORD    0x2
@@ -26,6 +29,5 @@ struct url_info {
 
 int parse_url_info(const char *url, struct url_info *info);
 uint64_t *make_sequential_list(uint64_t from, uint64_t to);
-void json_generate_one_record(yajl_gen g, const char *author, struct blerg *b, uint64_t record);
 
 #endif /* _APP_H */