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

evaluationmanager.c File Reference

Implementation of the evaluation manager interface. More...

#include <string.h>
#include "lcmaps_log.h"
#include "evaluationmanager.h"

Include dependency graph for evaluationmanager.c:

Include dependency graph

Go to the source code of this file.

Functions

int free_lcmaps_db_entry ()
int startEvaluationManager (const char *name)
int getPluginNameAndArgs (lcmaps_db_entry_t **plugins)
int runEvaluationManager (void)
int stopEvaluationManager (void)

Variables

lcmaps_db_entry_tglobal_plugin_list = NULL


Detailed Description

Implementation of the evaluation manager interface.

Besides the implementation of the interface of the evaluation manager some additional functions are implemented here. Please note that these are not part of the interface and hence should not be used. Look in evaluationmanager.h for the functions that can be called by external sources.

Author:
G.M. Venekamp (venekamp@nikhef.nl)
Version:
Revision:
1.11
Date:
Date:
2003/07/10 14:02:12

Definition in file evaluationmanager.c.


Function Documentation

int free_lcmaps_db_entry ( )
 

During the getPluginsAndArgs() call, a list structure is created. This structure is never cleaned automatically, nor can it be. When it is necessay and safe to free the resources, call this function

Return values:
0   when the call is successful,
1   otherwise.

Definition at line 216 of file evaluationmanager.c.

Referenced by stopEvaluationManager().

int getPluginNameAndArgs ( lcmaps_db_entry_t ** plugin )
 

Get a list of plugins and their arguments based on the configuration file. The memory that is allocted is freed during the stopEvaluationManager() call.

Parameters:
plugins   Pointer to be intialized with the first entry of the plugin list.
Return values:
0   when the call is successful,
1   otherwise.

Definition at line 86 of file evaluationmanager.c.

int runEvaluationManager ( void )
 

Run the evaluation manager. The evaluation manager has to be initialized by calling statrEvaluation Manager first.

Return values:
0   when the call is successful,
1   otherwise.

Definition at line 164 of file evaluationmanager.c.

Referenced by runPluginManager().

int startEvaluationManager ( const char * name )
 

Start the evaluation manager.

Parameters:
name   Name of the configure script.
Return values:
0   when the call is successful,
1   otherwise.

Definition at line 62 of file evaluationmanager.c.

int stopEvaluationManager ( void )
 

Stop the evaluation manager after is has run successfully. Strictly speaking, the evalauation manager needs no stopping. This call is a good point to clean up the resources used by the evaluation manager.

Return values:
0   when the call is successful,
1   otherwise.

Definition at line 195 of file evaluationmanager.c.

Referenced by stopPluginManager().


Variable Documentation

lcmaps_db_entry_t * global_plugin_list = NULL [static]
 

When the getPluginNameAndArgs() function has been called, the global_plugin_list variable get initialized with the first element of the list. This variable is later used to free the resources held by the list. In addition, multiple calls to getPluginNameAndArgs() result in returning the value of this pointer.

Definition at line 49 of file evaluationmanager.c.


Generated at Fri Jul 11 18:37:51 2003 for edg-lcmaps by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001