<p>This is rquired to enable the plugin to call g_module_make_resident() within<br>
its geany_load_module(). This must be done if the plugin registers new<br>
GTypes within that function.</p>

<p>plugin_module_make_resident() doesn't work because it's not an allowed API<br>
function to call from there. Simply allowing it doesn't suffice because<br>
internally the built-in plugin loader isn't fully set up yet:<br>
plugin->proxy_data isn't set to the GModule at this point (by design), and<br>
plugin_module_make_resident() requires that to be set.</p>

<p>This changes a public API, but it is unreleased so far, so not a problem (by<br>
definition).</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/719'>https://github.com/geany/geany/pull/719</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>plugins: pass GModule * to geany_load_module()</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/719/files#diff-0">plugins/demoplugin.c</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/719/files#diff-1">plugins/demoproxy.c</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/719/files#diff-2">src/plugindata.h</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/719/files#diff-3">src/plugins.c</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/719.patch'>https://github.com/geany/geany/pull/719.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/719.diff'>https://github.com/geany/geany/pull/719.diff</a></li>
</ul>

<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/719">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ0Xk_p1iOSf3MPi-c27Le0h8GzwFks5pBM5dgaJpZM4GZg2a.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/719"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>