examples/myplugin: Updated to the current plugin API.