Add register definition to hapi
Merge pull request #3033 from shinyaohira/hapi-register

Add register definition to hapi