DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

AllocateGCPrivate(D3nfb)


AllocateGCPrivate, AllocateGCPrivateIndex -- allocate or query GC private

Synopsis

Bool AllocateGCPrivate(pScreen, index, amount) ScreenPtr pScreen; int index; unsigned amount;

int AllocateGCPrivateIndex()

Description

AllocateGCPrivate( ) allocates a GC private in the driver's ScreenPtr structure. AllocateGCPrivateIndex( ) returns a GC private index and increments to the next available index.

Arguments


pScreen
pointer to the X screen structure

index
index returned by a call to the AllocateGCPrivateIndex( ) function.

amount
size of the GC private structure.

Exit codes

AllocateGCPrivate( ) returns TRUE on success and FALSE on failure. AllocateGCPrivateIndex( ) returns a GC private index. AllocateGCPrivateIndex( ) returns

Usage notes

Call the allocateGCPrivate( ) function with an index returned by a call from the AllocateGCPrivateIndex( ).

Version applicability

This function is supported for NFB drivers on all releases of SCO OpenServer 5, SVR5, and AIX 5L.

Source files


Routine source
./common/X11R66/programs/Xserver/dix/privates.c

Driver source file
xxxInit.c

19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005