From 38473dd468dd1b5e523d932220de09ccb627e213 Mon Sep 17 00:00:00 2001 From: ulion Date: Tue, 11 Dec 2007 08:03:47 +0000 Subject: Add new function for parsing and queueing multi-commands separated by \n or \r. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25347 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'input/input.h') diff --git a/input/input.h b/input/input.h index 6ed71c4320..780a5d1d88 100644 --- a/input/input.h +++ b/input/input.h @@ -255,6 +255,12 @@ mp_input_get_cmd(int time, int paused, int peek_only); mp_cmd_t* mp_input_parse_cmd(char* str); +/** + * Parse and queue commands separated by '\n'. + * @return count of commands new queued. + */ +int mp_input_parse_and_queue_cmds(const char *str); + /// These filters allow you to process the command before MPlayer. /// If a filter returns a true value mp_input_get_cmd will return NULL. void -- cgit v1.2.3