From 3561e54a9105672d9c7d9e76cf79fefe867b7f83 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Jan 21 2013 21:17:34 +0000 Subject: Make struct be_req opaque --- diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index f52d3e4..8a00d92 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) diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h index dcb531b..28fb4a2 100644 --- a/src/providers/dp_backend.h +++ b/src/providers/dp_backend.h @@ -131,24 +131,6 @@ struct bet_ops { be_req_fn_t finalize; }; -#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_acct_req { int entry_type; int attr_type;