summaryrefslogtreecommitdiffstats
path: root/src/responder/ifp/ifp_private.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-01-06 15:15:40 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-04-04 14:05:50 +0200
commit8214510f125879c3b1d247f2ce981ee20b5375d1 (patch)
tree5e0a7f31fb71bafbd2da0bea6aafb39eb242ec6e /src/responder/ifp/ifp_private.h
parentcb4d5b588e704114b7090678752d33512baa718e (diff)
downloadsssd-8214510f125879c3b1d247f2ce981ee20b5375d1.tar.gz
sssd-8214510f125879c3b1d247f2ce981ee20b5375d1.tar.xz
sssd-8214510f125879c3b1d247f2ce981ee20b5375d1.zip
IFP: Connect to the system bus
Related: https://fedorahosted.org/sssd/ticket/2072 Adds the possibility for the InfoPipe responder to connect to the system bus. At the moment, only a dummy method "Ping" is provided. The method only accepts a single string parameter that has to be 'ping'.
Diffstat (limited to 'src/responder/ifp/ifp_private.h')
-rw-r--r--src/responder/ifp/ifp_private.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/responder/ifp/ifp_private.h b/src/responder/ifp/ifp_private.h
index 32c7281ea..b97cb8a7d 100644
--- a/src/responder/ifp/ifp_private.h
+++ b/src/responder/ifp/ifp_private.h
@@ -26,10 +26,24 @@
#include "responder/common/responder.h"
#include "providers/data_provider.h"
+#include "responder/ifp/ifp_iface_generated.h"
+
+#define INFOPIPE_PATH "/org/freedesktop/sssd/infopipe"
+
+struct sysbus_ctx {
+ struct sbus_connection *conn;
+ char *introspect_xml;
+};
struct ifp_ctx {
struct resp_ctx *rctx;
struct sss_names_ctx *snctx;
+
+ struct sysbus_ctx *sysbus;
};
+/* This is a throwaway method to ease the review of the patch.
+ * It will be removed later */
+int ifp_ping(struct sbus_request *dbus_req, void *data);
+
#endif /* _IFPSRV_PRIVATE_H_ */