summaryrefslogtreecommitdiff
path: root/client/input.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-19/+57
2013-06-13client: Create agent data structure and pass it in function callbacksPatrik Flykt1-9/+15
Collect the agent variables into a data structure and update the agent functionality to pass this data structure around as function callback user data. Update the agent mode input functionality to store both the callback function and user data pointers. Notice that only only one input callback can be handled at any one time due to the input handling itself and the simple storing of callback and user data pointers.
2013-05-22client: Reserve space for trailing NULL in the arrayPatrik Flykt1-1/+1
2013-05-06client: Fix for handling an unset callbackPatrik Flykt1-1/+9
If there is no callback set, don't try to call readline function.
2013-05-03client: Add command mode and agent mode helper functionsPatrik Flykt1-19/+34
In command mode remember history and do command completion, in agent mode do neither. Enable saving and restoring of the readline prompt and add the GIOChannel watch also for non-interactive mode.
2013-04-23client: Trim off spaces from user inputPatrik Flykt1-8/+20
After splitting the input string into components, create a new array holding the non-zero substrings as input for the commands. Thus the input can start and end as well as divide its separate parts by any number spaces.
2013-04-23client: Add command completionPatrik Flykt1-0/+14
Add completion support for connmanctl commands.
2013-04-23client: Follow coding stylePatrik Flykt1-3/+4
Follow coding style and use __connmanctl prefix for the commands() function.
2013-04-06client: Add --help, -h optionsPatrik Flykt1-1/+10
2013-04-04client: Add input handlingPatrik Flykt1-0/+184
Set up readline command line input handling. Add helper functions to save and redraw the command line when output needs to be printed to the screen.