home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xibm.zip / apa16 / apa16Info.c < prev    next >
C/C++ Source or Header  |  1991-12-30  |  3KB  |  74 lines

  1. /***********************************************************
  2.         Copyright IBM Corporation 1987,1988
  3.  
  4.                       All Rights Reserved
  5.  
  6. Permission to use, copy, modify, and distribute this software and its
  7. documentation for any purpose and without fee is hereby granted,
  8. provided that the above copyright notice appear in all copies and that
  9. both that copyright notice and this permission notice appear in
  10. supporting documentation, and that the name of IBM not be
  11. used in advertising or publicity pertaining to distribution of the
  12. software without specific, written prior permission.
  13.  
  14. IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  15. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  16. IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  17. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  18. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  19. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  20. SOFTWARE.
  21.  
  22. ******************************************************************/
  23.  
  24. #ifndef lint
  25. static char *rcsid = "$Header: /afs/athena.mit.edu/astaff/project/x11r5/src/athena/ibm/apa16/RCS/apa16Info.c,v 5.0 1991/12/30 19:27:05 jfc Exp $";
  26. #endif
  27.  
  28. #include "X.h"
  29. #include "misc.h"
  30. #include "miscstruct.h"
  31. #include "scrnintstr.h"
  32. #include "cursorstr.h"
  33.  
  34. #include "ibmScreen.h"
  35.  
  36. extern    Bool    apa16ScreenInit();
  37. extern    Bool    apa16Probe();
  38. extern    void    apa16RemoveCursor();
  39. extern    void    apa16ShowCursor();
  40. #ifdef AIXrt
  41. extern    void    apa16SaveState();
  42. extern    void    apa16RestoreState();
  43. #else
  44. extern    void    apa16SaveScreen();
  45. extern    void    apa16RestoreScreen();
  46. #endif
  47.  
  48. ibmPerScreenInfo apa16ScreenInfoStruct = {
  49.     { 0, 0, 1023, 767 },    /* BoxRec      ibm_ScreenBounds */
  50.     0,            /* int         ibm_NumFormats ; */
  51.     (PixmapFormatRec *) 0,    /* PixmapFormatRec    *ibm_ScreenFormats ; */
  52.     apa16ScreenInit,    /* Bool        (*ibm_InitFunc)() ; */
  53.     apa16Probe,        /* int        (*ibm_ProbeFunc)() ; */
  54.     apa16RemoveCursor,    /* void        (*ibm_HideCursor)() ; */
  55.     "-apa16",        /* char         *ibm_ScreenFlag ; */
  56.     "/dev/apa16",        /* char         *ibm_ScreenDevice ; */
  57.     "/dev/msapa16",        /* char         *ibm_ScreenPointer ; */
  58. #ifdef AIXrt
  59.     apa16SaveState,        /* void        (*ibm_SaveFunc)() ; */
  60.     apa16RestoreState,    /* void    (*ibm_RestoreFunc)() ; */
  61. #else
  62.     0,
  63.     0,
  64. #endif
  65.     (ScreenPtr) 0,        /* ScreenPtr      ibm_Screen */
  66.     -1,            /* int          ibm_ScreenFD */
  67.     0,            /* int          ibm_Wanted */
  68.     0,            /* short      ibm_CursorHotX */
  69.     0,            /* short      ibm_CursorHotY */
  70.     apa16ShowCursor,    /* void        (*ibm_CursorShow)() */
  71.     (CursorPtr) 0,        /* CursorPtr      ibm_CurrentCursor */
  72.     SCREEN_UNINITIALIZED    /* int          ibm_ScreenState */
  73. } ;
  74.