AmendHub

Download

jcs

/

subtext

/

subtext.h

 

(View History)

jcs   *: Move views out of database to flat files Latest amendment: 566 on 2023-11-28

1 /*
2 * Copyright (c) 2021 joshua stein <jcs@jcs.org>
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17 #ifndef __SUBTEXT_H__
18 #define __SUBTEXT_H__
19
20 #include "uthread.h"
21 #include "util.h"
22
23 #define PROGRAM_NAME "Subtext"
24
25 #define MBAR_ID 128
26
27 #define APPLE_MENU_ID 128
28 #define APPLE_MENU_ABOUT_ID 1
29
30 #define FILE_MENU_ID 129
31 #define FILE_MENU_QUIT_ID 1
32
33 #define EDIT_MENU_ID 131
34 #define EDIT_MENU_CUT_ID 1
35 #define EDIT_MENU_COPY_ID 2
36 #define EDIT_MENU_PASTE_ID 3
37
38 #define BBS_MENU_ID 130
39 #define BBS_MENU_RELOAD_VIEWS_ID 1
40 #define BBS_MENU_OPEN_CONSOLE_ID 3
41
42 #define MENU_DEFAULTS_ID 128
43
44 #define STR_LAST_DB 128
45
46 #define SETTINGS_DLOG_ID 130
47 #define SETTINGS_BBS_NAME_ID 3
48 #define SETTINGS_PHONE_ID 4
49 #define SETTINGS_LOCATION_ID 5
50 #define SETTINGS_HOSTNAME_ID 6
51 #define SETTINGS_TELNET_PORT_ID 7
52 #define SETTINGS_MODEM_PORT_ID 8
53 #define SETTINGS_MODEM_INIT_ID 9
54 #define SETTINGS_MAX_IDLE_MINS_ID 10
55
56 #define BOARD_DLOG_ID 131
57 #define BOARD_BOARD_ID 3
58 #define BOARD_NAME_ID 4
59 #define BOARD_DESCRIPTION_ID 5
60 #define BOARD_RESTRICTED_POSTING_ID 6
61 #define BOARD_RESTRICTED_VIEWING_ID 7
62 #define BOARD_RETENTION_ID 8
63
64 #include "db.h"
65
66 extern struct db *db;
67 extern MenuHandle file_menu;
68 extern struct uthread *periodic_job_thread;
69
70 void blanker_unblank(void);
71
72 short strcasecmp(const char *s1, const char *s2);
73 short strncasecmp(const char *s1, const char *s2, size_t n);
74
75 #endif /* __SUBTEXT_H__ */