Lines Matching refs:list_ctx

84 static int ifp_groups_list_copy(struct ifp_list_ctx *list_ctx,
89 copy_count = ifp_list_ctx_remaining_capacity(list_ctx, result->count);
92 list_ctx->paths[list_ctx->path_count + i] = \
93 ifp_groups_build_path_from_msg(list_ctx->paths,
94 list_ctx->dom,
96 if (list_ctx->paths[list_ctx->path_count + i] == NULL) {
101 list_ctx->path_count += copy_count;
243 static int ifp_groups_list_by_name_step(struct ifp_list_ctx *list_ctx);
245 static void ifp_groups_list_by_name_reply(struct ifp_list_ctx *list_ctx);
253 struct ifp_list_ctx *list_ctx;
261 list_ctx = ifp_list_ctx_new(sbus_req, ctx, filter, limit);
262 if (list_ctx == NULL) {
266 return ifp_groups_list_by_name_step(list_ctx);
269 static int ifp_groups_list_by_name_step(struct ifp_list_ctx *list_ctx)
273 req = cache_req_group_by_filter_send(list_ctx,
274 list_ctx->ctx->rctx->ev,
275 list_ctx->ctx->rctx,
276 list_ctx->dom->name,
277 list_ctx->filter);
282 ifp_groups_list_by_name_done, list_ctx);
290 struct ifp_list_ctx *list_ctx;
296 list_ctx = tevent_req_callback_data(req, struct ifp_list_ctx);
297 sbus_req = list_ctx->sbus_req;
308 ret = ifp_groups_list_copy(list_ctx, result);
316 list_ctx->dom = get_next_domain(list_ctx->dom, SSS_GND_DESCEND);
317 if (list_ctx->dom == NULL) {
318 return ifp_groups_list_by_name_reply(list_ctx);
321 ret = ifp_groups_list_by_name_step(list_ctx);
330 static void ifp_groups_list_by_name_reply(struct ifp_list_ctx *list_ctx)
332 iface_ifp_groups_ListByDomainAndName_finish(list_ctx->sbus_req,
333 list_ctx->paths,
334 list_ctx->path_count);
347 struct ifp_list_ctx *list_ctx;
355 list_ctx = ifp_list_ctx_new(sbus_req, ctx, filter, limit);
356 if (list_ctx == NULL) {
360 req = cache_req_group_by_filter_send(list_ctx, ctx->rctx->ev, ctx->rctx,
366 ifp_groups_list_by_domain_and_name_done, list_ctx);
374 struct ifp_list_ctx *list_ctx;
380 list_ctx = tevent_req_callback_data(req, struct ifp_list_ctx);
381 sbus_req = list_ctx->sbus_req;
395 ret = ifp_groups_list_copy(list_ctx, result);
409 list_ctx->paths,
410 list_ctx->path_count);