Next: , Previous: , Up: Introduction   [Contents][Index]

1.10 API Basics

A C program that uses QSMM includes one or more its header files. The main header file is qsmm.h. The #include <qsmm/qsmm.h> directive includes that file in the C program.

The header file sig.h included in qsmm.h defines datatypes and macros for signals—integer values that are possible outcomes and parts of an argument of a probabilistic mapping.

Object handles reference objects of various types. An object handle of qsmm_actor_t type references an adaptive probabilistic mapping.

All API functions report errors in a unified manner—via a result of int type, where negative results are error codes. A multinode model supports assigning an error handler to it for simpler reacting on errors in usual situations.

There exists an API function for retrieving the version of a QSMM library.