CAU

- The Model Railway
- - Software
- - - libRailControl
- - - - Constants/Functions
- - - - - Constants
- - - - - Initialisation
- - - - - Block Sections
- - - - - Points
- - - - - Signals
- - - - - Relay
- - - - - Velocity Meters
- - - - - Station Lighting
- - - - - Handling

Initialisation Functions

enginecarcar
int init_railcontrol(void);

The function init_railcontrol() must be called before any other library function, usually at the beginnung of an application program's main() function. It initializes internal data structures of libRailControl and starts an additional thread which handles all the communication with the model railway's electronic interface.

On successful completion the value SUCCESS is returned, otherwise the value FAILURE.

int exit_railcontrol(void);

The function exit_railcontrol() must be called before the application program completes, usually at the end of the program's main() function. It terminates the communiction with the model railway's electronic interface in an orderly way. In particular, the additional thread started by a call to init_railcontrol() is finished.
On successful completion the value SUCCESS is returned, otherwise the value FAILURE.


Clemens Grelck
generated on: Mon May 31 10:19:59 MET DST 1999