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.

Backports commit 4fa45492c3387c0fa51e8e81160ac9a7814f44a2 from qemu
This commit is contained in:
Eric Blake 2018-02-19 22:26:44 -05:00 committed by Lioncash
parent b978871f20
commit 5b6f0cbdb7
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -17,10 +17,9 @@
#include "glib_compat.h"
#include "unicorn/platform.h"
#include "qemu/queue.h"
#include "qemu/typedefs.h"
#include "qapi/error.h"
struct Visitor;
struct TypeImpl;
typedef struct TypeImpl *Type;
@ -299,12 +298,12 @@ struct uc_struct;
* Called when trying to get/set a property.
*/
typedef void (ObjectPropertyAccessor)(struct uc_struct *uc, Object *obj,
struct Visitor *v,
Visitor *v,
void *opaque,
const char *name,
Error **errp);
typedef int (ObjectPropertySetAccessor)(struct uc_struct *uc, Object *obj,
struct Visitor *v,
Visitor *v,
void *opaque,
const char *name,
Error **errp);
@ -883,7 +882,7 @@ void object_unparent(struct uc_struct *uc, Object *obj);
*
* Reads a property from a object.
*/
void object_property_get(struct uc_struct *uc, Object *obj, struct Visitor *v, const char *name,
void object_property_get(struct uc_struct *uc, Object *obj, Visitor *v, const char *name,
Error **errp);
/**
@ -991,7 +990,7 @@ int64_t object_property_get_int(struct uc_struct *uc, Object *obj, const char *n
*
* Writes a property to a object.
*/
void object_property_set(struct uc_struct *uc, Object *obj, struct Visitor *v, const char *name,
void object_property_set(struct uc_struct *uc, Object *obj, Visitor *v, const char *name,
Error **errp);
/**