inline void WifiListWidget::UpdateScanResults() { WifiVisibleNetwork *buffer = new WifiVisibleNetwork[networks.capacity()]; int n = wpa_supplicant.ScanResults(buffer, networks.capacity()); if (n >= 0) MergeList(buffer, n); delete[] buffer; }
inline void WifiListWidget::UpdateConfigured() { WifiConfiguredNetworkInfo *buffer = new WifiConfiguredNetworkInfo[networks.capacity()]; int n = wpa_supplicant.ListNetworks(buffer, networks.capacity()); if (n >= 0) MergeList(buffer, n); delete[] buffer; }