From e3b806485bf3d7b9d05591d9974a399ad92be2d3 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 25 Feb 2009 09:15:06 -0500 Subject: Store the InfoPipe introspection XML for subsequent requests. Right now, the introspection XML file is read in every time a client service requests it. Since the XML cannot change during process lifetime, we'll store it on the infp_ctx object so we don't need to hit the filesystem for requests after the first. --- server/infopipe/infopipe_private.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/infopipe/infopipe_private.h') diff --git a/server/infopipe/infopipe_private.h b/server/infopipe/infopipe_private.h index afac334b6..1ceb426f0 100644 --- a/server/infopipe/infopipe_private.h +++ b/server/infopipe/infopipe_private.h @@ -22,6 +22,14 @@ #ifndef INFOPIPE_PRIVATE_H_ #define INFOPIPE_PRIVATE_H_ +struct infp_ctx { + struct event_context *ev; + struct confdb_ctx *cdb; + struct service_sbus_ctx *ss_ctx; + struct sysbus_ctx *sysbus; + char *introspect_xml; +}; + enum object_types { INFP_OBJ_TYPE_INVALID = 0, INFP_OBJ_TYPE_USER, -- cgit