Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
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.
|
|
|
|
If there is no callback set, don't try to call readline function.
|
|
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.
|
|
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.
|
|
Add completion support for connmanctl commands.
|
|
Follow coding style and use __connmanctl prefix for the commands() function.
|
|
|
|
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.
|