First cut at cookie support in the web interface
[disorder] / server / dcgi.h
index 2846001..0cf5a89 100644 (file)
@@ -30,10 +30,13 @@ typedef struct dcgi_global {
 #define DC_VOLUME 0x0008
 #define DC_DIRS 0x0010
 #define DC_FILES 0x0020
+#define DC_NEW 0x0040
   struct queue_entry *queue, *playing, *recent;
   int volume_left, volume_right;
   char **files, **dirs;
   int nfiles, ndirs;
+  char **new;
+  int nnew;
 } dcgi_global;
 
 typedef struct dcgi_state {
@@ -55,6 +58,8 @@ void disorder_cgi(cgi_sink *output, dcgi_state *ds);
 void disorder_cgi_error(cgi_sink *output, dcgi_state *ds,
                        const char *msg);
 
+extern char *login_cookie;
+
 #endif /* DCGI_H */
 
 /*
@@ -63,4 +68,3 @@ c-basic-offset:2
 comment-column:40
 End:
 */
-/* arch-tag:a555827f0549ee9a35303c2d0f9dabc5 */