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

lcmaps_dummy_bad.c

Go to the documentation of this file.
00001 /*                                                                                                            
00002  * Copyright (c) 2001 EU DataGrid.                                                                             
00003  * For license conditions see http://www.eu-datagrid.org/license.html                                          
00004  *
00005  * Copyright (c) 2001, 2002 by 
00006  *     Martijn Steenbakkers <martijn@nikhef.nl>,
00007  *     David Groep <davidg@nikhef.nl>,
00008  *     NIKHEF Amsterdam, the Netherlands
00009  */
00010 
00032 /*****************************************************************************
00033                             Include header files
00034 ******************************************************************************/
00035 #include "lcmaps_config.h"
00036 #include <stdio.h>
00037 #include <stdlib.h>
00038 #include <string.h>
00039 #include "lcmaps_modules.h"
00040 #include "lcmaps_arguments.h"
00041 
00042 /******************************************************************************
00043                                 Definitions
00044 ******************************************************************************/
00045 
00046 /******************************************************************************
00047                           Module specific prototypes
00048 ******************************************************************************/
00049 
00050 /******************************************************************************
00051                        Define module specific variables
00052 ******************************************************************************/
00053 
00054 /******************************************************************************
00055 Function:   plugin_introspect
00056 Description:
00057     return list of required arguments
00058 Parameters:
00059 
00060 Returns:
00061     LCMAPS_MOD_SUCCESS : succes
00062     LCMAPS_MOD_FAIL    : failure
00063 ******************************************************************************/
00076 int plugin_introspect(
00077         int * argc,
00078         lcmaps_argument_t ** argv
00079 )
00080 {
00081     char * logstr = "\tlcmaps_dummy_bad-plugin_introspect()";
00082     static lcmaps_argument_t argList[] = {
00083         { NULL           , NULL               , -1,   NULL}
00084     };
00085 
00086     lcmaps_log_debug(1,"%s: introspecting\n", logstr);
00087 
00088     *argv = argList;
00089     *argc = lcmaps_cntArgs(argList);
00090     lcmaps_log_debug(1,"%s: address first argument: 0x%x\n", logstr, argList);
00091 
00092     return LCMAPS_MOD_SUCCESS;
00093 }
00094 
00095 
00096 /******************************************************************************
00097 Function:   plugin_initialize
00098 Description:
00099     Initialize plugin
00100 Parameters:
00101     argc, argv
00102     argv[0]: the name of the plugin
00103 Returns:
00104     LCMAPS_MOD_SUCCESS : succes
00105     LCMAPS_MOD_FAIL    : failure
00106     LCMAPS_MOD_NOFILE  : db file not found (will halt LCMAPS initialization)
00107 ******************************************************************************/
00125 int plugin_initialize(
00126         int argc,
00127         char ** argv
00128 )
00129 {
00130     char * logstr = "\tlcmaps_dummy_bad-plugin_initialize()";
00131     int i;
00132 
00133     lcmaps_log_debug(1,"%s: passed arguments:\n", logstr);
00134     for (i=0; i < argc; i++)
00135     {
00136         lcmaps_log_debug(2,"%s: arg %d is %s\n", logstr,
00137              i,argv[i]);
00138     }
00139 
00140     return LCMAPS_MOD_SUCCESS;
00141 }
00142 
00143 /******************************************************************************
00144 Function:   plugin_run
00145 Description:
00146     Gather credentials for LCMAPS
00147 Parameters:
00148     argc: number of arguments
00149     argv: list of arguments
00150 Returns:
00151     LCMAPS_MOD_SUCCESS: authorization succeeded
00152     LCMAPS_MOD_FAIL   : authorization failed
00153 ******************************************************************************/
00169 int plugin_run(
00170         int argc,
00171         lcmaps_argument_t * argv
00172 )
00173 {
00174     char * logstr = "\tlcmaps_dummy_bad-plugin_run()";
00175 
00176     lcmaps_log_debug(1,"%s:\n", logstr);
00177 
00178     return LCMAPS_MOD_FAIL;
00179 }
00180 
00181 /******************************************************************************
00182 Function:   plugin_terminate
00183 Description:
00184     Terminate plugin
00185 Parameters:
00186 
00187 Returns:
00188     LCMAPS_MOD_SUCCESS : succes
00189     LCMAPS_MOD_FAIL    : failure
00190 ******************************************************************************/
00197 int plugin_terminate()
00198 {
00199     char * logstr = "\tlcmaps_dummy_bad-plugin_terminate()";
00200     lcmaps_log_debug(1,"%s: terminating\n", logstr);
00201 
00202     return LCMAPS_MOD_SUCCESS;
00203 }
00204 
00205 /******************************************************************************
00206 CVS Information:
00207     $Source: /local/reps/lcgware/fabric_mgt/gridification/lcmaps/modules/dummy/lcmaps_dummy_bad.c,v $
00208     $Date: 2004/10/01 15:17:29 $
00209     $Revision: 1.2 $
00210     $Author: maart $
00211 ******************************************************************************/

Generated on Sat Oct 2 02:18:26 2004 for edg-lcmaps by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002