diff options
author | Fabiano Fidêncio <fidencio@redhat.com> | 2016-11-16 17:21:54 +0100 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2017-01-23 18:46:37 +0100 |
commit | 9532367820b4b17bc9df675c625141c789ed19da (patch) | |
tree | fceff34391944a6ff3acfe0c97c7d558efe7b6aa /src/monitor | |
parent | a290ab27e86dde1b4a23ac78250d3c3404a991db (diff) | |
download | sssd-9532367820b4b17bc9df675c625141c789ed19da.tar.gz sssd-9532367820b4b17bc9df675c625141c789ed19da.tar.xz sssd-9532367820b4b17bc9df675c625141c789ed19da.zip |
MONITOR: Expose the monitor's services type
Let's expose the monitor's service type so it can be passed by the
services to the RegisterService method.
It will be needed in the future, for socket-activation of the
responders, as we will need to differentiate the cases where the
service being registered is still not in the list of the services but is
still a valid case because it was just socket-activated.
Related:
https://fedorahosted.org/sssd/ticket/2243
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/monitor')
-rw-r--r-- | src/monitor/monitor.c | 5 | ||||
-rw-r--r-- | src/monitor/monitor_interfaces.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index 4f9117660..c8f0f2adf 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -95,11 +95,6 @@ int cmdline_debug_microseconds; struct svc_spy; -enum mt_svc_type { - MT_SVC_SERVICE, - MT_SVC_PROVIDER -}; - struct mt_svc { struct mt_svc *prev; struct mt_svc *next; diff --git a/src/monitor/monitor_interfaces.h b/src/monitor/monitor_interfaces.h index 8a9e4fe94..90048017d 100644 --- a/src/monitor/monitor_interfaces.h +++ b/src/monitor/monitor_interfaces.h @@ -35,6 +35,11 @@ #define SSSD_SERVICE_PIPE "private/sbus-monitor" +enum mt_svc_type { + MT_SVC_SERVICE, + MT_SVC_PROVIDER +}; + int monitor_get_sbus_address(TALLOC_CTX *mem_ctx, char **address); int monitor_common_send_id(struct sbus_connection *conn, const char *name, uint16_t version); |