ppp: fix apigen to have guards, fix regex, and remove hardcoded sample

Function prototype regex now works with * at the beginning of a function name instead of the end of the type.