test_common:CallbackState event parsing ObjectData
This introduces CallbackState
an ObjectData
that takes a closure with object and event arguments.
I think this is slightly easier to understand than the with_interface
.
I think it could do with a better name but I'm unsure what, something like EventHandler or EventClosure.
Edited by Colin Kinloch