chiark / gitweb /
New scripts/setup which interactively sets up a DisOrder configuration
[disorder] / server / dcgi.h
index 2846001..ac110d8 100644 (file)
@@ -30,10 +30,15 @@ typedef struct dcgi_global {
 #define DC_VOLUME 0x0008
 #define DC_DIRS 0x0010
 #define DC_FILES 0x0020
+#define DC_NEW 0x0040
+#define DC_RIGHTS 0x0080
   struct queue_entry *queue, *playing, *recent;
   int volume_left, volume_right;
   char **files, **dirs;
   int nfiles, ndirs;
+  char **new;
+  int nnew;
+  rights_type rights;
 } dcgi_global;
 
 typedef struct dcgi_state {
@@ -54,6 +59,9 @@ typedef struct dcgi_state {
 void disorder_cgi(cgi_sink *output, dcgi_state *ds);
 void disorder_cgi_error(cgi_sink *output, dcgi_state *ds,
                        const char *msg);
+void disorder_cgi_login(dcgi_state *ds, cgi_sink *output);
+
+extern char *login_cookie;
 
 #endif /* DCGI_H */
 
@@ -63,4 +71,3 @@ c-basic-offset:2
 comment-column:40
 End:
 */
-/* arch-tag:a555827f0549ee9a35303c2d0f9dabc5 */