aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside/pyside.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpyside/pyside.h')
-rw-r--r--libpyside/pyside.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libpyside/pyside.h b/libpyside/pyside.h
index cae050b5d..2c5afb536 100644
--- a/libpyside/pyside.h
+++ b/libpyside/pyside.h
@@ -75,6 +75,15 @@ template<typename T>
struct initQtMetaType<T, false> {
};
+
+typedef void (*CleanupFunction)(void);
+
+/**
+ * Register a function to be called before python die
+ */
+PYSIDE_API void registerCleanupFunction(CleanupFunction func);
+PYSIDE_API void runCleanupFunctions();
+
} //namespace PySide