Citadel Client: move into its own directory
[citadel.git] / textclient / src / include / rooms.h
1 /*
2  * Copyright (c) 1987-2012 by the citadel.org team
3  *
4  *  This program is open source software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License version 3.
6  *
7  *  This program is distributed in the hope that it will be useful,
8  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  *  GNU General Public License for more details.
11  */
12
13 void listzrooms(CtdlIPC *ipc);
14 void readinfo(CtdlIPC *ipc);
15 void forget(CtdlIPC *ipc);
16 void entroom(CtdlIPC *ipc);
17 void killroom(CtdlIPC *ipc);
18 void invite(CtdlIPC *ipc);
19 void kickout(CtdlIPC *ipc);
20 void editthisroom(CtdlIPC *ipc);
21 void roomdir(CtdlIPC *ipc);
22 void download(CtdlIPC *ipc, int proto);
23 void ungoto(CtdlIPC *ipc);
24 void dotungoto(CtdlIPC *ipc, char *towhere);
25 void whoknows(CtdlIPC *ipc);
26 void enterinfo(CtdlIPC *ipc);
27 void knrooms(CtdlIPC *ipc, int kn_floor_mode);
28 void dotknown(CtdlIPC *ipc, int what, char *match);
29 void load_floorlist(CtdlIPC *ipc);
30 void create_floor(CtdlIPC *ipc);
31 void edit_floor(CtdlIPC *ipc);
32 void kill_floor(CtdlIPC *ipc);
33 void enter_bio(CtdlIPC *ipc);
34 int save_buffer(void *file, size_t filelen, const char *pathname);
35 void destination_directory(char *dest, const char *supplied_filename);
36 void do_edit(CtdlIPC *ipc,
37                 char *desc, char *read_cmd, char *check_cmd, char *write_cmd);
38
39
40
41 /* 
42  * This struct holds a list of rooms for client display.
43  * (oooh, a tree!)
44  */
45 struct ctdlroomlisting {
46         struct ctdlroomlisting *lnext;
47         struct ctdlroomlisting *rnext;
48         char rlname[ROOMNAMELEN];
49         unsigned rlflags;
50         int rlfloor;
51         int rlorder;
52         };
53
54
55 enum {
56         LISTRMS_NEW_ONLY,
57         LISTRMS_OLD_ONLY,
58         LISTRMS_ALL
59 };
60
61