pysideweakref.h 476 B

123456789101112131415161718
  1. // Copyright (C) 2016 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. #ifndef PYSIDEWEAKREF_H
  4. #define PYSIDEWEAKREF_H
  5. #include <pysidemacros.h>
  6. #include <sbkpython.h>
  7. using PySideWeakRefFunction = void (*)(void *userData);
  8. namespace PySide::WeakRef {
  9. PYSIDE_API PyObject* create(PyObject* ob, PySideWeakRefFunction func, void* userData);
  10. } // namespace PySide::WeakRef
  11. #endif // PYSIDEWEAKREF_H