<div dir="auto"><div>Thanks, this info should be added to HACKING to explain how to add API symbols.<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 27 Aug 2019 05:29 Austin Green, <<a href="mailto:austin.green@orcon.net.nz">austin.green@orcon.net.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
OK, after further research I have stumbled on the answer:<br>
<br>
As well as adding the GEANY_API_SYMBOL macro to the function definition, the function declaration in keybindings.h also needs to be moved from the<br>
        #ifdef GEANY_PRIVATE<br>
section, into the 'public' section.  Dereffing the returned pointer then works fine.<br>
<br>
I expect this is documented somewhere, though I haven't found it.  Thanks to all for not responding with 'RTFM'.   :)<br>
<br>
Cheers,<br>
Austin.<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org" target="_blank" rel="noreferrer">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a><br>
</blockquote></div></div></div>