Note it must be named in that form, void proto_register_xxx(void) as a build tool scans for such functions and creates the code to call the registration functions.