Preparing to bring more functions into use.
Memory and event enums.
Buffers (partly) and Events.
Only set callback if non-null.
Context error callback.