summaryrefslogtreecommitdiff
path: root/src/main/completion/command.h
blob: c25df5751f8ae3824f8a649eca16c6c338f2f303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _MAIN_COMPLETION_COMMAND_H
#define _MAIN_COMPLETION_COMMAND_H

struct command;
struct commands;

/**
 * Create a new command completion provider.
 *
 * This provider completes registered command names.
 * @returns A command name @ref completion_provider.
 */
struct completion_provider
create_commands_provider(struct commands *,
                         void (*on_command_selected)(struct command *));

#endif