qbool.c (7e0019a7196ebed177c95824875cf852e1a6f667) qbool.c (7dc847ebba953db90853d15f140c20eef74d4fb2)
1/*
2 * QBool Module
3 *
4 * Copyright IBM, Corp. 2009
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *

--- 41 unchanged lines hidden (view full) ---

50 return container_of(obj, QBool, base);
51}
52
53/**
54 * qbool_is_equal(): Test whether the two QBools are equal
55 */
56bool qbool_is_equal(const QObject *x, const QObject *y)
57{
1/*
2 * QBool Module
3 *
4 * Copyright IBM, Corp. 2009
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *

--- 41 unchanged lines hidden (view full) ---

50 return container_of(obj, QBool, base);
51}
52
53/**
54 * qbool_is_equal(): Test whether the two QBools are equal
55 */
56bool qbool_is_equal(const QObject *x, const QObject *y)
57{
58 return qobject_to_qbool(x)->value == qobject_to_qbool(y)->value;
58 return qobject_to(QBool, x)->value == qobject_to(QBool, y)->value;
59}
60
61/**
62 * qbool_destroy_obj(): Free all memory allocated by a
63 * QBool object
64 */
65void qbool_destroy_obj(QObject *obj)
66{
67 assert(obj != NULL);
59}
60
61/**
62 * qbool_destroy_obj(): Free all memory allocated by a
63 * QBool object
64 */
65void qbool_destroy_obj(QObject *obj)
66{
67 assert(obj != NULL);
68 g_free(qobject_to_qbool(obj));
68 g_free(qobject_to(QBool, obj));
69}
69}