The KID programming library is the heart of the KID package. It contains the basic infrastructure needed to use and expand the KID system.
The user library is a collection of
C functions.
They provide all the functionalities needed to select the
input source and to read the data from it.
The KID user library is handler-based;
one handler has to be opened for every input data source in use.
Once a valid handler has been returned,
the associated data will be delivered
until the data source get closed (by the user or
by an external event).
The data readout is non blocking; i.e.
if no data is available when the user issues a read request
(as can be the case of a
spy data source
),
an error code (different from the input source closed error code)
is returned.
There is also an
A_C input module
associated to the user library.
As for the C functions, it allows to select an input data
source and read the data from it until all the data are read out.
However, due to the structure of A_C, only one input data source per
process can be selected and the readout is blocking.
The internal structure of the KID library is modular.
KID modules can be linked to the application at any time
and the KID library will use them as soon as they register themselves.
The standard KID package provides several
ready-to-use modules
that are usually enough for general purpose applications.
Nevetheless, any user-provided module
can be created and used.
The user library
KID modules
![]() ![]() ![]() |
Send comments to: Igor Sfiligoi |