home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / server / ddx / ibm / AIX / OSio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-16  |  2.2 KB  |  69 lines

  1. /*
  2.  * $XConsortium: OSio.h,v 1.2 91/07/16 12:56:49 jap Exp $
  3.  *
  4.  * Copyright IBM Corporation 1987,1988,1989,1990,1991
  5.  *
  6.  * All Rights Reserved
  7.  *
  8.  * License to use, copy, modify, and distribute this software and its
  9.  * documentation for any purpose and without fee is hereby granted,
  10.  * provided that the above copyright notice appear in all copies and that
  11.  * both that copyright notice and this permission notice appear in
  12.  * supporting documentation, and that the name of IBM not be
  13.  * used in advertising or publicity pertaining to distribution of the
  14.  * software without specific, written prior permission.
  15.  *
  16.  * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  17.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS, AND 
  18.  * NONINFRINGEMENT OF THIRD PARTY RIGHTS, IN NO EVENT SHALL
  19.  * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23.  * SOFTWARE.
  24.  *
  25. */
  26.  
  27. #ifndef OSIO_H
  28. #define OSIO_H
  29.  
  30. #define    CURRENT_X()    (AIXCurrentX)
  31. #define    CURRENT_Y()    (AIXCurrentY)
  32.  
  33. extern    int    AIXDefaultDisplay;
  34. extern    int    AIXCurrentX;
  35. extern    int    AIXCurrentY;
  36. extern    void    AIXBlockHandler();
  37. extern    void    AIXWakeupHandler();
  38. extern    void    AIXInitEventHandlers();
  39. extern    int    AIXProcessArgument();
  40. extern    void    hftTermQueue();
  41. extern    void    NoopDDA() ;
  42.  
  43. #define    setCursorPosition(x,y)    { AIXCurrentX= (x); AIXCurrentY= (y); }
  44.  
  45. #define    OS_BlockHandler            AIXBlockHandler
  46. #define    OS_WakeupHandler        AIXWakeupHandler
  47. #define    OS_MouseProc            AIXMouseProc
  48. #define    OS_KeybdProc            AIXKeybdProc
  49.  
  50. #define OS_CapsLockFeedback(dir)    NoopDDA()
  51.  
  52. #define    OS_PreScreenInit()        AIXMachineDependentInit()
  53. #define    OS_PostScreenInit()        NoopDDA()
  54. #define    OS_ScreenStateChange(e)        NoopDDA()
  55.  
  56. #define OS_AddAndRegisterOtherDevices()    NoopDDA()
  57. #define    OS_GetDefaultScreens()        AIXGetDefaultScreens()
  58.  
  59. #define    OS_InitInput()            AIXInitEventHandlers()
  60. #define    OS_SaveState()            NoopDDA()
  61. #define    OS_RestoreState()        NoopDDA()
  62.  
  63. #define    OS_GiveUp()            hftTermQueue()
  64. #define    OS_Abort()            hftTermQueue()
  65.  
  66. #define    OS_ProcessArgument        AIXProcessArgument
  67.  
  68. #endif /* OSIO_H */
  69.