create private wrapper for connection-specific callback

Signed-off-by: Jan Dvořák <mordae@anilinux.org>