qbool.h 561 B

12345678910111213141516171819202122232425262728293031
  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 "qobject/qobject.h"
  16. struct QBool {
  17. struct QObjectBase_ base;
  18. bool value;
  19. };
  20. void qbool_unref(QBool *q);
  21. G_DEFINE_AUTOPTR_CLEANUP_FUNC(QBool, qbool_unref)
  22. QBool *qbool_from_bool(bool value);
  23. bool qbool_get_bool(const QBool *qb);
  24. #endif /* QBOOL_H */