diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-02-25 09:15:06 -0500 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-02-25 10:59:53 -0500 |
commit | e3b806485bf3d7b9d05591d9974a399ad92be2d3 (patch) | |
tree | 1f9c3a247c219fbea47a43ecd678d086d1779f2d /server/infopipe/infopipe_private.h | |
parent | 857a38bb601f45116b4f9f963024a3eb9343329e (diff) | |
download | sssd-e3b806485bf3d7b9d05591d9974a399ad92be2d3.tar.gz sssd-e3b806485bf3d7b9d05591d9974a399ad92be2d3.tar.bz2 sssd-e3b806485bf3d7b9d05591d9974a399ad92be2d3.zip |
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.
Diffstat (limited to 'server/infopipe/infopipe_private.h')
-rw-r--r-- | server/infopipe/infopipe_private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/infopipe/infopipe_private.h b/server/infopipe/infopipe_private.h index afac334b..1ceb426f 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, |