qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v8 34/35] fixup! qapi: Change visit_type_FOO() to no


From: Eric Blake
Subject: [Qemu-devel] [PATCH v8 34/35] fixup! qapi: Change visit_type_FOO() to no longer return partial objects
Date: Thu, 7 Jan 2016 16:02:33 -0700

[no change in commit message]

---
v9: fix bug in use of errp
v8: rebase to earlier changes
v7: rebase to earlier changes, enhance commit message, also fix
visit_type_str() and visit_type_any()
v6: rebase on top of earlier doc and formatting improvements, mention
that *obj can be uninitialized on entry to an input visitor, rework
semantics to keep valgrind happy on uninitialized input, break some
long lines
---
 qapi/qapi-visit-core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/qapi/qapi-visit-core.c b/qapi/qapi-visit-core.c
index 977df85..259e0cb 100644
--- a/qapi/qapi-visit-core.c
+++ b/qapi/qapi-visit-core.c
@@ -2,7 +2,7 @@
  * Core Definitions for QAPI Visitor Classes
  *
  * Copyright IBM, Corp. 2011
- * Copyright (C) 2015 Red Hat, Inc.
+ * Copyright (C) 2015-2016 Red Hat, Inc.
  *
  * Authors:
  *  Anthony Liguori   <address@hidden>
@@ -253,7 +253,7 @@ void visit_type_str(Visitor *v, const char *name, char 
**obj, Error **errp)
         assert(*obj);
     }
      */
-    v->type_str(v, name, obj, errp);
+    v->type_str(v, name, obj, &err);
     if (!visit_is_output(v) && err) {
         *obj = NULL;
     }
@@ -275,7 +275,7 @@ void visit_type_any(Visitor *v, const char *name, QObject 
**obj, Error **errp)
     if (visit_is_output(v)) {
         assert(*obj);
     }
-    v->type_any(v, name, obj, errp);
+    v->type_any(v, name, obj, &err);
     if (!visit_is_output(v) && err) {
         *obj = NULL;
     }
-- 
2.4.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]