chiark / gitweb /
redirect()
[disorder] / server / lookup.h
CommitLineData
448d3570
RK
1/*
2 * This file is part of DisOrder.
3 * Copyright (C) 2008 Richard Kettlewell
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 * USA
19 */
20/** @file server/lookup.h
21 * @brief Server lookup code for CGI
22 */
23
24#ifndef LOOKUP_H
25#define LOOKUP_H
26
27extern disorder_client *client;
28
29#define DC_QUEUE 0x0001
30#define DC_PLAYING 0x0002
31#define DC_RECENT 0x0004
32#define DC_VOLUME 0x0008
33#define DC_DIRS 0x0010
34#define DC_FILES 0x0020
35#define DC_NEW 0x0040
36#define DC_RIGHTS 0x0080
37#define DC_ENABLED 0x0100
38#define DC_RANDOM_ENABLED 0x0200
39
40extern struct queue_entry *queue;
41extern struct queue_entry *playing;
42extern struct queue_entry *recent;
43
44extern int volume_left;
45extern int volume_right;
46
47extern char **files;
48extern int nfiles;
49
50extern char **dirs;
51extern int ndirs;
52
53extern char **new;
54extern int nnew;
55
56extern rights_type rights;
57
58extern int enabled;
59extern int random_enabled;
60
61#endif /* LOOKUP_H */
62
63/*
64Local Variables:
65c-basic-offset:2
66comment-column:40
67fill-column:79
68indent-tabs-mode:nil
69End:
70*/