Home | History | Annotate | Download | only in utils

Lines Matching refs:cmd

19 static void (*edit_cmd_cb)(void *ctx, char *cmd);
21 static char ** (*edit_completion_cb)(void *ctx, const char *cmd, int pos) =
92 static void readline_cmd_handler(char *cmd)
94 if (cmd && *cmd) {
99 if (h == NULL || os_strcmp(cmd, h->line) != 0)
100 add_history(cmd);
103 if (cmd == NULL) {
107 trunc_nl(cmd);
108 edit_cmd_cb(edit_cb_ctx, cmd);
112 int edit_init(void (*cmd_cb)(void *ctx, char *cmd),
114 char ** (*completion_cb)(void *ctx, const char *cmd, int pos),
148 int (*filter_cb)(void *ctx, const char *cmd))