Main Page   Compound List   File List   Compound Members   File Members  

lib/gobj/personamgr.h File Reference

Persona manager. More...

#include <gobjconfig.h>
#include <gobj/context.h>
#include <gobj/decls.h>
#include <gobj/container.h>

Functions

void Gj_personamgr_new (Gj_Ctx* ctx)
 Create a new persona manager.

int Gj_personamgr_restore (Gj_Ctx* ctx, Gj_ContainerId id)
 Restore the persona manager from a container. More...

void Gj_personamgr_delete (Gj_Ctx* ctx)
 Delete the persona manager.

int Gj_personamgr_save (Gj_Ctx* ctx, Gj_ContainerId id)
 Save the persona manager to a container. More...

int Gj_personamgr_readPersonas (Gj_Ctx* ctx, Gj_Stream* stream)
 Read personas from a stream. More...

int Gj_personamgr_writePersonas (Gj_Ctx* ctx, Gj_Stream* stream)
 Write all personas to a given stream. More...

void Gj_personamgr_addPersona (Gj_Ctx* ctx)
 Add the persona of the context to the personamgr. More...

int Gj_personamgr_openPersona (Gj_Ctx* ctx, Gj_Id* id )
 Open a persona (given by its id) and assign it to the given context. More...


Detailed Description

Persona manager.


Function Documentation

int Gj_personamgr_restore ( Gj_Ctx * ctx,
Gj_ContainerId id )
 

Restore the persona manager from a container.

Returns:
0 on success, -1 otherwise.

int Gj_personamgr_save ( Gj_Ctx * ctx,
Gj_ContainerId id )
 

Save the persona manager to a container.

Returns:
0 on success, -1 otherwise.

int Gj_personamgr_readPersonas ( Gj_Ctx * ctx,
Gj_Stream * stream )
 

Read personas from a stream.

Returns:
0 on success, -1 otherwise.

int Gj_personamgr_writePersonas ( Gj_Ctx * ctx,
Gj_Stream * stream )
 

Write all personas to a given stream.

Returns:
0 on success, -1 otherwise.

void Gj_personamgr_addPersona ( Gj_Ctx * ctx )
 

Add the persona of the context to the personamgr.

The persona is NOT being DUPLICATED.

int Gj_personamgr_openPersona ( Gj_Ctx * ctx,
Gj_Id * id )
 

Open a persona (given by its id) and assign it to the given context.

Returns:
0 on success, -1 otherwise.


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