init.c File Reference


Detailed Description

Initialize the OSKI library.

This module implements the library initialization and clean-up.

The library checks for an environment variable, whose name is defined by the compile-time macro OSKI_DEBUG_LEVEL, for a debugging level.

Todo:
Make this module thread-safe!

#include <string.h>
#include <stdlib.h>
#include <oski/common.h>
#include <oski/modloader.h>

Defines

#define PACKAGE_STRING   "BeBOP-OSKI (unknown version)"
#define OSKI_DEBUG_LEVEL   "OSKI_DEBUG_LEVEL"
 Default environment variable to hold the initial debugging level.

Functions

static void InitSetDebugLevel (void)
 Set the debugging level from the environment variable whose name is given by the compile-time macro, OSKI_DEBUG_LEVEL.
int oski_Init (void)
 Initialize the library.
void oski_Close (void)
 Shuts the library down.


Function Documentation

static void InitSetDebugLevel void   )  [static]
 

Set the debugging level from the environment variable whose name is given by the compile-time macro, OSKI_DEBUG_LEVEL.

Postcondition:
Changes the debug level via a call to oski_SetDebugLevel.
See also:
oski_SetDebugLevel

int oski_Init void   ) 
 

Initialize the library.

Returns:
0 on error, 1 on success.


Generated on Wed Sep 19 16:41:22 2007 for BeBOP Optimized Sparse Kernel Interface Library by  doxygen 1.4.6