BeBOP Optimized Sparse Kernel Interface Library  1.0.1h
Defines | Functions
init.c File Reference

Initialize the OSKI library. More...

#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)
 This library implementation does not require the user to call oski_Close(), but an application should to free the memory storing internal library data structures.

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!

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

References OSKI_DEBUG_LEVEL, and oski_SetDebugLevel().

Referenced by oski_Init().

void oski_Close ( void  )

This library implementation does not require the user to call oski_Close(), but an application should to free the memory storing internal library data structures.

Shuts the library down.

References oski_CloseHeurManager(), oski_CloseMatTypeManager(), oski_CloseModuleLoader(), and oski_PrintDebugMessage().

Referenced by main().

int oski_Init ( void  )

Initialize the library.

Returns:
0 on error, 1 on success.

References InitSetDebugLevel(), oski_CreateTimer(), oski_DestroyTimer(), oski_InitHeurManager(), oski_InitMatTypeManager(), oski_InitModuleLoader(), and oski_PrintDebugMessage().

Referenced by main().