On 1/27/23 05:07, Jean-Philippe Brucker wrote:
+ object_class_property_add_str(oc, "measurement-algo", + rme_get_measurement_algo, + rme_set_measurement_algo); + object_class_property_set_description(oc, "measurement-algo", + "Realm measurement algorithm ('sha256', 'sha512')");
Better as object_property_add_enum, so that you don't duplicate parsing. C.f. NetFilterDirection. r~