T-EMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
Init.h File Reference

Go to the source code of this file.

Functions

void temu_initSupportLib (void)
 
void temu_initPathSupport (const char *Argv0)
 

Function Documentation

void temu_initPathSupport ( const char *  Argv0)

Initialise path finding support

This function initialises auxillary path support needed by T-EMU for locating supporting tools (e.g. stuff in libexec) and automatically appending of scripting search paths.

In the future, this will likely be merged into initSupportLib for a unified init function, but this will break API compatibility, so this change is deferred to T-EMU 3.

Call the Function passing Argv0 of whatever you would do to invoke the temu command line tool. E.g. if temu is in your path and this is the installation you wish to use, the parameter should be "temu". However, if you wish to use a custom installation, pass the full path to the temu program. The base path can contain ~ for the current home dir and ~foo for the home dir of user foo.

Note that it is not an error to omit this initialisation, but omitting it will imply that temu cannot launch UI models such as the ConsoleUI model.

void temu_initSupportLib ( void  )

Initialisation of T-EMU support library.

Call this function before any other use of T-EMU. The function does not return failures, but halts on failed initialisation.

The function should be called as early as possible in the application's execution. Preferably in the main function (though there is no strict requirement for this).

The initialisation function is at present not thread safe, call it in the main thread only!