AmendHub

Download

jcs

/

subtext

/

subtext.h

 

(View History)

jcs   main: Move periodic jobs and binkp polling to one thread here Latest amendment: 422 on 2023-03-15

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_VIEWS_ID 1
40 #define BBS_MENU_EDIT_MENUS_ID 2
41 #define BBS_MENU_OPEN_CONSOLE_ID 4
42
43 #define VIEWS_SUBMENU_ID 132
44 #define VIEWS_SUBMENU_ISSUE_ID 1
45 #define VIEWS_SUBMENU_MAIN_MENU_ID 2
46 #define VIEWS_SUBMENU_SHORT_MENU_ID 3
47 #define VIEWS_SUBMENU_SIGNUP_ID 4
48 #define VIEWS_SUBMENU_PAGE_SYSOP_ID 5
49 #define VIEWS_SUBMENU_NO_FREE_NODES_ID 6
50 #define VIEWS_SUBMENU_SIGNOFF_ID 7
51
52 #define MENU_DEFAULTS_ID 128
53
54 #define STR_LAST_DB 128
55
56 #define SETTINGS_DLOG_ID 130
57 #define SETTINGS_BBS_NAME_ID 3
58 #define SETTINGS_PHONE_ID 4
59 #define SETTINGS_LOCATION_ID 5
60 #define SETTINGS_HOSTNAME_ID 6
61 #define SETTINGS_TELNET_PORT_ID 7
62 #define SETTINGS_MODEM_PORT_ID 8
63 #define SETTINGS_MODEM_INIT_ID 9
64 #define SETTINGS_MAX_IDLE_MINS_ID 10
65
66 #define BOARD_DLOG_ID 131
67 #define BOARD_BOARD_ID 3
68 #define BOARD_NAME_ID 4
69 #define BOARD_DESCRIPTION_ID 5
70 #define BOARD_RESTRICTED_POSTING_ID 6
71 #define BOARD_RESTRICTED_VIEWING_ID 7
72 #define BOARD_RETENTION_ID 8
73
74 #include "db.h"
75
76 extern struct db *db;
77 extern MenuHandle file_menu;
78 extern struct uthread *periodic_job_thread;
79
80 void blanker_unblank(void);
81
82 short strcasecmp(const char *s1, const char *s2);
83 short strncasecmp(const char *s1, const char *s2, size_t n);
84
85 #endif /* __SUBTEXT_H__ */