From cb80d9ccfc2ad7062d749cdc725e196246abee58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Fri, 27 May 2011 11:38:34 +0000 Subject: [PATCH] first implementation of HTML ?configuration interface (msg_brokers a msg_prefixes) --- org.glite.lb.server/src/lb_text.c | 10 ++++++++-- org.glite.lb.server/src/lb_text.h | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.server/src/lb_text.c b/org.glite.lb.server/src/lb_text.c index b8eca91..75ddf44 100644 --- a/org.glite.lb.server/src/lb_text.c +++ b/org.glite.lb.server/src/lb_text.c @@ -246,9 +246,15 @@ int edg_wll_JobStatusToText(edg_wll_Context ctx UNUSED_VAR, edg_wll_JobStat stat int edg_wll_ConfigurationToText(edg_wll_Context ctx, char **message){ char *a = NULL, *b; int pomL = 0; + int i; b = strdup(""); - TR("msg_brokers", "%s", ctx->msg_brokers); - TR("msg_prefixes", "%s", ctx->msg_prefixes); + + if (ctx->msg_brokers) + for (i = 0; ctx->msg_brokers[i]; i++) + TR("msg_brokers", "%s", ctx->msg_brokers[i]); + if (ctx->msg_prefixes) + for (i = 0; ctx->msg_prefixes[i]; i++) + TR("msg_prefixes", "%s", ctx->msg_prefixes[i]); *message = b; diff --git a/org.glite.lb.server/src/lb_text.h b/org.glite.lb.server/src/lb_text.h index 008e7e9..6e70004 100644 --- a/org.glite.lb.server/src/lb_text.h +++ b/org.glite.lb.server/src/lb_text.h @@ -28,6 +28,7 @@ int edg_wll_JobStatusToText(edg_wll_Context, edg_wll_JobStat, char **); int edg_wll_UserInfoToText(edg_wll_Context, edg_wlc_JobId *, char **); int edg_wll_UserNotifsToText(edg_wll_Context ctx, char **notifids, char **message); int edg_wll_NotificationToText(edg_wll_Context ctx, notifInfo *ni, char **message); +int edg_wll_ConfigurationToText(edg_wll_Context ctx, char **message); char *edg_wll_ErrorToText(edg_wll_Context,int); #endif /* GLITE_LB_TEXT */ -- 1.8.2.3