/src/qemu/qobject/qobject-internal.h
Line | Count | Source |
1 | | /* |
2 | | * QObject internals |
3 | | * |
4 | | * Copyright (C) 2015 Red Hat, Inc. |
5 | | * |
6 | | * This work is licensed under the terms of the GNU LGPL, version 2.1 |
7 | | * or later. See the COPYING.LIB file in the top-level directory. |
8 | | */ |
9 | | |
10 | | #ifndef QOBJECT_INTERNAL_H |
11 | | #define QOBJECT_INTERNAL_H |
12 | | |
13 | | #include "qobject/qobject.h" |
14 | | |
15 | | static inline void qobject_init(QObject *obj, QType type) |
16 | 25.4M | { |
17 | 25.4M | assert(QTYPE_NONE < type && type < QTYPE__MAX); |
18 | 25.4M | obj->base.refcnt = 1; |
19 | 25.4M | obj->base.type = type; |
20 | 25.4M | } Unexecuted instantiation: qnull.c:qobject_init Line | Count | Source | 16 | 24.2M | { | 17 | 24.2M | assert(QTYPE_NONE < type && type < QTYPE__MAX); | 18 | 24.2M | obj->base.refcnt = 1; | 19 | 24.2M | obj->base.type = type; | 20 | 24.2M | } |
Line | Count | Source | 16 | 612k | { | 17 | 612k | assert(QTYPE_NONE < type && type < QTYPE__MAX); | 18 | 612k | obj->base.refcnt = 1; | 19 | 612k | obj->base.type = type; | 20 | 612k | } |
Line | Count | Source | 16 | 505k | { | 17 | 505k | assert(QTYPE_NONE < type && type < QTYPE__MAX); | 18 | 505k | obj->base.refcnt = 1; | 19 | 505k | obj->base.type = type; | 20 | 505k | } |
Line | Count | Source | 16 | 875 | { | 17 | 875 | assert(QTYPE_NONE < type && type < QTYPE__MAX); | 18 | 875 | obj->base.refcnt = 1; | 19 | 875 | obj->base.type = type; | 20 | 875 | } |
Line | Count | Source | 16 | 120k | { | 17 | 120k | assert(QTYPE_NONE < type && type < QTYPE__MAX); | 18 | 120k | obj->base.refcnt = 1; | 19 | 120k | obj->base.type = type; | 20 | 120k | } |
Unexecuted instantiation: qobject.c:qobject_init |
21 | | |
22 | | void qbool_destroy_obj(QObject *obj); |
23 | | bool qbool_is_equal(const QObject *x, const QObject *y); |
24 | | |
25 | | void qdict_destroy_obj(QObject *obj); |
26 | | bool qdict_is_equal(const QObject *x, const QObject *y); |
27 | | |
28 | | void qlist_destroy_obj(QObject *obj); |
29 | | bool qlist_is_equal(const QObject *x, const QObject *y); |
30 | | |
31 | | bool qnull_is_equal(const QObject *x, const QObject *y); |
32 | | |
33 | | void qnum_destroy_obj(QObject *obj); |
34 | | bool qnum_is_equal(const QObject *x, const QObject *y); |
35 | | |
36 | | void qstring_destroy_obj(QObject *obj); |
37 | | bool qstring_is_equal(const QObject *x, const QObject *y); |
38 | | |
39 | | #endif |