diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-11 18:53:45 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-21 22:17:34 +0100 |
commit | 3561e54a9105672d9c7d9e76cf79fefe867b7f83 (patch) | |
tree | 719f661cd466900e60e7c3822dfc4d1fb9861f03 /src/providers/data_provider_be.c | |
parent | cbaba2f47da96c4191971bce86f03afb3f88864a (diff) | |
download | sssd-3561e54a9105672d9c7d9e76cf79fefe867b7f83.tar.gz sssd-3561e54a9105672d9c7d9e76cf79fefe867b7f83.tar.xz sssd-3561e54a9105672d9c7d9e76cf79fefe867b7f83.zip |
Make struct be_req opaque
Diffstat (limited to 'src/providers/data_provider_be.c')
-rw-r--r-- | src/providers/data_provider_be.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index f52d3e40a..8a00d9289 100644 --- a/src/providers/data_provider_be.c +++ b/src/providers/data_provider_be.c @@ -119,6 +119,24 @@ static struct bet_data bet_data[] = { {BET_MAX, NULL, NULL} }; +#define REQ_PHASE_ACCESS 0 +#define REQ_PHASE_SELINUX 1 + +struct be_req { + struct be_client *becli; + struct be_ctx *be_ctx; + void *req_data; + + be_async_callback_t fn; + void *pvt; + + /* This is utilized in access provider + * request handling to indicate if access or + * selinux provider is calling the callback. + */ + int phase; +}; + struct be_req *be_req_create(TALLOC_CTX *mem_ctx, struct be_client *becli, struct be_ctx *be_ctx, be_async_callback_t fn, void *pvt_fn_data) |