diff options
author | Simo Sorce <simo@redhat.com> | 2016-01-08 17:51:06 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-06-29 21:46:03 +0200 |
commit | 4f3a9d837a55b49448eca3c713c85a406207e523 (patch) | |
tree | cf983b0fac5ddbc39ca259306342a0c05245168c /src/responder/autofs/autofs_private.h | |
parent | 9a6d162cacfaf6946a1bf974b80b643d2a052d7a (diff) | |
download | sssd-4f3a9d837a55b49448eca3c713c85a406207e523.tar.gz sssd-4f3a9d837a55b49448eca3c713c85a406207e523.tar.xz sssd-4f3a9d837a55b49448eca3c713c85a406207e523.zip |
Responders: Make the client context more generic
This is useufl to allow reusing the responder code with other protocols.
Store protocol data and responder state data behind opaque pointers and
use tallog_get_type to check they are of the right type.
This also allows to store per responder state_ctx so that, for example,
the autofs responder does not have to carry useless variables used only
by the nss responder.
Resolves:
https://fedorahosted.org/sssd/ticket/2918
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/responder/autofs/autofs_private.h')
-rw-r--r-- | src/responder/autofs/autofs_private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/responder/autofs/autofs_private.h b/src/responder/autofs/autofs_private.h index efe1d623f..6a39b17ad 100644 --- a/src/responder/autofs/autofs_private.h +++ b/src/responder/autofs/autofs_private.h @@ -33,6 +33,10 @@ struct autofs_ctx { hash_table_t *maps; }; +struct autofs_state_ctx { + char *automntmap_name; +}; + struct autofs_cmd_ctx { struct cli_ctx *cctx; char *mapname; @@ -74,6 +78,7 @@ struct autofs_map_ctx { }; struct sss_cmd_table *get_autofs_cmds(void); +int autofs_connection_setup(struct cli_ctx *cctx); void autofs_map_hash_delete_cb(hash_entry_t *item, hash_destroy_enum deltype, void *pvt); |