Main Page   Compound List   File List   Compound Members   File Members  

lib/system.c File Reference

System structure. More...

#include "gobj/system.h"
#include "gobj/context.h"
#include "gobj/ids.h"
#include "gobj/container.h"

Functions

int Gj_system_new (Gj_Ctx* ctx)
 Create a new system. More...

int Gj_system_delete (Gj_Ctx* ctx)
 Destroy the system structure. More...

int Gj_system_initStd (Gj_Ctx* ctx)
 Initialize the system with standard components. More...

int Gj_system_initMinimal (Gj_Ctx* ctx)
 Initialize the system only as far as needed to open a container from the containermgr. More...

int Gj_system_restoreWithInitSystem (Gj_Ctx* ctx)
 After calling Gj_system_initMinimal and opening a container, call this function to load the further components of the system from the container. More...

int Gj_system_save (Gj_Ctx* ctx)
 Save the data of all components to the actual container. More...

Gj_Bool Gj_system_isInit (Gj_Ctx* ctx)
 Check if the system is completely initialized.


Detailed Description

System structure.


Function Documentation

int Gj_system_new ( Gj_Ctx * ctx )
 

Create a new system.

Returns:
0 on success, -1 otherwise.

int Gj_system_delete ( Gj_Ctx * ctx )
 

Destroy the system structure.

Returns:
0 on success, -1 otherwise.

int Gj_system_initStd ( Gj_Ctx * ctx )
 

Initialize the system with standard components.

Returns:
0 on success, -1 otherwise.

int Gj_system_initMinimal ( Gj_Ctx * ctx )
 

Initialize the system only as far as needed to open a container from the containermgr.

Returns:
0 on success, -1 otherwise.

int Gj_system_restoreWithInitSystem ( Gj_Ctx * ctx )
 

After calling Gj_system_initMinimal and opening a container, call this function to load the further components of the system from the container.

Attention:
The function works unlike other _restore functions as the system must already be initialized!

Returns:
0 on success, -1 otherwise.

int Gj_system_save ( Gj_Ctx * ctx )
 

Save the data of all components to the actual container.

Returns:
0 on success, -1 otherwise.


Generated at Fri Aug 17 18:28:59 2001 for Gobj by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000