summaryrefslogtreecommitdiffstats
path: root/src/responder/ifp/ifp_iface_generated.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_iface_generated.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_iface_generated.h')
-rw-r--r--src/responder/ifp/ifp_iface_generated.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/responder/ifp/ifp_iface_generated.h b/src/responder/ifp/ifp_iface_generated.h
new file mode 100644
index 000000000..8db83fc11
--- /dev/null
+++ b/src/responder/ifp/ifp_iface_generated.h
@@ -0,0 +1,49 @@
+/* The following declarations are auto-generated from ifp_iface.xml */
+
+#ifndef __IFP_IFACE_XML__
+#define __IFP_IFACE_XML__
+
+#include "sbus/sssd_dbus.h"
+
+/* ------------------------------------------------------------------------
+ * DBus Constants
+ *
+ * Various constants of interface and method names mostly for use by clients
+ */
+
+/* constants for org.freedesktop.sssd.infopipe */
+#define INFOPIPE_IFACE "org.freedesktop.sssd.infopipe"
+#define INFOPIPE_IFACE_PING "Ping"
+
+/* ------------------------------------------------------------------------
+ * DBus Vtable handler structures
+ *
+ * These structures are filled in by implementors of the different
+ * dbus interfaces to handle method calls.
+ *
+ * Handler functions of type sbus_msg_handler_fn accept raw messages,
+ * other handlers will be typed appropriately. If a handler that is
+ * set to NULL is invoked it will result in a
+ * org.freedesktop.DBus.Error.NotSupported error for the caller.
+ */
+
+/* vtable for org.freedesktop.sssd.infopipe */
+struct infopipe_iface {
+ struct sbus_vtable vtable; /* derive from sbus_vtable */
+ sbus_msg_handler_fn Ping;
+};
+
+/* ------------------------------------------------------------------------
+ * DBus Interface Metadata
+ *
+ * These structure definitions are filled in with the information about
+ * the interfaces, methods, properties and so on.
+ *
+ * The actual definitions are found in the accompanying C file next
+ * to this header.
+ */
+
+/* interface info for org.freedesktop.sssd.infopipe */
+extern const struct sbus_interface_meta infopipe_iface_meta;
+
+#endif /* __IFP_IFACE_XML__ */