On 9/10/26 00:36, Daniel P. Berrangé wrote:
@@ -161,9 +163,15 @@ static void qom_list_types_tramp(ObjectClass *klass, void 
*opaque)
      ObjectTypeInfo *info;
      ObjectClass *parent = object_class_get_parent(klass);
+ if (data->has_secure &&
+        data->secure != object_class_is_secure(klass)) {
+        return;
+    }
+
      info = g_malloc0(sizeof(*info));
      info->name = g_strdup(object_class_get_name(klass));
      info->has_abstract = info->abstract = object_class_is_abstract(klass);
+    info->has_secure = info->secure = object_class_is_secure(klass);

Why are you assigning to has_secure here? I thought that was just for the filter test above.

Call object_class_is_secure once.


r~

Reply via email to