summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2016-01-29 06:48:53 -0700
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:32:24 -0600
commit0581a76b5cb6beebf085378d5c051bc985c185da (patch)
tree700d123cc3be373d01ae1227c23b8f08e53a3495 /include
parent3af261e31df224216212b0a8be60655906529fb7 (diff)
downloadhqemu-0581a76b5cb6beebf085378d5c051bc985c185da.zip
hqemu-0581a76b5cb6beebf085378d5c051bc985c185da.tar.gz
qom: Use typedef for Visitor
No need to repeat 'struct Visitor' when we already have it in typedefs.h. Omitting the redundant 'struct' also makes a later patch easier to search for all object property callbacks that are associated with a Visitor. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <1454075341-13658-18-git-send-email-eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/qom/object.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/qom/object.h b/include/qom/object.h
index 70ce6a7..1820b02 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -18,14 +18,13 @@
#include <stdint.h>
#include <stdbool.h>
#include "qemu/queue.h"
+#include "qemu/typedefs.h"
#include "qapi/error.h"
#define Type QEMUType
#define class QEMUclass
#define typename QEMUtypename
-struct Visitor;
-
struct TypeImpl;
typedef struct TypeImpl *Type;
@@ -302,7 +301,7 @@ typedef struct InterfaceInfo InterfaceInfo;
* Called when trying to get/set a property.
*/
typedef void (ObjectPropertyAccessor)(Object *obj,
- struct Visitor *v,
+ Visitor *v,
void *opaque,
const char *name,
Error **errp);
@@ -1029,7 +1028,7 @@ void object_unparent(Object *obj);
*
* Reads a property from a object.
*/
-void object_property_get(Object *obj, struct Visitor *v, const char *name,
+void object_property_get(Object *obj, Visitor *v, const char *name,
Error **errp);
/**
@@ -1165,7 +1164,7 @@ void object_property_get_uint16List(Object *obj, const char *name,
*
* Writes a property to a object.
*/
-void object_property_set(Object *obj, struct Visitor *v, const char *name,
+void object_property_set(Object *obj, Visitor *v, const char *name,
Error **errp);
/**
OpenPOWER on IntegriCloud