As a comparison, [the code here](https://gist.github.com/codebrainz/78a23f54970b975e0898ae544c2f5bbd) which used to be required in each plugin that needed it is reduced to:
```c plugin_document_set_data_full(plugin, doc, g_strdup("Hi"), g_free); ```