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
/
mpelIO.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-02-11
|
4KB
|
126 lines
/*
* Copyright IBM Corporation 1987,1988,1989
*
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notice appear in all copies and that
* both that copyright notice and this permission notice appear in
* supporting documentation, and that the name of IBM not be
* used in advertising or publicity pertaining to distribution of the
* software without specific, written prior permission.
*
* IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
* IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
* ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*
*/
/***********************************************************
Copyright IBM Corporation 1987,1988
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of IBM not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
/* $Header: /afs/athena.mit.edu/astaff/project/x11r5/src/athena/ibm/mpel/RCS/mpelIO.c,v 5.1 1992/02/12 00:35:45 jfc Exp $ */
/* $Source: /afs/athena.mit.edu/astaff/project/x11r5/src/athena/ibm/mpel/RCS/mpelIO.c,v $ */
#ifndef lint
static char *rcsid = "$Id: mpelIO.c,v 5.1 1992/02/12 00:35:45 jfc Exp $";
#endif
#include "X.h"
#include "Xproto.h"
#include "scrnintstr.h"
#include "cursorstr.h"
#include "pixmapstr.h"
#include "miscstruct.h"
#include "colormapst.h"
#include "windowstr.h"
#include "resource.h"
#include "font.h"
#include "OScompiler.h"
#include "OScursor.h"
#include "ibmScreen.h"
#include "ibmTrace.h"
/* Global Variable */
extern ScreenRec mpelScreenRec;
int mpelFontPrivateIndex;
#if defined(AIXrt) && !defined(__HIGHC__)
extern void mpelDataInit();
#endif
/***==================================================================***/
/*ARGSUSED*/
Bool
mpelScreenInit( index, pScreen, argc, argv )
register const int index;
register ScreenPtr const pScreen;
register int const argc; /* these two may NOT be changed */
register char * const * const argv;
{
static int been_here = 0;
TRACE( ( "mpelScreenInit(index=%d,pScreen=0x%x,argc=%d,argv=0x%x)\n",
index, pScreen, argc, argv ) );
if (!been_here) {
if (ibmScreenFD(index) == -1) {
ErrorF( "mpel file descriptor is invalid\nExiting.\n" );
exit(1);
/*NOTREACHED*/
}
mpelLoaduCode();
#if defined(AIXrt) && !defined(__HIGHC__)
mpelDataInit();
#endif
been_here = TRUE;
}
ppcCommonScreenInit(pScreen, index, &mpelScreenRec);
mpelCursorInit(index);
mpelInitPlaneMask();
mpelFontPrivateIndex = AllocateFontPrivateIndex();
return 1;
}
/***==================================================================***/
/*ARGSUSED*/
Bool
mpelScreenClose( index, pScreen )
register int index;
register ScreenPtr pScreen;
{
TRACE( ( "mpelScreenClose(index=%d,pScreen=0x%x)\n", index, pScreen ) );
return TRUE;
}