1*7b1b5d19SPaolo Bonzini /* 2*7b1b5d19SPaolo Bonzini * QBool Module 3*7b1b5d19SPaolo Bonzini * 4*7b1b5d19SPaolo Bonzini * Copyright IBM, Corp. 2009 5*7b1b5d19SPaolo Bonzini * 6*7b1b5d19SPaolo Bonzini * Authors: 7*7b1b5d19SPaolo Bonzini * Anthony Liguori <aliguori@us.ibm.com> 8*7b1b5d19SPaolo Bonzini * 9*7b1b5d19SPaolo Bonzini * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 10*7b1b5d19SPaolo Bonzini * See the COPYING.LIB file in the top-level directory. 11*7b1b5d19SPaolo Bonzini * 12*7b1b5d19SPaolo Bonzini */ 13*7b1b5d19SPaolo Bonzini 14*7b1b5d19SPaolo Bonzini #ifndef QBOOL_H 15*7b1b5d19SPaolo Bonzini #define QBOOL_H 16*7b1b5d19SPaolo Bonzini 17*7b1b5d19SPaolo Bonzini #include <stdint.h> 18*7b1b5d19SPaolo Bonzini #include "qapi/qmp/qobject.h" 19*7b1b5d19SPaolo Bonzini 20*7b1b5d19SPaolo Bonzini typedef struct QBool { 21*7b1b5d19SPaolo Bonzini QObject_HEAD; 22*7b1b5d19SPaolo Bonzini int value; 23*7b1b5d19SPaolo Bonzini } QBool; 24*7b1b5d19SPaolo Bonzini 25*7b1b5d19SPaolo Bonzini QBool *qbool_from_int(int value); 26*7b1b5d19SPaolo Bonzini int qbool_get_int(const QBool *qb); 27*7b1b5d19SPaolo Bonzini QBool *qobject_to_qbool(const QObject *obj); 28*7b1b5d19SPaolo Bonzini 29*7b1b5d19SPaolo Bonzini #endif /* QBOOL_H */ 30