From 1ed6000dd2a995bcd67e99b1c89aa1e2c4a6f1e6 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Wed, 3 Apr 2024 11:43:49 +0200 Subject: Add completion to execute Completes on the command, not on following arguments if written directly at the prompt. --- src/dged/command.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dged/command.h') diff --git a/src/dged/command.h b/src/dged/command.h index 956c10a..2b0f074 100644 --- a/src/dged/command.h +++ b/src/dged/command.h @@ -183,6 +183,10 @@ struct command *lookup_command(struct commands *commands, const char *name); struct command *lookup_command_by_hash(struct commands *commands, uint32_t hash); +void commands_for_each(struct commands *commands, + void (*callback)(struct command *, void *), + void *userdata); + void command_ctx_push_arg(struct command_ctx *ctx, const char *argv); void command_ctx_free(struct command_ctx *ctx); -- cgit v1.2.3