Lines Matching refs:cmdl
46 struct cmdl *cmdl, void *data) in cmd_media_list() argument
51 fprintf(stderr, "Usage: %s media list\n", cmdl->argv[0]); in cmd_media_list()
89 struct cmdl *cmdl, void *data) in cmd_media_get_prop() argument
110 (cmd->help)(cmdl); in cmd_media_get_prop()
114 if (parse_opts(opts, cmdl) < 0) in cmd_media_get_prop()
133 static void cmd_media_get_help(struct cmdl *cmdl) in cmd_media_get_help() argument
140 cmdl->argv[0]); in cmd_media_get_help()
144 struct cmdl *cmdl, void *data) in cmd_media_get() argument
153 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media_get()
156 static void cmd_media_set_help(struct cmdl *cmdl) in cmd_media_set_help() argument
163 cmdl->argv[0]); in cmd_media_set_help()
167 struct cmdl *cmdl, void *data) in cmd_media_set_prop() argument
190 (cmd->help)(cmdl); in cmd_media_set_prop()
194 if (cmdl->optind >= cmdl->argc) { in cmd_media_set_prop()
198 val = atoi(shift_cmdl(cmdl)); in cmd_media_set_prop()
200 if (parse_opts(opts, cmdl) < 0) in cmd_media_set_prop()
225 struct cmdl *cmdl, void *data) in cmd_media_set() argument
234 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media_set()
237 void cmd_media_help(struct cmdl *cmdl) in cmd_media_help() argument
246 cmdl->argv[0]); in cmd_media_help()
249 int cmd_media(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_media() argument
259 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media()