2
0

qbool.h 535 B

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