5.1 Main Program
This chapter describes how the functions defined in DM are realized in C and how they have to be linked to DM.
In principle each C program having the name "AppMain" in the non-distributed version has the name "AppInit" in the distributed version.
This main program is called by the Dialog Manager and can then carry out the necessary initialization steps.
5.1.1 Local C Programs
In the local version of Dialog Manager the program "AppMain" in principle is the virtual program. It has to carry out the following steps:
- initialization of Dialog Manager (DM_Initialize)
- loading a dialog (DM_LoadDialog)
- initialization of application
- passing on the function addresses (DM_BindFunctions)
- reading in the user profile (DM_LoadProfile)
- starting the dialog (DM_StartDialog)
- starting the processing (DM_EventLoop)
After having carried out these steps successfully, you can work with the program.
5.1.2 Distributed C Programs
In the distributed version of Dialog Manager the C main program "AppInit" has to carry out the following steps: