diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-17 18:19:50 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-19 08:31:32 +0100 |
commit | 14cccb618508a0aa70eb9ccf366703a019a45ff0 (patch) | |
tree | 4ee8b44d930b712202ff302439e41a941aba91c5 /include/qom/qom-qobject.h | |
parent | caf71f86a3de97394bcc5b06549012b7dc65fe60 (diff) | |
download | qemu-14cccb618508a0aa70eb9ccf366703a019a45ff0.zip qemu-14cccb618508a0aa70eb9ccf366703a019a45ff0.tar.gz qemu-14cccb618508a0aa70eb9ccf366703a019a45ff0.tar.bz2 |
qom: move include files to include/qom/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qom/qom-qobject.h')
-rw-r--r-- | include/qom/qom-qobject.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/qom/qom-qobject.h b/include/qom/qom-qobject.h new file mode 100644 index 0000000..77cd717 --- /dev/null +++ b/include/qom/qom-qobject.h @@ -0,0 +1,42 @@ +/* + * QEMU Object Model - QObject wrappers + * + * Copyright (C) 2012 Red Hat, Inc. + * + * Author: Paolo Bonzini <pbonzini@redhat.com> + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + * + */ + +#ifndef QEMU_QOM_QOBJECT_H +#define QEMU_QOM_QOBJECT_H + +#include "qom/object.h" + +/* + * object_property_get_qobject: + * @obj: the object + * @name: the name of the property + * @errp: returns an error if this function fails + * + * Returns: the value of the property, converted to QObject, or NULL if + * an error occurs. + */ +struct QObject *object_property_get_qobject(Object *obj, const char *name, + struct Error **errp); + +/** + * object_property_set_qobject: + * @obj: the object + * @ret: The value that will be written to the property. + * @name: the name of the property + * @errp: returns an error if this function fails + * + * Writes a property to a object. + */ +void object_property_set_qobject(Object *obj, struct QObject *qobj, + const char *name, struct Error **errp); + +#endif |