Genericize and extend url_info
[blerg.git] / common / app.h
index d1df688..b45f472 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <yajl/yajl_gen.h>
 #include "database.h"
+#include "config.h"
 
 #define REALM "Blerg"
 
 #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;
 };