NetworkManager/clients/common
Thomas Haller f6237b3f24 cli: cleanup _get_fcn_vlan_xgress_priority_map()
- merge the pointless helper function vlan_priorities_to_string()
  into the only caller _get_fcn_vlan_xgress_priority_map().

- minor cleanups, like setting out-is-default if num==0, not
  based on whether we have a non-empty string. There is not difference
  in practice, because nm_setting_vlan_get_priority() never fails.
  Hence they are identical. But nm_setting_vlan_get_priority() has
  an API that allows it to fail, so we should declare the default
  depending on the number of vlan priorities.

- don't allocate the temporary GString instance if we won't need it.

- only append the delimiter if needed, and not truncate it afterwards.
  It might have even worse performance this way, but it feels more
  correct to me.

- also cache the result of nm_setting_vlan_get_num_priorities().
  NMSettingVlan's implementation is horrible and uses a GSList to
  track the list of priorities. This makes it relatively expensive
  to call get-num-priorities repeatedly (and pointless).

(cherry picked from commit bbfd366805)
2019-04-18 18:51:21 +02:00
..
tests clients/tests: add wireguard import tests 2019-03-07 22:22:39 +01:00
meson.build shared: add "shared/nm-libnm-core-utils.h" utils 2019-03-25 09:12:32 +01:00
nm-client-utils.c cli: don't treat empty string as valid number in nmc_string_to_uint_base() 2019-03-25 09:12:32 +01:00
nm-client-utils.h libnm,cli: move cleanup macros to "shared/nm-libnm-core-utils.h" 2019-03-25 09:12:32 +01:00
nm-meta-setting-access.c clients: only ask secrets for settings that require them 2019-04-02 11:20:28 +02:00
nm-meta-setting-access.h clients: only ask secrets for settings that require them 2019-04-02 11:20:28 +02:00
nm-meta-setting-desc.c cli: cleanup _get_fcn_vlan_xgress_priority_map() 2019-04-18 18:51:21 +02:00
nm-meta-setting-desc.h cli: refactor multilist property handling of "match.interface-names" 2019-04-18 18:51:21 +02:00
nm-polkit-listener.c all: drop unnecessary includes of <errno.h> and <string.h> 2019-02-12 08:50:28 +01:00
nm-polkit-listener.h docs: misc. typos 2018-09-15 09:08:03 +02:00
nm-secret-agent-simple.c clients: fix assertion when requesting gsm pin secret 2019-04-11 13:50:09 +02:00
nm-secret-agent-simple.h libnm: add NMWireGuardPeer and libnm support for peers 2019-02-22 11:00:10 +01:00
nm-vpn-helpers.c cli: cleanup nm_vpn_openconnect_authenticate_helper() 2019-04-10 15:05:57 +02:00
nm-vpn-helpers.h cli/wireguard: add import functionality for WireGuard 2019-03-07 22:22:39 +01:00
settings-docs.h.in all: support bridge vlan ranges 2019-04-18 09:53:18 +02:00
settings-docs.xsl cli: fix marking settings docs for translation 2017-04-23 23:45:02 +02:00