Save eventInfo information in a ResidentInfo instance.

The lifetime of the given eventInfo is unknown after
the function returns. It is needed to have a replica of that for
the use in the callback executed later.