home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / OP2DEV.ZIP / BBSEXPAN.H < prev    next >
C/C++ Source or Header  |  1991-03-04  |  2KB  |  76 lines

  1. ////////////////////////////////////////////////////////////////////////////
  2. //
  3. //   Omega Point/2 Bulletin Board System
  4. //   Copyright (c) ExcelSoft Software, 1990
  5. //   Version 1.0, cab, 21-Feb-90
  6. //   
  7. //   This file may be freely modified for you own use.
  8. //
  9. //   Data and structures needed to write expansion programs for the
  10. //   OP/2 BBS system under OS/2. 
  11. // 
  12. //   Any module that makes use the IO routines will need to include
  13. //   this file. If you have the OS/2 Toolkit, include include the file
  14. //   OS2.H before this one. 
  15. // 
  16. //   See EXPAND.C and EXPAND.MAK for sample code and make file.
  17. //
  18. //////////////////////////////////////////////////////////////////////////
  19.  
  20. #ifndef _BBSEXPAN_H
  21. #define _BBSEXPAN_H
  22.  
  23. //
  24. //  These typedefs and defines will be used if the file OS2.H hasn't
  25. //  been included. This will allow you to write extension programs 
  26. //  without having the OS/2 Toolkit. (note that Microsoft C 6.0
  27. //  comes with all the needed OS/2 include files)
  28. //  
  29.  
  30. #ifndef OS2_INCLUDED
  31.    #define PASCAL        pascal
  32.    #define FAR           far
  33.    #define NEAR          near
  34.    #define VOID          void
  35.    typedef unsigned short USHORT;
  36.    typedef unsigned long  ULONG;
  37.    typedef unsigned char  BYTE;
  38.    typedef void (pascal far *PFNEXITLIST)(USHORT);
  39. #endif
  40.  
  41. //
  42. //  Make variables extenal except to one module
  43. //
  44. #ifndef MAINMODULE                       // check if this is THE main module
  45.   #define BBSEXTERN extern
  46. #else
  47.   #define BBSEXTERN
  48. #endif
  49.  
  50. //
  51. //  Include these files unless otherwise specified
  52. //
  53. #ifndef NO_INCL_BBS
  54.    #ifndef EXPAN
  55.       #define EXPAN
  56.    #endif
  57.    #include "os2bbs.h"
  58.    #include "bbsapi.h"
  59. #endif
  60.  
  61. BBSEXTERN PORT_REC        *anchor,       // pointer to start of control segment
  62.                           *unhand;       // pointer to control segment for calling user
  63. BBSEXTERN int             usernum,       // user number of calling user
  64.                           instance;      // instance of OP/2 BBS running
  65. BBSEXTERN void far        *semhand;      // system semaphore to signal program end
  66.  
  67. //  
  68. //  Prototypes
  69. //
  70. int    SerWritef(PORT_REC *, char *, ...);
  71. int    UseChildAppInit(char *, char *, PORT_REC **, PORT_REC **, void far **, int *, int *);
  72. PFNEXITLIST  CleanExit(USHORT);
  73.  
  74. #endif
  75.  
  76.