#include "lcmaps_db_read.h"
#include "pdl.h"
#include "pdl_policy.h"
Go to the source code of this file.
Functions | |
int | startEvaluationManager (const char *name, int argc, char *argv[]) |
int | getPluginNameAndArgs (lcmaps_db_entry_t **plugin) |
int | runEvaluationManager (int argc, char *argv[]) |
int | stopEvaluationManager (void) |
The function listed in here are accessible to anyone. This is the way to communicate with the evaluation manager. The evaluation manager deligates the becessary work to the Policy Language Description module (PDL).
Definition in file evaluationmanager.h.
|
Get a list of plugins and their arguments based on the configuration file. The memory that is allocted is freed during the stopEvaluationManager() call.
Definition at line 129 of file evaluationmanager.c. References plugin_s::args, get_plugins(), global_plugin_list, lcmaps_db_entry_t, lcmaps_log(), lcmaps_log_debug(), LCMAPS_MAXARGSTRING, LCMAPS_MAXPATHLEN, plugin_s::name, plugin_s::next, lcmaps_db_entry_s::next, pdl_path(), plugin_t, lcmaps_db_entry_s::pluginargs, lcmaps_db_entry_s::pluginname, and TRUE. Referenced by startPluginManager(). |
|
Run the evaluation manager. The evaluation manager has to be initialized by calling statrEvaluation Manager first.
Definition at line 224 of file evaluationmanager.c. References EVALUATION_FAILURE, EVALUATION_START, EVALUATION_SUCCESS, get_current_policy(), lcmaps_log(), lcmaps_log_debug(), policy_s::name, pdl_next_plugin(), plugin_status_t, policy_t, and runPlugin(). Referenced by runPluginManager(). |
|
Start the evaluation manager.
Definition at line 72 of file evaluationmanager.c. References check_policies_for_recursion(), cleanup_policies(), pdl_init(), reduce_policies(), stopEvaluationManager(), and yyparse_errors(). Referenced by startPluginManager(). |
|
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.
Definition at line 315 of file evaluationmanager.c. References free_lcmaps_db_entry(), free_resources(), and lcmaps_log_debug(). Referenced by startEvaluationManager(), and stopPluginManager(). |