chiark / gitweb /
split out dcgi_get_cookie
[disorder] / server / dcgi.h
index 6f832f186e6f277b16cb11fe90accca4e15517f1..09e74da4e8aaebc7a625afc15b73de6e68caf3da 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of DisOrder.
- * Copyright (C) 2004, 2005 Richard Kettlewell
+ * Copyright (C) 2004, 2005, 2007, 2008 Richard Kettlewell
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -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 */