s3:registry: move reg_api_regf prototypes to their own header file.