~dannf/qemu-linaro/qemu-highbank-ppa

« back to all changes in this revision

Viewing changes to include/qemu/qom-qobject.h

  • Committer: Steve Langasek
  • Date: 2012-03-15 21:13:19 UTC
  • mfrom: (0.1.15)
  • Revision ID: steve.langasek@canonical.com-20120315211319-f1j3ot1ihx30b2s9
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * QEMU Object Model - QObject wrappers
 
3
 *
 
4
 * Copyright (C) 2012 Red Hat, Inc.
 
5
 *
 
6
 * Author: Paolo Bonzini <pbonzini@redhat.com>
 
7
 *
 
8
 * This work is licensed under the terms of the GNU GPL, version 2 or later.
 
9
 * See the COPYING file in the top-level directory.
 
10
 *
 
11
 */
 
12
 
 
13
#ifndef QEMU_QOM_QOBJECT_H
 
14
#define QEMU_QOM_QOBJECT_H
 
15
 
 
16
#include "qemu/object.h"
 
17
 
 
18
/*
 
19
 * object_property_get_qobject:
 
20
 * @obj: the object
 
21
 * @name: the name of the property
 
22
 * @errp: returns an error if this function fails
 
23
 *
 
24
 * Returns: the value of the property, converted to QObject, or NULL if
 
25
 * an error occurs.
 
26
 */
 
27
struct QObject *object_property_get_qobject(Object *obj, const char *name,
 
28
                                            struct Error **errp);
 
29
 
 
30
/**
 
31
 * object_property_set_qobject:
 
32
 * @obj: the object
 
33
 * @ret: The value that will be written to the property.
 
34
 * @name: the name of the property
 
35
 * @errp: returns an error if this function fails
 
36
 *
 
37
 * Writes a property to a object.
 
38
 */
 
39
void object_property_set_qobject(Object *obj, struct QObject *qobj,
 
40
                                 const char *name, struct Error **errp);
 
41
 
 
42
#endif