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/sbus/sbus_client.c | |
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/sbus/sbus_client.c')
-rw-r--r-- | src/sbus/sbus_client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sbus/sbus_client.c b/src/sbus/sbus_client.c index 8ad4c0f36..1f084e832 100644 --- a/src/sbus/sbus_client.c +++ b/src/sbus/sbus_client.c @@ -27,6 +27,7 @@ int sbus_client_init(TALLOC_CTX *mem_ctx, struct tevent_context *ev, const char *server_address, + time_t *last_request_time, struct sbus_connection **_conn) { struct sbus_connection *conn = NULL; @@ -63,7 +64,8 @@ int sbus_client_init(TALLOC_CTX *mem_ctx, return EIO; } - ret = sbus_new_connection(mem_ctx, ev, server_address, &conn); + ret = sbus_new_connection(mem_ctx, ev, server_address, + last_request_time, &conn); if (ret != EOK) { goto fail; } |