summaryrefslogtreecommitdiff
path: root/client/commands.c
AgeCommit message (Collapse)AuthorFilesLines
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang1-11/+311
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-108/+1125
2013-06-13client: Add vpnagent command to register and unregister VPN AgentPatrik Flykt1-0/+30
2013-06-13client: Don't handle Agent messages in monitor codePatrik Flykt1-0/+4
Agent messages need to be handled in the agent code, ignore them when they get captured in the monitor code.
2013-06-07client: Add VPN monitoring supportPatrik Flykt1-38/+84
When adding VPN monitoring capabilities, also clean up the monitor code.
2013-06-07client: Add support for displaying VPN connectionsPatrik Flykt1-4/+75
Show a list of VPN connections known to the VPN daemon. Also allow D-Bus path names to start with numbers, as it is fine with the D-Bus library to define such path names. Fix up help command pretty-printing as the VPN command is slightly longer.
2013-06-07client: Add parameter to specify D-Bus service for method callPatrik Flykt1-12/+14
2013-05-24client: Accept correctly spelled option namePatrik Flykt1-2/+4
Accept also correctly spelled version of 'preferred' option.
2013-05-22client: Fix minor issues in D-Bus path name checkingPatrik Flykt1-2/+3
2013-05-22client: Fix index for IPv6 configuration optionPatrik Flykt1-1/+1
2013-05-08client: Do service name syntax check when a name is specifiedPatrik Flykt1-3/+3
2013-05-06client: Check that strings passed to D-Bus to contain valid charsJukka Rissanen1-0/+45
D-Bus aborts if we feed invalid characters to it. So do some sanity check before that.
2013-05-06client: Newline missing after printing scan error messageJukka Rissanen1-1/+1
2013-05-03client: Add agent commandPatrik Flykt1-0/+30
2013-05-03client: Enable method call return to exit or continue runningPatrik Flykt1-22/+46
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-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: Add command completionPatrik Flykt1-0/+22
Add completion support for connmanctl commands.
2013-04-23client: Follow coding stylePatrik Flykt1-1/+1
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-05client: Fix help text, IPv4 setting uses netmaskPatrik Flykt1-1/+1
2013-04-04client: Move boolean parsing helper function to commands filePatrik Flykt1-0/+26
The helper function is not used elsewhere, thus move it.
2013-04-04client: Remove now obsolete functions and filesPatrik Flykt1-6/+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: 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 Flykt1-1/+5
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 Flykt1-1/+0
2013-04-04client: Reimplement monitor commandPatrik Flykt1-12/+171
Use generic D-Bus printing function to print the signals
2013-02-21client: Remove the now obsolete command parsing functionsPatrik Flykt1-26/+1
2013-02-21client: Factor out monitor commandPatrik Flykt1-129/+30
2013-02-21client: Factor out technology enable and disable commandsPatrik Flykt1-40/+48
2013-02-21client: Factor out scan commandPatrik Flykt1-12/+19
2013-02-21client: Factor out disconnect commandPatrik Flykt1-12/+13
2013-02-21client: Factor out connect commandPatrik Flykt1-12/+13
2013-02-21client: Factor out technologies commandPatrik Flykt1-9/+4
2013-02-21client: Factor out state commandPatrik Flykt1-9/+4
2013-02-21client: Print out any errors on command executionPatrik Flykt1-2/+6
2013-02-21client: Factor out config commandPatrik Flykt1-110/+130
Using the lengths returned from the property setting functions more than one config option can be specified on the command line. Use the simple argument parsing function as getopt is slightly limited in functionality.
2013-02-21client: Factor out services commandPatrik Flykt1-60/+45
Update the help printout as well, '--properties' is not mandatory. Add a simple argument parsing function.
2013-02-21client: Factor out help implementationPatrik Flykt1-70/+82
Use command table to produce help text. Add description texts for various options and use both option and description arrays to produce option help texts. Remove old help printing function.