}
bool _async_req_setup(TALLOC_CTX *mem_ctx, struct async_req **preq,
- void *pstate, size_t state_size, const char *typename)
+ void *pstate, size_t state_size, const char *type_name)
{
struct async_req *req;
void **ppstate = (void **)pstate;
TALLOC_FREE(req);
return false;
}
- talloc_set_name_const(state, typename);
+ talloc_set_name_const(state, type_name);
req->private_data = state;
*preq = req;
void (*trigger)(struct async_req *req));
bool _async_req_setup(TALLOC_CTX *mem_ctx, struct async_req **preq,
- void *pstate, size_t state_size, const char *typename);
+ void *pstate, size_t state_size, const char *type_name);
#define async_req_setup(_mem_ctx, _preq, _pstate, type) \
_async_req_setup((_mem_ctx), (_preq), (_pstate), sizeof(type), #type)