Release notes for 1.9.1
[blerg.git] / common / app.h
index d1df688..8156274 100644 (file)
@@ -6,23 +6,25 @@
 
 #include <yajl/yajl_gen.h>
 #include "database.h"
+#include "config.h"
 
 #define REALM "Blerg"
 
 #define CONTENT_401 "<html><head><title>401 Unauthorized</title></head><body><h1>401 Unauthorized</h1>DENIED</body></html>"
+#define CONTENT_403 "<html><head><title>403 Forbidden</title></head><body><h1>403 Forbidden</h1>Go away.</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 URL_INFO_AUTHOR    0x1
+#define URL_INFO_NAME      0x1
 #define URL_INFO_RECORD    0x2
 #define URL_INFO_RECORD_TO 0x4
 #define DERP "DERP DERP DERP"
 
 struct url_info {
        unsigned int contents;
-       char author[33];
+       char name[MAX_TAG_LENGTH + 1];
        uint64_t record;
        uint64_t record_to;
 };