Add userdata parameter to the header prototype.

This commit adds the userdata parameter to the header prototypes for the
functions (which were forgotten in the previous commit).