Interface for registering memory-related callback functions
Register the memory application and release functions.