[Geany-Devel] Problem with pointer from API function -- solved

Nick Treleaven ntrel002 at xxxxx
Tue Aug 27 15:46:12 UTC 2019


Thanks, this info should be added to HACKING to explain how to add API
symbols.

On Tue, 27 Aug 2019 05:29 Austin Green, <austin.green at orcon.net.nz> wrote:

> Hi All,
>
> OK, after further research I have stumbled on the answer:
>
> 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
>         #ifdef GEANY_PRIVATE
> section, into the 'public' section.  Dereffing the returned pointer then
> works fine.
>
> I expect this is documented somewhere, though I haven't found it.  Thanks
> to all for not responding with 'RTFM'.   :)
>
> Cheers,
> Austin.
> _______________________________________________
> Devel mailing list
> Devel at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/devel/attachments/20190827/5259672c/attachment.html>


More information about the Devel mailing list