The callbackMap is used to look up Go references in event callbacks. Instead of registering one entry for each possible callback type, use a single handle for each Go reference. Signed-off-by: Elias Naur <mail@eliasnaur.com>
Signed-off-by: Elias Naur <mail@eliasnaur.com>