pf plugin: Rearrange functions to get rid of prototypes.