pysidecleanup.h 484 B

1234567891011121314151617181920
  1. // Copyright (C) 2021 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 PYSIDECLEANUP_H
  4. #define PYSIDECLEANUP_H
  5. #include <pysidemacros.h>
  6. namespace PySide
  7. {
  8. using CleanupFunction = void(*)();
  9. /// Register a function to be called before python dies
  10. PYSIDE_API void registerCleanupFunction(CleanupFunction func);
  11. PYSIDE_API void runCleanupFunctions();
  12. } //namespace PySide
  13. #endif // PYSIDECLEANUP_H