]> sigrok.org Git - pulseview.git/blobdiff - pv/binding/inputoutput.hpp
binding/prop: Add a description field.
[pulseview.git] / pv / binding / inputoutput.hpp
index 3c64781f2ffa17ecd8f2f8f1979f0696e0b72686..acfb61cb6b401ceaaa4b839088cb0b36803b6387 100644 (file)
@@ -62,12 +62,13 @@ private:
        /**
         * A helper function to bind an option list to and enum property.
         * @param name the name of the property.
+        * @param name the description of the property.
         * @param values the list of values.
         * @param getter the getter that will read the values out of the map.
         * @param setter the setter that will set the values into the map.
         */
        shared_ptr<prop::Property> bind_enum(const QString &name,
-               const vector<Glib::VariantBase> &values,
+               const QString &desc, const vector<Glib::VariantBase> &values,
                prop::Property::Getter getter, prop::Property::Setter setter);
 
 private:
@@ -77,7 +78,7 @@ private:
        map<string, Glib::VariantBase> options_;
 };
 
-} // binding
-} // pv
+}  // namespace binding
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_BINDING_INPUTOUTPUT_H