Lines Matching refs:cmd
291 int dynevent_arg_add(struct dynevent_cmd *cmd, in dynevent_arg_add() argument
303 ret = seq_buf_printf(&cmd->seq, " %s%c", arg->str, arg->separator); in dynevent_arg_add()
336 int dynevent_arg_pair_add(struct dynevent_cmd *cmd, in dynevent_arg_pair_add() argument
348 ret = seq_buf_printf(&cmd->seq, " %s%c%s%c", arg_pair->lhs, in dynevent_arg_pair_add()
371 int dynevent_str_add(struct dynevent_cmd *cmd, const char *str) in dynevent_str_add() argument
375 ret = seq_buf_puts(&cmd->seq, str); in dynevent_str_add()
404 void dynevent_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen, in dynevent_cmd_init() argument
408 memset(cmd, '\0', sizeof(*cmd)); in dynevent_cmd_init()
410 seq_buf_init(&cmd->seq, buf, maxlen); in dynevent_cmd_init()
411 cmd->type = type; in dynevent_cmd_init()
412 cmd->run_command = run_command; in dynevent_cmd_init()
479 int dynevent_create(struct dynevent_cmd *cmd) in dynevent_create() argument
481 return cmd->run_command(cmd); in dynevent_create()