Tim Kourt
9944b7b3b5
client: add noninteractive support into proxy
2018-08-06 12:42:06 -05:00
Tim Kourt
1d931d8a68
client: add noninteractive support for cmds
2018-08-06 12:42:03 -05:00
Tim Kourt
ef2878d5ee
client: rename generic cmd list
2018-08-06 12:32:49 -05:00
Tim Kourt
2ba4efe39e
client: add new command statuses
...
Split CMD_STATUS_OK into CMD_STATUS_DONE and CMD_STATUS_TRIGGERED.
The split is necessary for the enablement of noninteractive mode.
2018-08-06 12:32:22 -05:00
Tim Kourt
ce4a272186
client: move static array inits out of display_init()
2018-08-03 14:42:04 -05:00
Tim Kourt
664723f427
client: remove unused ordered networks from device
2018-08-02 20:54:41 -05:00
Tim Kourt
273d5d264a
client: truncate long property strings
...
provide accessors for the vendor and model properties
2018-08-02 20:54:32 -05:00
Tim Kourt
8238ca7fce
client: destroy builder on append failure
2018-08-02 20:54:28 -05:00
Tim Kourt
a3bc408ae4
client: truncate value string to the column length
2018-08-02 20:54:25 -05:00
Andrew Zaborowski
f6aa2c7236
client: Fix comparing current prompt against previous
...
We'd add the new command propmpt to history if it was different from
what current_history() returned which may not be the last command
executed, so we'd possibly add multiple identical commands to history
and skip some that were new. Instead compare against
history_get(last index).
Also remove an always-true part of the condition on the next line.
2018-08-01 09:32:00 -05:00
Andrew Zaborowski
2e08b3e129
client: Update known-networks commands with DBus API changes
2018-07-31 11:57:52 -05:00
Andrew Zaborowski
15ade259e6
client: Fix parsing commands with no "entity" part
...
The code would assume that a command with argc >= 3 would always be
composed of <family name> <entity> <command> and thus
"known-networks forget <ssid>" could not be executed. Instead of
checking argc >= 3 check whether command->entity is non-NULL.
2018-07-31 11:38:35 -05:00
Andrew Zaborowski
18e672fa2f
client: Make sure network_args.type is initialised
...
Otherwise match_by_device_and_args might segfault.
2018-07-31 11:24:33 -05:00
Andrew Zaborowski
61bdb7e19f
client: Free previous property values on update
2018-07-31 11:23:04 -05:00
Andrew Zaborowski
242a13df5a
client: Drop known network LastSeenTime property
2018-07-31 11:20:09 -05:00
Tim Kourt
e3737fd44e
client: fix mem leak after arg parsing
2018-07-30 13:18:35 -05:00
Tim Kourt
efe45e4180
client: add client support for AdHoc
2018-07-30 09:00:57 -05:00
Tim Kourt
727a44aab4
client: add AdHoc concept into device
2018-07-30 09:00:57 -05:00
Tim Kourt
0fec184eae
client: add client support for AP
2018-07-30 09:00:57 -05:00
Tim Kourt
f9dc72088e
client: add access point concept into device
2018-07-30 09:00:57 -05:00
Tim Kourt
6c80e1e277
client: add AdHoc and AccessPoint Dbus interfaces
2018-07-30 09:00:57 -05:00
Denis Kenzior
67e590cfeb
client: Utilize l_parse_args
2018-07-30 08:59:55 -05:00
Tim Kourt
527c0060bc
client: add property completion for set-property cmd
...
In addition, it defines the value options for the Power, WDS and
Mode properties. The builder variant appenders for 'Set' cmd
are also defined here.
2018-07-25 16:05:18 -05:00
Tim Kourt
5549219217
client: switch adapter to use proxy property completion
...
In addition, it defines the value options for the Power property
2018-07-25 16:05:16 -05:00
Tim Kourt
687dcc6145
client: add variant appender for the on/off properties
2018-07-25 16:05:12 -05:00
Tim Kourt
6ba707fca8
client: add completion for proxy property names and values
2018-07-25 16:05:09 -05:00
Tim Kourt
1e78ed5a7d
client: add property setter for device
2018-07-25 16:04:59 -05:00
Tim Kourt
f7171665d1
client: add property setter for adapter
2018-07-25 15:26:48 -05:00
Tim Kourt
d3742ba651
client: add property setter for proxy
...
v2: renamed builder_append_value_variant -> append
2018-07-25 15:26:31 -05:00
Tim Kourt
c5cf3b083f
client: add cmd line token finder
...
This allows to inspect the cmd line for the existence of a provided
token. This enables the completers to look back to what was entered
before them and make decisions based on that information. For
example, this can be used in completion of the property values
to identify the property for which the value is being completed.
2018-07-25 11:47:10 -05:00
Tim Kourt
bb1a0adec7
client: introduce proxy property utils
...
All of the shared functions related to the processing of the
proxy properties will reside in this collection.
2018-07-25 11:21:14 -05:00
Tim Kourt
2df7f76393
client: rename all local setters to follow nomenclature
2018-07-25 11:17:32 -05:00
Tim Kourt
46a188eb39
client: rename property setters
...
As the local objects are updated from DBus, the new name is more
appropriate for the purpose.
2018-07-25 11:16:54 -05:00
Tim Kourt
dbe36df5ae
client: remove wsc capability indicator
2018-07-25 11:16:33 -05:00
Tim Kourt
a865f60c54
client: add 'Mode' property to device
2018-07-25 11:16:23 -05:00
Denis Kenzior
49d011dabe
client: Use connect-hidden instead of create-hidden
2018-07-13 12:36:09 -05:00
Tim Kourt
f545f94581
client: add support for the hidden networks
2018-07-11 17:23:54 -05:00
Antonio Quartulli
8fdce84abb
client: add support for WDS Device property
2018-06-13 21:20:44 -05:00
Tim Kourt
bb4df24fc5
client: workaround for readline prompt setting issue
2018-05-31 19:40:22 -05:00
Tim Kourt
33da1d77c2
client: change connect cmd logic
...
Change connection logic form using a list of the previously
obtained ordered networks to use network proxy objects.
This excludes the need to run get-networks command before
the connect command.
2018-05-31 19:39:58 -05:00
Tim Kourt
8a5927dc81
client: add network selection by device and args
2018-05-31 19:39:46 -05:00
Tim Kourt
0b84e31c40
client: change network_connect param type
...
Take network proxy object instead of just a path into
network_connect
2018-05-31 19:39:22 -05:00
Tim Kourt
b0a681d5b3
client: autocompletion for the network names
2018-05-31 19:38:50 -05:00
Tim Kourt
61ac55872e
client: introduce a concept of a default device
2018-05-31 19:36:59 -05:00
Tim Kourt
fd23c87110
client: define default entity setter for cmd families
2018-05-31 19:30:44 -05:00
Tim Kourt
e71687e901
client: add proxy_interface comparison func.
2018-05-31 19:29:51 -05:00
Tim Kourt
53124e8fff
client: abstract the value parameter for completion
2018-05-31 19:29:15 -05:00
Tim Kourt
0716334e61
client: Enable agent to control its prompt
2018-05-04 19:37:38 -05:00
Tim Kourt
3dc9f69c46
client: Expand agent functionality
...
Expand agent to support the inquiries for the
usernames and passwords
2018-05-04 19:37:00 -05:00
Tim Kourt
394e274f5f
client: mask passphrase input
2018-05-03 16:34:26 -05:00
Tim Kourt
f9973a37f9
client: add new line
2018-05-03 16:00:23 -05:00
Tim Kourt
2c18646466
client: enable agent
2018-05-03 16:00:23 -05:00
Tim Kourt
8b4d4d17ec
client: implement agent API
2018-05-03 16:00:23 -05:00
Tim Kourt
2817aeb35d
client: disable cmd completion for the agent prompt
2018-05-03 16:00:23 -05:00
Tim Kourt
af14445509
client: add agent prompt to display
2018-05-03 16:00:23 -05:00
Tim Kourt
85a1678147
client: introduce agent
2018-05-03 16:00:23 -05:00
Tim Kourt
d1a00d9b34
client: implement agent-manager API
2018-05-03 16:00:23 -05:00
Tim Kourt
5c765bc886
client: switch to network argument parser
2018-03-28 14:43:58 -05:00
Tim Kourt
f1c5134448
client: add network args parser
2018-03-28 14:32:57 -05:00
Marcel Holtmann
f41fa52f99
client: Set saveptr argument of strtok_r to NULL for initial invocation
2017-08-30 23:17:53 +02:00
Tim Kourt
9bb19526d9
client: Exclude unnecessary checks
...
Arrays are guaranteed to be initialized during
the compilation time.
2017-08-23 16:26:05 -05:00
Tim Kourt
8071b51168
client: do display quit on exit
2017-06-09 14:08:21 -05:00
Tim Kourt
3bfbe72e33
client: Disable cmd refresh on console resize
2017-06-09 14:08:21 -05:00
Tim Kourt
2fb671e0d4
client: add flashing indicator for the updatable tables
2017-06-09 14:08:21 -05:00
Tim Kourt
5c9ed0ccf0
client: Allow switching between bars and dbms for rssi output
2017-05-30 17:19:54 -05:00
Tim Kourt
e6d4a34773
client: Add caption for misc. cmds
2017-05-30 17:14:08 -05:00
Denis Kenzior
f64dea81b8
client: Fix dbms to bar conversion utility
...
Andrew: Note the values aren't guaranteed to be round 100 multiples, so
-6050 is also possible.
Instead of a switch case, use if statements instead
2017-05-19 19:22:32 -05:00
Tim Kourt
17cad2777d
client: convert dbms value into stars
2017-05-19 18:06:17 -05:00
Tim Kourt
02f47a164c
client: fix dependency unbind logic
2017-05-19 18:05:16 -05:00
Tim Kourt
e42aee89b1
client: display table header for the empty lists
2017-05-19 18:04:43 -05:00
Tim Kourt
305af40636
client: fix display completion leak
2017-05-12 17:46:44 -05:00
Tim Kourt
89351da35f
client: Add WSC list command
2017-05-12 17:46:44 -05:00
Tim Kourt
b530f4fb77
client: add completion for the cmds without entity
2017-05-12 17:46:44 -05:00
Tim Kourt
8eaeb66220
client: check for WSC-capability in arg completion
2017-05-12 17:46:44 -05:00
Tim Kourt
006e60d291
client: allow interface search by NULL property 'value'
2017-05-12 17:46:44 -05:00
Tim Kourt
14a18ce3df
client: Add basic ops for wsc
2017-05-12 17:46:44 -05:00
Tim Kourt
1fed159f4a
client: fix leaks
2017-05-12 14:38:03 -05:00
Tim Kourt
681f9355ad
client: fix typos
2017-05-02 16:43:24 -05:00
Tim Kourt
cb40e36ea1
client: introduce psk agent manager
2017-05-02 14:11:00 -05:00
Tim Kourt
8080789d77
client: add properties interface into ignorable list
2017-05-01 16:57:56 -05:00
Tim Kourt
893a0e67b2
client: add subscription for the property updates
2017-05-01 13:46:49 -05:00
Tim Kourt
03f517a1f7
client: Add WSC-capable indication for device
2017-05-01 13:44:00 -05:00
Tim Kourt
53980c98d8
client: WSC 'start-pin' command
2017-05-01 13:43:31 -05:00
Tim Kourt
e4261d164d
client: WSC start-user-pin command
2017-05-01 13:43:22 -05:00
Tim Kourt
c6045ff100
client: WSC PushButton command
2017-05-01 13:43:14 -05:00
Tim Kourt
ff5e3f3b52
client: WSC cancel command
2017-05-01 13:42:37 -05:00
Tim Kourt
87b4f282db
client: device dependency binder
2017-05-01 13:42:25 -05:00
Tim Kourt
b1d261a790
client: add WSC argument completers
2017-05-01 13:42:21 -05:00
Tim Kourt
ccb3afc1f1
client: define WSC commands
2017-05-01 13:41:51 -05:00
Tim Kourt
ee369bacc9
client introduce wsc interface
2017-05-01 13:40:14 -05:00
Tim Kourt
b2ea962a67
client: remove unused function
2017-04-28 15:02:15 -05:00
Tim Kourt
6a06623b0d
client: exclude unicode characters
2017-04-28 13:27:05 -05:00
Tim Kourt
cd3d9a26c1
client: add null check for adapter proxy
2017-04-28 13:27:05 -05:00
Tim Kourt
44e9e604f6
client: change str representation of bool fields
2017-04-28 13:27:05 -05:00
Tim Kourt
d5c7fea13d
client: Implement 'list, show' adapter commands
2017-04-27 15:14:22 -05:00
Tim Kourt
81172d0932
client: Define commands for adapter interface
2017-04-27 15:14:05 -05:00
Tim Kourt
636bdaeb5d
client: Add basic ops. for adapter interface
2017-04-27 15:13:53 -05:00
Tim Kourt
0a68431ef9
client: Add adapter argument completers
2017-04-27 15:13:28 -05:00
Tim Kourt
6d210d5aa4
client: Add properties for adapter interface
2017-04-27 15:12:27 -05:00
Tim Kourt
60c4025cdf
client: Introduce adapter interface
2017-04-27 15:11:59 -05:00