/[pdpsoft]/trunk/grid-mw-security/ees/include/nextgen.h
ViewVC logotype

Contents of /trunk/grid-mw-security/ees/include/nextgen.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 525 - (show annotations) (download) (as text)
Wed Jul 15 08:55:01 2009 UTC (12 years, 6 months ago) by aramv
File MIME type: text/x-csrc
File size: 1408 byte(s)
Wored on parser, trying to fix memleaks
1 /*!
2
3 \file nextgen.h
4 \brief API of the Nextgen library
5 \author Aram Verstegen
6
7 This header contains the delcaration of the Nextgen library functions:
8 -# NG_Init(): Starts the Nextgen library, which invokes the Evaluation Manager, which in turn invokes the PluginManager to load and init the required plugins.
9 -# NG_Run(plugin_name): Runs the Nextgen library, which iterates through the list and invokes the PluginManager to run the selected plugins.
10 -# NG_Term(): Terminates the Nextgen library, prompting a cleanup of the stored data in the AOS and plugin manager.
11
12 -# AOS_Init(): Initializes the AOS to store data.
13 -# AOS_TERM(): Terminates the AOS, clearing the allocated data.
14 -# ng_log(): Logging function for internal library use.
15
16 */
17 #ifndef NEXTGEN_H
18 #define NEXTGEN_H
19 #include "polytypes.h"
20 #include <syslog.h>
21 #include <stdarg.h>
22
23 #define MAX_TIME_STRING_SIZE 256
24
25 /*! Return codes to be used in the NG library. */
26 typedef enum {
27 NG_SUCCESS, /*! Success */
28 NG_FAILURE /*! Failure */
29 } NG_RC;
30
31 /*! Return codes to be used in NG plugins. */
32 typedef enum {
33 NG_PL_SUCCESS, /*! Success */
34 NG_PL_FAILURE /*! Failure */
35 } NG_PL_RC;
36
37 extern NG_RC NG_Init(void);
38 extern NG_RC NG_Run(char* plugin);
39 extern NG_RC NG_Term(void);
40
41 NG_RC AOS_Init (void);
42 NG_RC AOS_Term (void);
43
44 extern NG_RC ng_log(int, const char*, ...);
45
46 #endif
47

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28