<blockquote>
<p>How if geany_plugin_register_proxy() has changed behavior?</p>
</blockquote>

<p>By those proxy plugins checking the API version and changing the extensions. It's either that or we bump the ABI version and break all plugins and still have to update the proxy plugins.</p>

<p>The code would look like:</p>

<div class="highlight highlight-source-c"><pre>...
#<span class="pl-k">if</span> GEANY_API_VERSION >= 230
  <span class="pl-k">const</span> gchar *patterns[] = { <span class="pl-s"><span class="pl-pds">"</span>*.so<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>*.dll<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>*.plugin<span class="pl-pds">"</span></span>, <span class="pl-c1">NULL</span> };
#<span class="pl-k">else</span>
  <span class="pl-k">const</span> gchar *patterns[] = { <span class="pl-s"><span class="pl-pds">"</span>so<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>dll<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>plugin<span class="pl-pds">"</span></span>, <span class="pl-c1">NULL</span> };
#<span class="pl-k">endif</span>
  <span class="pl-en">geany_plugin_register_proxy</span>(plugin, patterns);
...</pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/1236#issuecomment-255666164">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ5pca8ZWnRkF-ftsl5dbyfZcmJVBks5q3FzHgaJpZM4J_6i1">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ464tDAsTsasguswFUSDHKI7jAFnks5q3FzHgaJpZM4J_6i1.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/1236#issuecomment-255666164"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@codebrainz in #1236: \u003e How if geany_plugin_register_proxy() has changed behavior?\r\n\r\nBy those proxy plugins checking the API version and changing the extensions. It's either that or we bump the ABI version and break all plugins and still have to update the proxy plugins.\r\n\r\nThe code would look like:\r\n\r\n```c\r\n...\r\n#if GEANY_API_VERSION \u003e= 230\r\n  const gchar *patterns[] = { \"*.so\", \"*.dll\", \"*.plugin\", NULL };\r\n#else\r\n  const gchar *patterns[] = { \"so\", \"dll\", \"plugin\", NULL };\r\n#endif\r\n  geany_plugin_register_proxy(plugin, patterns);\r\n...\r\n```"}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany/pull/1236#issuecomment-255666164"}}}</script>