]> sigrok.org Git - pulseview.git/blobdiff - pv/samplingbar.cpp
Drop a few more unneeded 'extern "C"'.
[pulseview.git] / pv / samplingbar.cpp
index 8bdadbb149709697e738f26190656d4b3084380f..41e98be2653e67602a9eede6888d8662106edb0c 100644 (file)
 
 #include <boost/foreach.hpp>
 
-extern "C" {
 #include <libsigrok/libsigrok.h>
-}
 
 #include <QAction>
 
 #include "samplingbar.h"
 
-#include <pv/dialogs/hwcap.h>
+#include <pv/dialogs/deviceoptions.h>
 
 namespace pv {
 
@@ -177,7 +175,7 @@ void SamplingBar::update_sample_rate_selector()
        assert(_sample_rate_value_action);
        assert(_sample_rate_list_action);
 
-       if (sr_info_get(sdi->driver, SR_DI_SAMPLERATES,
+       if (sr_config_list(sdi->driver, SR_CONF_SAMPLERATE,
                (const void **)&samplerates, sdi) != SR_OK)
                return;
 
@@ -214,7 +212,7 @@ void SamplingBar::configure()
        sr_dev_inst *const sdi = get_selected_device();
        assert(sdi);
 
-       pv::dialogs::HwCap dlg(this, sdi);
+       pv::dialogs::DeviceOptions dlg(this, sdi);
        dlg.exec();
 }