Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

gm_init.c File Reference

#include "gm_call_trace.h"
#include "gm_crc32.h"
#include "gm_debug.h"
#include "gm_enable_security.h"
#include "gm_internal.h"

Functions

gm_status_t gm_init ()
void gm_finalize ()

Detailed Description

This file contains the GM API functions gm_init() and gm_finalize().


Function Documentation

gm_status_t gm_init void   
 

gm_init() initializes GM. It increments the GM initialization counter and initializes GM if it was uninitialized. This call must be performed before any other GM call and before any reference to a GM global variable (e.g.: GM_PAGE_LEN). Each call to gm_init() should be matched by a call to gm_finalize().

Return values:
GM_SUCCESS  Operation completed successfully.
GM_FAILURE  Error occurred.
See also:
gm_finalize gm_open gm_close gm_exit gm_abort
Author:
Glenn Brown
Version:
GM_API_VERSION (as defined in gm.h)

void gm_finalize void   
 

gm_finalize() decrements the GM initialization counter and if it becomes zero, frees all resources associated with GM in the current process. Each call to gm_finalize() should be matched by a call to gm_init().

See also:
gm_init gm_open gm_close gm_abort gm_exit
Author:
Glenn Brown
Version:
GM_API_VERSION (as defined in gm.h)


Generated on Mon Nov 3 15:39:26 2003 for GM by doxygen1.2.15