Main Page   Compound List   File List   Compound Members   File Members  

lib/containermgr.c File Reference

Container manager source. More...

#include "gobj/containermgr.h"
#include "gobj/errors.h"
#include "gobj/utils.h"

Compounds

struct  Gj_Containermgr_struct

Functions

void Gj_containermgr_new (Gj_Ctx* ctx)
 Create a new container manager.

int Gj_containermgr_delete (Gj_Ctx* ctx)
 Delete the container manager. More...

int Gj_containermgr_openContainerById (Gj_Ctx* ctx, Gj_Id* id)
 Open the container specified by its id . More...

int Gj_containermgr_openContainerByName (Gj_Ctx* ctx, char* name)
 Open the container specified by its name. More...

int Gj_containermgr_closeContainer (Gj_Ctx* ctx)
 Close the actual container. More...

Gj_ContainerId Gj_containermgr_getNewId (Gj_Ctx* ctx)
 Get a new container id. More...

int Gj_containermgr_releaseId (Gj_Ctx* ctx, Gj_ContainerId id)
 Release a container id and thus destroy the data linked with it. More...

Gj_StreamGj_containermgr_getStream (Gj_Ctx* ctx, Gj_ContainerId id)
 Ask for a stream to do I/O on a given container id. More...

int Gj_containermgr_releaseStream (Gj_Ctx* ctx, Gj_ContainerId id, Gj_Stream* stream)
 Release a used stream. More...

Gj_ContainerGj_containermgr_getContainer (Gj_Ctx* ctx)
 Get the actual container. More...


Detailed Description

Container manager source.


Function Documentation

int Gj_containermgr_delete ( Gj_Ctx * ctx )
 

Delete the container manager.

Returns:
0 on success, -1 otherwise.

int Gj_containermgr_openContainerById ( Gj_Ctx * ctx,
Gj_Id * id )
 

Open the container specified by its id .

Returns:
0 on success, -1 otherwise.

int Gj_containermgr_openContainerByName ( Gj_Ctx * ctx,
char * name )
 

Open the container specified by its name.

Returns:
0 on success, -1 otherwise.

int Gj_containermgr_closeContainer ( Gj_Ctx * ctx )
 

Close the actual container.

Returns:
0 on success, -1 otherwise.

Gj_ContainerId Gj_containermgr_getNewId ( Gj_Ctx * ctx )
 

Get a new container id.

Returns:
the container id on success, 0 otherwise.

int Gj_containermgr_releaseId ( Gj_Ctx * ctx,
Gj_ContainerId id )
 

Release a container id and thus destroy the data linked with it.

Returns:
0 on success, -1 otherwise.

Gj_Stream * Gj_containermgr_getStream ( Gj_Ctx * ctx,
Gj_ContainerId id )
 

Ask for a stream to do I/O on a given container id.

Returns:
A pointer to the stream on success, 0 otherwise.

int Gj_containermgr_releaseStream ( Gj_Ctx * ctx,
Gj_ContainerId id,
Gj_Stream * stream )
 

Release a used stream.

Returns:
0 on success, -1 otherwise.

Gj_Container * Gj_containermgr_getContainer ( Gj_Ctx * ctx )
 

Get the actual container.

The returned pointer is STILL OWNED by the containermanager and should be considered deleted after the container has been closed via the containermgr.


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