/* * Copyright (c) 2021 joshua stein * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef __SUBTEXT_H__ #define __SUBTEXT_H__ #include "uthread.h" #include "util.h" #define PROGRAM_NAME "Subtext" #define MBAR_ID 128 #define APPLE_MENU_ID 128 #define APPLE_MENU_ABOUT_ID 1 #define FILE_MENU_ID 129 #define FILE_MENU_QUIT_ID 1 #define EDIT_MENU_ID 131 #define EDIT_MENU_CUT_ID 1 #define EDIT_MENU_COPY_ID 2 #define EDIT_MENU_PASTE_ID 3 #define BBS_MENU_ID 130 #define BBS_MENU_RELOAD_VIEWS_ID 1 #define BBS_MENU_OPEN_CONSOLE_ID 3 #define MENU_DEFAULTS_ID 128 #define STR_LAST_DB 128 #define SETTINGS_DLOG_ID 130 #define SETTINGS_BBS_NAME_ID 3 #define SETTINGS_PHONE_ID 4 #define SETTINGS_LOCATION_ID 5 #define SETTINGS_HOSTNAME_ID 6 #define SETTINGS_TELNET_PORT_ID 7 #define SETTINGS_MODEM_PORT_ID 8 #define SETTINGS_MODEM_INIT_ID 9 #define SETTINGS_MAX_IDLE_MINS_ID 10 #define BOARD_DLOG_ID 131 #define BOARD_BOARD_ID 3 #define BOARD_NAME_ID 4 #define BOARD_DESCRIPTION_ID 5 #define BOARD_RESTRICTED_POSTING_ID 6 #define BOARD_RESTRICTED_VIEWING_ID 7 #define BOARD_RETENTION_ID 8 #include "db.h" extern struct db *db; extern MenuHandle file_menu; extern struct uthread *periodic_job_thread; void blanker_unblank(void); short strcasecmp(const char *s1, const char *s2); short strncasecmp(const char *s1, const char *s2, size_t n); #endif /* __SUBTEXT_H__ */