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

gaa_plugin.h File Reference

Go to the source code of this file.

Data Structures

Typedefs

Enumerations

Functions


Typedef Documentation

typedef enum gaa_plugin_parameter_type gaa_plugin_parameter_type
 

Definition at line 22 of file gaa_plugin.h.

Referenced by gaa_l_plugin_parse_param().

typedef struct gaa_plugin_symbol_desc gaa_plugin_symbol_desc
 

Definition at line 29 of file gaa_plugin.h.

typedef struct gaa_plugin_parameter gaa_plugin_parameter
 

Definition at line 40 of file gaa_plugin.h.

typedef struct gaa_plugin_mechinfo_args gaa_plugin_mechinfo_args
 

Definition at line 51 of file gaa_plugin.h.

typedef struct gaa_plugin_cond_eval_args gaa_plugin_cond_eval_args
 

Definition at line 61 of file gaa_plugin.h.

typedef struct gaa_plugin_valinfo_args gaa_plugin_valinfo_args
 

Definition at line 70 of file gaa_plugin.h.

typedef struct gaa_plugin_authinfo_args gaa_plugin_authinfo_args
 

Definition at line 81 of file gaa_plugin.h.

typedef struct gaa_plugin_getpolicy_args gaa_plugin_getpolicy_args
 

Definition at line 89 of file gaa_plugin.h.

typedef struct gaa_plugin_authz_id_args gaa_plugin_authz_id_args
 

Definition at line 97 of file gaa_plugin.h.

typedef struct gaa_plugin_matchrights_args gaa_plugin_matchrights_args
 

Definition at line 105 of file gaa_plugin.h.

typedef struct gaa_plugin_mutex_args gaa_plugin_mutex_args
 

Definition at line 117 of file gaa_plugin.h.


Enumeration Type Documentation

enum gaa_plugin_parameter_type
 

Enumeration values:
GAA_PLUGIN_NULL_PARAM 
GAA_PLUGIN_TEXT_PARAM 
GAA_PLUGIN_SYMBOLIC_PARAM 
GAA_PLUGIN_VALUE_PARAM 

Definition at line 15 of file gaa_plugin.h.

00015                                {
00016     GAA_PLUGIN_NULL_PARAM,              /* no parameter set */
00017     GAA_PLUGIN_TEXT_PARAM,              /* parameter expressed as text */
00018     GAA_PLUGIN_SYMBOLIC_PARAM,          /* parameter expressed as a symbol */
00019     GAA_PLUGIN_VALUE_PARAM              /* parameter expressed as a pointer */
00020 };


Function Documentation

gaa_status gaa_initialize (
     gaa_ptr * gaa,
     void * param)
 

Definition at line 97 of file gaa_init.c.

References gaa_l_init(), gaa_plugin_default_copy_pval(), gaa_plugin_default_copy_rval(), gaa_plugin_default_free_pval(), gaa_plugin_default_matchrights(), gaa_plugin_default_new_pval(), gaa_plugin_default_new_rval(), gaa_plugin_default_pval2str(), gaa_plugin_default_rval2str(), and gaa_plugin_default_valmatch().

00099 {
00100     gaa_string_data             cfname = (gaa_string_data) param;
00101     gaa_status                  status = GAA_S_SUCCESS;
00102     gaa_valinfo_ptr             pvinfo = 0;
00103     gaa_valinfo_ptr             rvinfo = 0;
00104 
00105     /* Init from config file (if any). */
00106     if ((status = gaa_l_init(gaa, cfname)) != GAA_S_SUCCESS)
00107         return(status);
00108 
00109     /* Ensure that all mandatory callbacks have been installed. */
00110     if (! gaacore_has_matchrights_callback(*gaa))
00111         if ((status =
00112              gaa_set_matchrights_callback(*gaa, gaa_plugin_default_matchrights,
00113                                           0, 0)) != GAA_S_SUCCESS)
00114             goto end;
00115     if (! gaacore_has_default_authinfo_callback(*gaa))
00116     {
00117         if ((status =
00118              gaa_new_valinfo(&pvinfo,
00119                              gaa_plugin_default_copy_pval,
00120                              gaa_plugin_default_new_pval,
00121                              gaa_plugin_default_free_pval,
00122                              gaa_plugin_default_pval2str)) != GAA_S_SUCCESS)
00123             goto end;
00124         if ((status =
00125              gaa_new_valinfo(&rvinfo,
00126                              gaa_plugin_default_copy_rval,
00127                              gaa_plugin_default_new_rval,
00128                              free,
00129                              gaa_plugin_default_rval2str)) != GAA_S_SUCCESS)
00130             goto end;
00131         if ((status = gaa_add_authinfo(*gaa, 0, pvinfo, rvinfo,
00132                                        gaa_plugin_default_valmatch,
00133                                        0, 0)) != GAA_S_SUCCESS)
00134             goto end;
00135     }
00136  end:
00137     if (status != GAA_S_SUCCESS)
00138     {
00139         gaa_free_gaa(*gaa);
00140         *gaa = 0;
00141     }
00142     return(status);
00143 }


about globus | grid research | globus toolkit | software development

Comments? webmaster@globus.org