added information on peer to the context
authorAleš Křenek <ljocha@ics.muni.cz>
Tue, 29 Mar 2005 15:35:51 +0000 (15:35 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Tue, 29 Mar 2005 15:35:51 +0000 (15:35 +0000)
org.glite.jp.common/interface/types.h
org.glite.jp.common/src/context.c

index 70e8482..62b925d 100644 (file)
@@ -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;
index 016bc59..62fa7b6 100644 (file)
@@ -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)