r7908: * change REGISTRY_HOOK api to use const (fix compiler warning