From 38e86f8d94c23d7412a9736ec887d90ecaa6a4af Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20Salvet?= Date: Fri, 22 Oct 2004 06:53:36 +0000 Subject: [PATCH] Initialize backend module on startup. --- org.glite.jp.primary/src/simple_server.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/org.glite.jp.primary/src/simple_server.c b/org.glite.jp.primary/src/simple_server.c index a620988..e6e285f 100644 --- a/org.glite.jp.primary/src/simple_server.c +++ b/org.glite.jp.primary/src/simple_server.c @@ -1,3 +1,5 @@ +#include + #include "glite/jp/types.h" #include "glite/jp/context.h" @@ -5,7 +7,7 @@ extern SOAP_NMAC struct Namespace jpis__namespaces[],jpps__namespaces[]; -int main() { +int main(int argc, char *argv[]) { struct soap soap; int i, m, s; // master and slave sockets @@ -15,6 +17,13 @@ int main() { soap_set_namespaces(&soap, jpps__namespaces); glite_jp_init_context(&ctx); + + if (glite_jppsbe_init(ctx, &argc, argv)) { + /* XXX log */ + fputs(glite_jp_error_chain(ctx), stderr); + exit(1); + } + soap.user = (void *) ctx; ctx->other_soap = soap_new(); soap_init(ctx->other_soap); -- 1.8.2.3