Main Page   Compound List   File List   Compound Members   File Members  

lib/personamgr.c File Reference

Persona manager. More...

#include "gobj/personamgr.h"
#include "gobj/stream.h"

Compounds

struct  gj_PersonaRecord_struct
struct  Gj_Personamgr_struct

Typedefs

typedef struct gj_PersonaRecord_struct gj_PersonaRecord
 Persona record sturcture typedef. More...


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.


Typedef Documentation

typedef struct gj_PersonaRecord_struct gj_PersonaRecord
 

Persona record sturcture typedef.

For internal use only.


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:59 2001 for Gobj by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000