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

_lcmaps_runvars.h File Reference

API of runvars structure. More...

#include "lcmaps_types.h"

Include dependency graph for _lcmaps_runvars.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

int lcmaps_extractRunVars (lcmaps_request_t request, lcmaps_cred_id_t lcmaps_cred)
 extract the variables from user credential that can be used by the plugins. More...

void* lcmaps_getRunVars (char *argName, char *argType)
 returns a void pointer to the requested value. More...

int lcmaps_setRunVars (char *argName, char *argType, void *value)
 fill the runvars_list with a value for argName and argType. More...


Detailed Description

API of runvars structure.

Author:
Martijn Steenbakkers for the EU DataGrid.

This module takes the data that are presented to LCMAPS (the global credential and Job request) and extracts the variables that will be used by the plugins from it and stores them into a list. The interface to the LCMAPS module is composed of:
  1. lcmaps_extractRunVars(): takes the global credential and Job request and extracts run variables from them
  2. lcmaps_setRunVars(): adds run variables to a list
  3. lcmaps_getRunVars(): gets run variables from list

Definition in file _lcmaps_runvars.h.


Function Documentation

int lcmaps_extractRunVars ( lcmaps_request_t request,
lcmaps_cred_id_t lcmaps_cred )
 

extract the variables from user credential that can be used by the plugins.

This function takes the user credential and job request (in RSL) and extracts the information which is published in the runvars_list. These variables can be accessed by the plugins.

Parameters:
request   the job request (RSL)
lcmaps_cred   the credential presented by the user
Return values:
0   succes.
1   failure.

For internal use only.

Definition at line 97 of file lcmaps_runvars.c.

void * lcmaps_getRunVars ( char * argName,
char * argType )
 

returns a void pointer to the requested value.

This function returns a void pointer to the requested variable with name argName and type argType in the runvars_list. Internally it uses lcmaps_getArgValue().

Parameters:
argName   name of the variable
argType   type of the variable

Returns:
void pointer to the value or NULL

For internal use only.

Definition at line 192 of file lcmaps_runvars.c.

int lcmaps_setRunVars ( char * argName,
char * argType,
void * value )
 

fill the runvars_list with a value for argName and argType.

This function fills the (internal) runvars_list with the value for the variable with name argName and type argType. Internally lcmaps_setArgValue() is used.

Parameters:
argName   name of the runvars variable
argType   type of the runvars variable
values   void pointer to the value
Return values:
0   succes.
-1   failure.

For internal use only.

Definition at line 233 of file lcmaps_runvars.c.


Generated at Thu Mar 4 17:39:09 2004 for edg-lcmaps by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001