Lines Matching defs:cb
34 be_callback_t cb;
48 struct be_cb *cb = talloc_get_type(ptr, struct be_cb);
49 DLIST_REMOVE(*(cb->list), cb);
54 be_callback_t cb, void *pvt, struct be_cb **cb_list,
59 if (!ctx || !cb) {
68 new_cb->cb = cb;
96 cb_ctx->callback->cb(cb_ctx->callback->pvt);
156 int be_add_reconnect_cb(TALLOC_CTX *mem_ctx, struct be_ctx *ctx, be_callback_t cb,
161 ret = be_add_cb(mem_ctx, ctx, cb, pvt, &ctx->reconnect_cb_list, reconnect_cb);
187 callback->cb(callback->pvt);
195 int be_add_online_cb(TALLOC_CTX *mem_ctx, struct be_ctx *ctx, be_callback_t cb,
200 ret = be_add_cb(mem_ctx, ctx, cb, pvt, &ctx->online_cb_list, online_cb);
239 be_callback_t cb, void *pvt,
242 return be_add_cb(mem_ctx, ctx, cb, pvt, &ctx->unconditional_online_cb_list,
265 int be_add_offline_cb(TALLOC_CTX *mem_ctx, struct be_ctx *ctx, be_callback_t cb,
268 return be_add_cb(mem_ctx, ctx, cb, pvt, &ctx->offline_cb_list, offline_cb);