From a2c6e0e0beb75e0a8fa7e3e07e9443d97ea2b731 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 3 Nov 2008 17:18:49 -0500 Subject: Add support for dbus comunication in the nss service Add utility function in confdb Make all component fetch the dbus socket from the confdb --- server/nss/nsssrv.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'server/nss/nsssrv.h') diff --git a/server/nss/nsssrv.h b/server/nss/nsssrv.h index e00ccced..300b8af3 100644 --- a/server/nss/nsssrv.h +++ b/server/nss/nsssrv.h @@ -29,14 +29,27 @@ #include "ldb.h" #include "../nss_client/sss_nss.h" +#define NSS_SBUS_SERVICE_VERSION 0x0001 +#define NSS_SBUS_SERVICE_NAME "NSS" + struct nss_ldb_ctx; struct getent_ctx; +struct nss_sbus_ctx { + struct event_context *ev; + struct sbus_method_ctx *sm_ctx; + struct sbus_conn_ctx *scon_ctx; +}; + struct nss_ctx { + struct event_context *ev; struct task_server *task; struct fd_event *lfde; int lfd; struct nss_ldb_ctx *lctx; + struct confdb_ctx *cdb; + char *sock_name; + struct nss_sbus_ctx *ns_ctx; }; struct cli_ctx { -- cgit