home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xibm.zip / mpel / mpelInfo.c < prev    next >
C/C++ Source or Header  |  1989-11-09  |  4KB  |  89 lines

  1. /*
  2.  * Copyright IBM Corporation 1987,1988,1989
  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.         Copyright IBM Corporation 1987,1988
  25.  
  26.                       All Rights Reserved
  27.  
  28. Permission to use, copy, modify, and distribute this software and its
  29. documentation for any purpose and without fee is hereby granted,
  30. provided that the above copyright notice appear in all copies and that
  31. both that copyright notice and this permission notice appear in
  32. supporting documentation, and that the name of IBM not be
  33. used in advertising or publicity pertaining to distribution of the
  34. software without specific, written prior permission.
  35.  
  36. IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  37. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  38. IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  39. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  40. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  41. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  42. SOFTWARE.
  43.  
  44. ******************************************************************/
  45.  
  46. #ifndef lint
  47. static char *rcsid = "$Header: /andrew/X11/r3src/release/server/ddx/ibm/mpel/RCS/mpelInfo.c,v 1.4 89/04/29 21:34:37 jeff Exp $" ;
  48. #endif
  49.  
  50. #include "X.h"
  51. #include "misc.h"
  52. #include "miscstruct.h"
  53. #include "scrnintstr.h"
  54. #include "cursorstr.h"
  55.  
  56. #include "ibmScreen.h"
  57.  
  58. #include "mpel.h"
  59.  
  60. extern Bool mpelScreenInit() ;
  61. extern Bool mpelProbe() ;
  62. extern void mpelRemoveCursor() ;
  63. extern void mpelShowCursor() ;
  64. extern PixmapFormatRec mpelFormats[1] ;
  65. extern void  mpelSaveState() ;
  66. extern void  mpelRestoreState() ; 
  67.  
  68. ibmPerScreenInfo mpelScreenInfoStruct = {
  69.     { 0, 0, MPEL_WIDTH, MPEL_HEIGHT }, /* BoxRec      ibm_ScreenBounds */
  70.     1,            /* int         ibm_NumFormats ; */
  71.     mpelFormats,        /* PixmapFormatRec    *ibm_ScreenFormats ; */
  72.     mpelScreenInit,        /* Bool        (*ibm_InitFunc)() ; */
  73.     mpelProbe,        /* int        (*ibm_ProbeFunc)() ; */
  74.     mpelRemoveCursor,    /* void        (*ibm_HideCursor)() ; */
  75.     "-mpel",        /* char         *ibm_ScreenFlag ; */
  76.     "/dev/mpel",        /* char         *ibm_ScreenDevice ; */
  77.     "/dev/msmpel",        /* char         *ibm_ScreenPointer ; */
  78.     mpelSaveState,        /* void        (*ibm_SaveFunc)() ; */
  79.     mpelRestoreState,    /* void        (*ibm_RestoreFunc)() ; */
  80.     (ScreenPtr) 0,        /* ScreenPtr      ibm_Screen */
  81.     -1,            /* int          ibm_ScreenFD */
  82.     0,            /* int          ibm_Wanted */
  83.     0,            /* short      ibm_CursorHotX */
  84.     0,            /* short      ibm_CursorHotY */
  85.     mpelShowCursor,        /* void        (*ibm_CursorShow)() */
  86.     (CursorPtr) 0,        /* CursorPtr      ibm_CurrentCursor */
  87.     SCREEN_UNINITIALIZED    /* int          ibm_ScreenState */
  88. } ;
  89.