00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GLITE_DATA_DELEGATION_H
00026 #define GLITE_DATA_DELEGATION_H
00027
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031
00032 #include <time.h>
00033
00034
00035
00036
00037
00038
00039
00040 typedef struct _glite_delegation_ctx glite_delegation_ctx;
00041
00042
00043
00044
00045
00046
00047 #define GLITE_DELEGATION_SD_TYPE "org.glite.Delegation"
00048
00049
00050 #define GLITE_DELEGATION_SD_ENV "GLITE_SD_DELEGATION_TYPE"
00051
00052
00053
00054
00055
00056
00075 glite_delegation_ctx *glite_delegation_new(const char *endpoint);
00076
00082 void glite_delegation_free(glite_delegation_ctx *ctx);
00083
00090 const char *glite_delegation_get_endpoint(glite_delegation_ctx *ctx);
00091
00101 char *glite_delegation_get_error(glite_delegation_ctx *ctx);
00102
00117 int glite_delegation_delegate(glite_delegation_ctx *ctx,
00118 const char *delegationID, int expiration, int force);
00119
00130 int glite_delegation_info(glite_delegation_ctx *ctx,
00131 const char *delegationID, time_t *expiration);
00132
00142 int glite_delegation_destroy(glite_delegation_ctx *ctx,
00143 const char *delegationID);
00144
00154 char *glite_delegation_getInterfaceVersion(glite_delegation_ctx *ctx);
00155
00165 char *glite_delegation_getVersion(glite_delegation_ctx *ctx);
00166
00178 char *glite_delegation_getServiceMetadata(glite_delegation_ctx *ctx, const char *key);
00179
00184 #ifdef __cplusplus
00185 }
00186 #endif
00187
00188 #endif