Intel OA&M API for Linux Operating Sleep Apnea Machine User Manual


 
24 OA&M API for Linux Programming Guide — August 2005
Building Applications
dlgeventproxydef.h
defines the generic data structure for OA&M events
Note: User-defined header files that provide an implementation of the CEventHandlerAdaptor class (i.e.,
adminhandler.h) and override its CEventHandlerAdaptor::HandleEvent( ) function also need to
be included in any application that receives and processes OA&M events.
5.1.2 Required Libraries
The following library file must be linked to all applications that use the OA&M API:
libdlgdasi.so
primary OA&M API shared object file
The following library file must be linked to applications that receive and process events from the
OA&M event notification framework:
libdlgadminconsumerfw.so
shared object file that contains event consumer objects
5.2 Variables for Compiling and Linking
In System Release 6.0 and later, the following variables are included to provide a standardized way
of referencing the directories that contain header files and shared objects:
INTEL_DIALOGIC_INC
variable that points to the directory where header files are stored.
INTEL_DIALOGIC_LIB
variable that points to the directory where shared library files are stored.
These variables are automatically set at login and should be used in compiling and linking
commands. The following is an example of a compiling and linking command that uses these
variables:
cc -I${INTEL_DIALOGIC_INC} -o myapp myapp.c -L${INTEL_DIALOGIC_LIB} -lgc
Note: It is strongly recommended that developers begin using these variables when compiling and linking
applications since they will be required in future releases. The name of the variables will remain
constant, but the values may change in future releases.