From 8e080573d7b65aae5fbc530dd2f428b964c644d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Tue, 29 Mar 2005 15:35:51 +0000 Subject: [PATCH] added information on peer to the context --- org.glite.jp.common/interface/types.h | 5 ++++- org.glite.jp.common/src/context.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/org.glite.jp.common/interface/types.h b/org.glite.jp.common/interface/types.h index 70e8482..62b925d 100644 --- a/org.glite.jp.common/interface/types.h +++ b/org.glite.jp.common/interface/types.h @@ -16,8 +16,10 @@ typedef struct _glite_jp_context { void **deferred_arg; void *feeds; struct soap *other_soap; + char *peer; } *glite_jp_context_t; - + +/* deprecated with file plugin uri typedef enum { GLITE_JP_FILECLASS_UNDEF, GLITE_JP_FILECLASS_INPUT, @@ -26,6 +28,7 @@ typedef enum { GLITE_JP_FILECLASS_TAGS, GLITE_JP_FILECLASS__LAST } glite_jp_fileclass_t; +*/ typedef struct { char *name; diff --git a/org.glite.jp.common/src/context.c b/org.glite.jp.common/src/context.c index 016bc59..62fa7b6 100644 --- a/org.glite.jp.common/src/context.c +++ b/org.glite.jp.common/src/context.c @@ -11,7 +11,7 @@ int glite_jp_init_context(glite_jp_context_t *ctx) char *glite_jp_peer_name(glite_jp_context_t ctx) { - return strdup("unknown"); + return ctx->peer ? strdup(ctx->peer) : NULL; } char *glite_jp_error_chain(glite_jp_context_t ctx) -- 1.8.2.3