add NMMetered constants

pull/25902/head
Cameron Clough 3 years ago
parent 28821da57c
commit b957da9248
No known key found for this signature in database
GPG Key ID: 48B6A0DB1DE6C320
  1. 7
      selfdrive/ui/qt/offroad/networkmanager.h

@ -36,3 +36,10 @@ const int NM_DEVICE_TYPE_WIFI = 2;
const int NM_DEVICE_TYPE_MODEM = 8;
const int NM_DEVICE_STATE_REASON_SUPPLICANT_DISCONNECT = 8;
const int DBUS_TIMEOUT = 100;
// https://developer-old.gnome.org/NetworkManager/1.26/nm-dbus-types.html#NMMetered
const int NM_METERED_UNKNOWN = 0;
const int NM_METERED_YES = 1;
const int NM_METERED_NO = 2;
const int NM_METERED_GUESS_YES = 3;
const int NM_METERED_GUESS_NO = 4;

Loading…
Cancel
Save