Created PySide cleanup functions used to register functions to be called before the python die.

Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
          Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
renatofilho 2010-09-17 17:03:01 -03:00
commit 6974551674
6 changed files with 59 additions and 20 deletions

View file

@ -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