AddExtension(D3nfb)
AddExtension --
adds extensions to the X server
Synopsis
#include "extensions.h"
Description
AddExtension
initializes an extension
to the X Server
when the server is initialized.
The extension must meet the following criteria:
-
adhere to the standards set forth by the X Consortium
-
does not require changes to the X server core
-
must be initialized at
InitExtensions
time.
This is after screen initialization
but before input initialization.
See the dix/main.c
and ddx/mi/miinitext.c files.
-
initialize with a single function call
To create the extension object,
use a command sequence such as the following:
cd extensions/server/xtrap
make
ld -r -e DEC_XTRAPInit -o xtrap.o xtrapdi.o libxtrapext.a
The xtrapdi.o module must be specified
on the command line
because it is the file that contains
the DEC_XTRAPInit symbol.
When the server starts up it first initializes
all its static extensions,
and then initializes the dynamic extensions
in the order they appear in the
extension.cf(D4nfb)
file.
No parameters are passed to the extensions
Init
routine.
NOTE:
Only the dynamic X Server can link dynamic extensions.
To debug your extension, you must modify
the config and Imakefiles appropriately
to statically link the extension into the X server.
Exit codes
None
Porting notes
Extending the X Server is a new feature
in the Release 5.1 X Link Kit provided
for the SCO OpenServer 5 Release 5 system.
Version applicability
This function is supported for NFB drivers
on all releases of SCO OpenServer 5 and SVR5.
It is not supported on AIX 5L.
References
extension.cf(D4nfb)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005