From 2962b3d1e072ff2ebbe343095812dad697d6bf1d Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 24 Apr 2013 10:49:22 +0200 Subject: Use struct to hold different types of request parameters Currently the POSIX ID or the user name are passed in different parameters to some calls. The method will get cumbersome and error-prone if new parameters like, e.g. the SID, are added. This patch adds a union to hold the different kind of parameters. --- src/providers/ipa/ipa_id.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/providers/ipa/ipa_id.h') diff --git a/src/providers/ipa/ipa_id.h b/src/providers/ipa/ipa_id.h index e44640627..7fa25e927 100644 --- a/src/providers/ipa/ipa_id.h +++ b/src/providers/ipa/ipa_id.h @@ -29,6 +29,7 @@ #include "providers/ldap/ldap_common.h" #include "providers/ipa/ipa_common.h" #include "providers/ldap/sdap.h" +#include "providers/ipa/ipa_subdomains.h" void ipa_account_info_handler(struct be_req *breq); struct tevent_req *ipa_get_netgroups_send(TALLOC_CTX *memctx, @@ -55,8 +56,7 @@ struct tevent_req *ipa_s2n_get_acct_info_send(TALLOC_CTX *mem_ctx, struct sss_domain_info *dom, struct sdap_handle *sh, int entry_type, - const char *user_name, - uid_t uid); + struct req_input *req_input); int ipa_s2n_get_acct_info_recv(struct tevent_req *req); struct tevent_req *ipa_get_subdom_acct_send(TALLOC_CTX *memctx, -- cgit