diff options
| author | Fabiano Fidêncio <fidencio@redhat.com> | 2016-12-14 09:23:14 +0100 |
|---|---|---|
| committer | Lukas Slebodnik <lslebodn@redhat.com> | 2017-01-23 18:46:37 +0100 |
| commit | b46c4c0d3e364636af1b42683cd3229ffa0b77cb (patch) | |
| tree | 596aa518cd7da12b48d803cb62333d8ddfb6fe72 /src/monitor | |
| parent | 26f11a75dc0d973d575e5d2d56dc13a698a68ea5 (diff) | |
| download | sssd-b46c4c0d3e364636af1b42683cd3229ffa0b77cb.tar.gz sssd-b46c4c0d3e364636af1b42683cd3229ffa0b77cb.tar.xz sssd-b46c4c0d3e364636af1b42683cd3229ffa0b77cb.zip | |
SBUS: Add a time_t pointer to the sbus_connection
The idea of this commit is to provide a way to update the time of the
last request coming from/going to the responders through sbus.
For now it's not used anywhere as all the functions that will pass their
time_t to the sbus_connection are currently passing NULL. It will be
used by follow-up patches.
Related:
https://fedorahosted.org/sssd/ticket/3245
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_interfaces.h | 1 | ||||
| -rw-r--r-- | src/monitor/monitor_sbus.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/monitor/monitor_interfaces.h b/src/monitor/monitor_interfaces.h index c5f3f7cc6..136beb4f5 100644 --- a/src/monitor/monitor_interfaces.h +++ b/src/monitor/monitor_interfaces.h @@ -50,4 +50,5 @@ errno_t sss_monitor_init(TALLOC_CTX *mem_ctx, uint16_t svc_version, uint16_t svc_type, void *pvt, + time_t *last_request_time, struct sbus_connection **mon_conn); diff --git a/src/monitor/monitor_sbus.c b/src/monitor/monitor_sbus.c index af6e1cffe..faf28f728 100644 --- a/src/monitor/monitor_sbus.c +++ b/src/monitor/monitor_sbus.c @@ -167,6 +167,7 @@ errno_t sss_monitor_init(TALLOC_CTX *mem_ctx, uint16_t svc_version, uint16_t svc_type, void *pvt, + time_t *last_request_time, struct sbus_connection **mon_conn) { errno_t ret; @@ -180,7 +181,7 @@ errno_t sss_monitor_init(TALLOC_CTX *mem_ctx, return ret; } - ret = sbus_client_init(mem_ctx, ev, sbus_address, &conn); + ret = sbus_client_init(mem_ctx, ev, sbus_address, last_request_time, &conn); if (ret != EOK) { DEBUG(SSSDBG_FATAL_FAILURE, "Failed to connect to monitor services.\n"); talloc_free(sbus_address); |
