Copy this template if you want to start a new plugin written in C.
You can use scripts/copy-template to automatically rename everything to your plugin name:
cd src/plugins ../../scripts/copy-template yourplugin