]> Git Repo - qemu.git/blobdiff - crypto/secret.c
qapi: Change data type of the FOO_lookup generated for enum FOO
[qemu.git] / crypto / secret.c
index be736f2cd56ca48c6a4db714954e8d903279395e..388abd7df5f0d78fb71cc95e4b23f492f5fc2c76 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/osdep.h"
 #include "crypto/secret.h"
 #include "crypto/cipher.h"
+#include "qapi/error.h"
 #include "qom/object_interfaces.h"
 #include "qemu/base64.h"
 #include "trace.h"
@@ -377,7 +378,7 @@ qcrypto_secret_class_init(ObjectClass *oc, void *data)
                                    NULL);
     object_class_property_add_enum(oc, "format",
                                    "QCryptoSecretFormat",
-                                   QCryptoSecretFormat_lookup,
+                                   &QCryptoSecretFormat_lookup,
                                    qcrypto_secret_prop_get_format,
                                    qcrypto_secret_prop_set_format,
                                    NULL);
This page took 0.024361 seconds and 4 git commands to generate.