2
0

qint.h 539 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * QInt Module
  3. *
  4. * Copyright (C) 2009 Red Hat Inc.
  5. *
  6. * Authors:
  7. * Luiz Capitulino <lcapitulino@redhat.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. #ifndef QINT_H
  13. #define QINT_H
  14. #include <stdint.h>
  15. #include "qobject.h"
  16. typedef struct QInt {
  17. QObject_HEAD;
  18. int64_t value;
  19. } QInt;
  20. QInt *qint_from_int(int64_t value);
  21. int64_t qint_get_int(const QInt *qi);
  22. QInt *qobject_to_qint(const QObject *obj);
  23. #endif /* QINT_H */