<p>In <a href="https://github.com/geany/geany/pull/629#discussion_r40393400">doc/plugins.dox</a>:</p>
<pre style='color:#555'>> +
> +The next step is to actually register as a proxy plugin. This is done in demoproxy_init().
> +As previously mentioned, it needs a list of accepted file extensions and a set of callback
> +functions.
> +
> +@code{.c}
> +static gboolean demoproxy_init(GeanyPlugin *plugin, gpointer pdata)
> +{
> +  const gchar *extensions[] = { "ini", "px", NULL };
> +
> +  plugin->proxy_funcs->probe  = demoproxy_probe;
> +  plugin->proxy_funcs->load   = demoproxy_load;
> +  plugin->proxy_funcs->unload = demoproxy_unload;
> +
> +  return geany_plugin_register_proxy(plugin, extensions);
> +}
</pre>
<p>As discussed on IRC <a href="http://irc.geany.org/logs/log_20150924.html">here</a>, while I understand what <a href="https://github.com/b4n" class="user-mention">@b4n</a> means by the API is "funny" I don't think there is a better one that still meets at least some of simple, extendable, typesafe, so I would suggest to just leave it with the current proposal.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/629/files#r40393400">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ8I2kIwZBn406zSM5Gp5hLRpZCe-ks5o1J21gaJpZM4Fy7fG.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/629/files#r40393400"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>