summaryrefslogtreecommitdiff
path: root/client
AgeCommit message (Collapse)AuthorFilesLines
2013-05-03client: Add command mode and agent mode helper functionsPatrik Flykt2-19/+38
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-05-03client: Add agent commandPatrik Flykt1-0/+30
2013-05-03client: Add support for registering and unregistering an agentPatrik Flykt2-0/+180
Add agent .h and .c files containing registering and unregistering functionality.
2013-05-03client: Enable method call return to exit or continue runningPatrik Flykt3-25/+50
Enable a client method call return function to exit or continue running when in non-interactive mode. When a connmanctl_dbus_method_return_func_t returns -EINPROGRESS in non-interactive mode, the command line client is kept running even after the method call has been processed. The command line client needs to keep running after a successful Agent registration in order to process Agent method calls. Also enabling tethering in non-interactive mode needs the client executing until SSID, passphrase and tethering mode have been set.
2013-05-03client: Make dbus helper function variable const char *Patrik Flykt2-4/+4
2013-04-30client: Fix up wrongly included typedefPatrik Flykt2-8/+15
2013-04-30client: Remove unneeded members from structsPatrik Flykt1-90/+70
Remove now obsolete memebers from the option struct and instead add a description field. Also remove the now unnecessary include.
2013-04-30client: Move commands around to more logical places in the tablePatrik Flykt1-4/+4
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 Flykt3-0/+37
Add completion support for connmanctl commands.
2013-04-23client: Follow coding stylePatrik Flykt3-5/+6
Follow coding style and use __connmanctl prefix for the commands() function.
2013-04-23client: Add support for tetheringPatrik Flykt1-0/+175
Add tethering support. For WiFi also set the SSID and passphrase if they have been specified on the command line. Check that setting both SSID and passphrase succeed before trying to enable tethering. After successfully setting SSID and passphrase for WiFi, use the boolean value parsing helper function return value to decide whether WiFi tethering is to be enabled, disabled or not modified. Fixes BMC#25886
2013-04-06client: Add --help, -h optionsPatrik Flykt1-1/+10
2013-04-05client: Fix help text, IPv4 setting uses netmaskPatrik Flykt1-1/+1
2013-04-04client: Move boolean parsing helper function to commands filePatrik Flykt3-27/+26
The helper function is not used elsewhere, thus move it.
2013-04-04client: Remove now obsolete functions and filesPatrik Flykt9-1231/+1
Remove now obsolete files from services. Remove data_manager, dbus and technology .h and .c files. Update Makefile.am accordingly.
2013-04-04client: Remove now obsolete functionPatrik Flykt1-6/+0
2013-04-04client: Use D-Bus helper functions when setting proxyPatrik Flykt1-41/+76
Append proxy server and exclude information in the callback functions.
2013-04-04client: Use helper functions for setting domains, nameservers and timeserversPatrik Flykt1-9/+39
2013-04-04client: Use helper functions for IP, autoconnect and removalPatrik Flykt1-23/+158
Use D-Bus helper functions for service remove, autoconnect and IP configuration. Create a common callback for all configuration properties. Count also the number of appended items and add it to the current index when done.
2013-04-04client: Use D-Bus helper function to implement services commandPatrik Flykt1-9/+49
Fixes BMC#25953 BMC#25974
2013-04-04client: Use D-Bus helper functions for Technology enabling/disablingPatrik Flykt1-26/+58
2013-04-04client: Add support functions for setting propertiesPatrik Flykt2-16/+213
Add support functions for setting basic, dictionary and array properties.
2013-04-04client: Use D-Bus helpers for Technology Scan method callPatrik Flykt1-12/+20
2013-04-04client: Use D-Bus helpers for Technology GetTechnologies method callPatrik Flykt1-1/+32
2013-04-04client: Use D-Bus helper functions for service connect and disconnectPatrik Flykt1-9/+39
2013-04-04client: Use D-Bus helper functions for state method callPatrik Flykt1-1/+18
2013-04-04client: Print out help header if non-interactivePatrik Flykt1-0/+8
2013-04-04client: Add calls to save and redraw input promptPatrik Flykt2-1/+12
2013-04-04client: Remove now obsolete client/interactive.[hc] filesPatrik Flykt2-151/+0
2013-04-04client: Remove readline handling from main.cPatrik Flykt1-104/+6
2013-04-04client: Handle exit and inprogress valuesPatrik Flykt1-6/+11
When exiting, return 1, when D-Bus method call is in progress return -EINPROGRESS. When exiting successfully return 0, when an error is encountered return the error value.
2013-04-04client: Delete the now obsolete monitor.[hc] filesPatrik Flykt5-392/+0
2013-04-04client: Reimplement monitor commandPatrik Flykt1-12/+171
Use generic D-Bus printing function to print the signals
2013-04-04client: Add input handlingPatrik Flykt3-0/+251
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.
2013-04-04client: Add pretty-printing for ServicesChanged signalPatrik Flykt2-2/+121
Create a set of helper functions for pretty-printing both the added and the removed services dictionaries in the ServicesChanged signal.
2013-04-04client: Add connmanctl D-Bus helper functionsPatrik Flykt2-0/+239
Add helper functions for pretty-printing D-Bus messages and making a method call.
2013-02-21client: Remove the now obsolete command parsing functionsPatrik Flykt3-48/+11
2013-02-21client: Remove unused functionsPatrik Flykt2-62/+0
Remove find_service() as it is no longer used and match_service_name() which was only used by find_service().
2013-02-21client: Factor out monitor commandPatrik Flykt1-129/+30
2013-02-21client: Create monitor helper functionsPatrik Flykt2-0/+94
2013-02-21client: Factor out technology enable and disable commandsPatrik Flykt1-40/+48
2013-02-21client: Wait for a reply from Manager APIPatrik Flykt1-2/+10
2013-02-21client: Wait for a reply from Technology APIPatrik Flykt1-6/+10
Also reduce logging.
2013-02-21client: Factor out scan commandPatrik Flykt1-12/+19
2013-02-21client: Reduce technology loggingPatrik Flykt1-8/+3
Reduce technology logging messages and modify the remaining one. Also free the DBusError.
2013-02-21client: Factor out disconnect commandPatrik Flykt1-12/+13
2013-02-21client: Factor out connect commandPatrik Flykt1-12/+13
2013-02-21client: Don't look up service on connect or disconnectPatrik Flykt1-16/+7
Attempt to connect or disconnect without looking up the service in advace. Fix memory leak and update the error message.
2013-02-21client: Factor out technologies commandPatrik Flykt1-9/+4