summaryrefslogtreecommitdiffstats
path: root/src/monitor/monitor_interfaces.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-05-02 10:04:44 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-05-06 10:24:36 -0400
commit28a410f423bf9bcdf43ed14cd4c50634753b51f3 (patch)
treede0eaa4cb0dccc5147d070ad8b76d8226c27a38b /src/monitor/monitor_interfaces.h
parent222072fd4383f742e0a1b1722946d4586fe37de7 (diff)
downloadsssd-28a410f423bf9bcdf43ed14cd4c50634753b51f3.tar.gz
sssd-28a410f423bf9bcdf43ed14cd4c50634753b51f3.tar.xz
sssd-28a410f423bf9bcdf43ed14cd4c50634753b51f3.zip
Create common sss_monitor_init()
This was implemented almost identically for both the responders and the providers. It is easier to maintain as a single routine. This patch also adds the ability to provide a private context to attach to the sbus_connection for later use.
Diffstat (limited to 'src/monitor/monitor_interfaces.h')
-rw-r--r--src/monitor/monitor_interfaces.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/monitor/monitor_interfaces.h b/src/monitor/monitor_interfaces.h
index 4830f678f..8ec6d89bd 100644
--- a/src/monitor/monitor_interfaces.h
+++ b/src/monitor/monitor_interfaces.h
@@ -56,3 +56,10 @@ int monitor_common_res_init(DBusMessage *message,
int monitor_common_rotate_logs(DBusMessage *message,
struct sbus_connection *conn);
+errno_t sss_monitor_init(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ struct sbus_interface *intf,
+ const char *svc_name,
+ uint16_t svc_version,
+ void *pvt,
+ struct sbus_connection **mon_conn);