X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/460b9539a7c15580e41a71bbc0f47ae776238915..02eaa49dd0cc62690c72e28f456326a249325f31:/server/dcgi.h diff --git a/server/dcgi.h b/server/dcgi.h index 2846001..09e74da 100644 --- a/server/dcgi.h +++ b/server/dcgi.h @@ -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 */ @@ -63,4 +71,3 @@ c-basic-offset:2 comment-column:40 End: */ -/* arch-tag:a555827f0549ee9a35303c2d0f9dabc5 */