home *** CD-ROM | disk | FTP | other *** search
/ synchro.net / synchro.net.tar / synchro.net / main / BBS / ODOORS62.ZIP / ODCore.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-19  |  3.7 KB  |  110 lines

  1. /* OpenDoors Online Software Programming Toolkit
  2.  * (C) Copyright 1991 - 1999 by Brian Pirie.
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Lesser General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2 of the License, or (at your option) any later version.
  8.  *
  9.  * This library is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  * Lesser General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Lesser General Public
  15.  * License along with this library; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  17.  *
  18.  *
  19.  *        File: ODCore.h
  20.  *
  21.  * Description: Global functions and variables provide by the odcore.c
  22.  *              module. These core facilities are used throughout OpenDoors,
  23.  *              and are required regardless of what OpenDoors features that
  24.  *              a given program uses.
  25.  *
  26.  *   Revisions: Date          Ver   Who  Change
  27.  *              ---------------------------------------------------------------
  28.  *              Nov 16, 1995  6.00  BP   Created.
  29.  *              Nov 17, 1995  6.00  BP   Use new input queue mechanism.
  30.  *              Dec 24, 1995  6.00  BP   Added abtGreyBlock.
  31.  *              Dec 30, 1995  6.00  BP   Added ODCALL for calling convention.
  32.  *              Jan 01, 1996  6.00  BP   Changed TEXT_SIZE to 49.
  33.  *              Feb 19, 1996  6.00  BP   Changed version number to 6.00.
  34.  *              Mar 03, 1996  6.10  BP   Begin version 6.10.
  35.  *              Sep 01, 1996  6.10  BP   Update output area on od_set_per...().
  36.  */
  37.  
  38. #ifndef _INC_ODCORE
  39. #define _INC_ODCORE
  40.  
  41.  
  42. /* Include other header files that have definitions neede by this one. */
  43. #include "ODInQue.h"
  44. #include "ODCom.h"
  45. #include "ODPlat.h"
  46. #include "ODScrn.h"
  47.  
  48.  
  49. /* OpenDoors global initialized flag. */
  50. extern BOOL bODInitialized;
  51.  
  52. /* Global serial port object handle. */
  53. extern tPortHandle hSerialPort;
  54.  
  55. /* Global input queue object handle. */
  56. extern tODInQueueHandle hODInputQueue;
  57.  
  58. /* Reentrancy control. */
  59. extern BOOL bIsCallbackActive;
  60. extern BOOL bShellChatActive;
  61.  
  62. /* Global working space. */
  63. #define OD_GLOBAL_WORK_STRING_SIZE  257
  64. extern char szODWorkString[OD_GLOBAL_WORK_STRING_SIZE];
  65.  
  66. /* Global instance of the text information structure for general use. */
  67. extern tODScrnTextInfo ODTextInfo;
  68.  
  69. /* Logfile function hooks. */
  70. extern BOOL (*pfLogWrite)(INT);
  71. extern void (*pfLogClose)(INT);
  72.  
  73. /* od_colour_config() support for od_printf(). */
  74. extern char chColorCheck;
  75. extern char *pchColorEndPos;
  76.  
  77. /* Status line information. */
  78. extern BYTE btCurrentStatusLine;
  79. extern OD_PERSONALITY_CALLBACK *pfCurrentPersonality;
  80. extern char szDesiredPersonality[33];
  81. typedef BOOL ODCALL SET_PERSONALITY_FUNC(char *pszName);
  82. extern SET_PERSONALITY_FUNC *pfSetPersonality;
  83.  
  84. /* Commonly used character sequences. */
  85. extern char abtBlackBlock[2];
  86. extern char abtGreyBlock[2];
  87. extern char szBackspaceWithDelete[4];
  88.  
  89. /* Current output area on screen. */
  90. extern BYTE btOutputTop;
  91. extern BYTE btOutputBottom;
  92.  
  93.  
  94. /* Core functions used throughout OpenDoors. */
  95. void ODWaitDrain(tODMilliSec MaxWait);
  96. void ODStoreTextInfo(void);
  97. void ODRestoreTextInfo(void);
  98. void ODStringToName(char *pszToConvert);
  99. BOOL ODPagePrompt(BOOL *pbPausing);
  100.  
  101.  
  102. /* Number of built-in configuration file options. */
  103. #define TEXT_SIZE 49
  104.  
  105. /* Number of user-defined info file options. */
  106. #define LINES_SIZE 25
  107.  
  108.  
  109. #endif /* _INC_ODCORE */
  110.