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

lcmaps_dummy_good.c

Go to the documentation of this file.
00001 /*                                                                                                            
00002  * Copyright (c) Members of the EGEE Collaboration. 2004.
00003  * See http://eu-egee.org/partners/ for details on the copyright holders.
00004  * For license conditions see the license file or
00005  * http://eu-egee.org/license.html
00006  */
00007 
00008 /*                                                                                                            
00009  * Copyright (c) 2001 EU DataGrid.                                                                             
00010  * For license conditions see http://www.eu-datagrid.org/license.html                                          
00011  *
00012  * Copyright (c) 2001, 2002 by 
00013  *     Martijn Steenbakkers <martijn@nikhef.nl>,
00014  *     David Groep <davidg@nikhef.nl>,
00015  *     NIKHEF Amsterdam, the Netherlands
00016  */
00017 
00039 /*****************************************************************************
00040                             Include header files
00041 ******************************************************************************/
00042 #include "lcmaps_config.h"
00043 #include <stdio.h>
00044 #include <stdlib.h>
00045 #include <string.h>
00046 #include "lcmaps_modules.h"
00047 #include "lcmaps_arguments.h"
00048 
00049 /******************************************************************************
00050                                 Definitions
00051 ******************************************************************************/
00052 
00053 /******************************************************************************
00054                           Module specific prototypes
00055 ******************************************************************************/
00056 
00057 /******************************************************************************
00058                        Define module specific variables
00059 ******************************************************************************/
00060 
00061 /******************************************************************************
00062 Function:   plugin_introspect
00063 Description:
00064     return list of required arguments
00065 Parameters:
00066 
00067 Returns:
00068     LCMAPS_MOD_SUCCESS : succes
00069     LCMAPS_MOD_FAIL    : failure
00070 ******************************************************************************/
00083 int plugin_introspect(
00084         int * argc,
00085         lcmaps_argument_t ** argv
00086 )
00087 {
00088     char * logstr = "\tlcmaps_dummy_good-plugin_introspect()";
00089     static lcmaps_argument_t argList[] = {
00090         { NULL           , NULL               , -1,   NULL}
00091     };
00092 
00093     lcmaps_log_debug(1,"%s: introspecting\n", logstr);
00094 
00095     *argv = argList;
00096     *argc = lcmaps_cntArgs(argList);
00097     lcmaps_log_debug(1,"%s: address first argument: 0x%x\n", logstr, argList);
00098 
00099     return LCMAPS_MOD_SUCCESS;
00100 }
00101 
00102 
00103 /******************************************************************************
00104 Function:   plugin_initialize
00105 Description:
00106     Initialize plugin
00107 Parameters:
00108     argc, argv
00109     argv[0]: the name of the plugin
00110 Returns:
00111     LCMAPS_MOD_SUCCESS : succes
00112     LCMAPS_MOD_FAIL    : failure
00113     LCMAPS_MOD_NOFILE  : db file not found (will halt LCMAPS initialization)
00114 ******************************************************************************/
00132 int plugin_initialize(
00133         int argc,
00134         char ** argv
00135 )
00136 {
00137     char * logstr = "\tlcmaps_dummy_good-plugin_initialize()";
00138     int i;
00139 
00140     lcmaps_log_debug(1,"%s: passed arguments:\n", logstr);
00141     for (i=0; i < argc; i++)
00142     {
00143         lcmaps_log_debug(2,"%s: arg %d is %s\n", logstr,
00144              i,argv[i]);
00145     }
00146 
00147     return LCMAPS_MOD_SUCCESS;
00148 }
00149 
00150 /******************************************************************************
00151 Function:   plugin_run
00152 Description:
00153     Gather credentials for LCMAPS
00154 Parameters:
00155     argc: number of arguments
00156     argv: list of arguments
00157 Returns:
00158     LCMAPS_MOD_SUCCESS: authorization succeeded
00159     LCMAPS_MOD_FAIL   : authorization failed
00160 ******************************************************************************/
00176 int plugin_run(
00177         int argc,
00178         lcmaps_argument_t * argv
00179 )
00180 {
00181     char * logstr = "\tlcmaps_dummy_good-plugin_run()";
00182 
00183     lcmaps_log_debug(1,"%s:\n", logstr);
00184 
00185     return LCMAPS_MOD_SUCCESS;
00186 }
00187 
00188 /******************************************************************************
00189 Function:   plugin_terminate
00190 Description:
00191     Terminate plugin
00192 Parameters:
00193 
00194 Returns:
00195     LCMAPS_MOD_SUCCESS : succes
00196     LCMAPS_MOD_FAIL    : failure
00197 ******************************************************************************/
00204 int plugin_terminate()
00205 {
00206     char * logstr = "\tlcmaps_dummy_good-plugin_terminate()";
00207 
00208     lcmaps_log_debug(1,"%s: terminating\n", logstr);
00209 
00210     return LCMAPS_MOD_SUCCESS;
00211 }
00212 
00213 /******************************************************************************
00214 CVS Information:
00215     $Source: /cvs/jra1mw/org.glite.security.lcmaps-plugins-basic/src/dummy/lcmaps_dummy_good.c,v $
00216     $Date: 2004/10/13 16:37:59 $
00217     $Revision: 1.2 $
00218     $Author: msteenba $
00219 ******************************************************************************/

Generated on Sun May 29 21:22:10 2005 for lcmaps by doxygen 1.3.5