Lines Matching defs:ctx
52 command_from_path(const char *path, struct lg_ctx *ctx)
58 ctx->command = &cmds[i];
59 ctx->qs_mask = cmds[i].qs_mask;
72 prep_request(struct lg_ctx *ctx, const char *meth, const char *path,
79 if (command_from_path(path, ctx) != 0)
81 if (parse_querystring(qs, ctx) != 0)
93 bgpctl_call(struct lg_ctx *ctx)
103 for (i = 0; ctx->command->args[i] != NULL; i++)
104 argv[argc++] = ctx->command->args[i];
106 argc = qs_argv(argv, argc, sizeof(argv) / sizeof(argv[0]), ctx,
107 ctx->command->barenbr);
114 if (ctx->command->content_type == NULL)
117 printf("Content-type: %s\r\n\r\n", ctx->command->content_type);