mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 19:56:57 +00:00
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:
parent
b978871f20
commit
5b6f0cbdb7
|
@ -17,10 +17,9 @@
|
||||||
#include "glib_compat.h"
|
#include "glib_compat.h"
|
||||||
#include "unicorn/platform.h"
|
#include "unicorn/platform.h"
|
||||||
#include "qemu/queue.h"
|
#include "qemu/queue.h"
|
||||||
|
#include "qemu/typedefs.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
|
|
||||||
struct Visitor;
|
|
||||||
|
|
||||||
struct TypeImpl;
|
struct TypeImpl;
|
||||||
typedef struct TypeImpl *Type;
|
typedef struct TypeImpl *Type;
|
||||||
|
|
||||||
|
@ -299,12 +298,12 @@ struct uc_struct;
|
||||||
* Called when trying to get/set a property.
|
* Called when trying to get/set a property.
|
||||||
*/
|
*/
|
||||||
typedef void (ObjectPropertyAccessor)(struct uc_struct *uc, Object *obj,
|
typedef void (ObjectPropertyAccessor)(struct uc_struct *uc, Object *obj,
|
||||||
struct Visitor *v,
|
Visitor *v,
|
||||||
void *opaque,
|
void *opaque,
|
||||||
const char *name,
|
const char *name,
|
||||||
Error **errp);
|
Error **errp);
|
||||||
typedef int (ObjectPropertySetAccessor)(struct uc_struct *uc, Object *obj,
|
typedef int (ObjectPropertySetAccessor)(struct uc_struct *uc, Object *obj,
|
||||||
struct Visitor *v,
|
Visitor *v,
|
||||||
void *opaque,
|
void *opaque,
|
||||||
const char *name,
|
const char *name,
|
||||||
Error **errp);
|
Error **errp);
|
||||||
|
@ -883,7 +882,7 @@ void object_unparent(struct uc_struct *uc, Object *obj);
|
||||||
*
|
*
|
||||||
* Reads a property from a object.
|
* 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);
|
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.
|
* 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);
|
Error **errp);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue