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

2019-08-27 Thread Nick Treleaven
Thanks, this info should be added to HACKING to explain how to add API symbols. On Tue, 27 Aug 2019 05:29 Austin Green, 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 decla

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

2019-08-26 Thread Lex Trotman
On Tue, 27 Aug 2019 at 16:00, Austin Green wrote: > > Hi Lex, > > On Tue, 27 Aug 2019 14:39:52 +1000 > Lex Trotman wrote: > > > On Tue, 27 Aug 2019 at 14:29, Austin Green > > wrote: > > ... > > > As well as adding the GEANY_API_SYMBOL macro to the function definition, > > > the function declar

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

2019-08-26 Thread Austin Green
Hi Lex, On Tue, 27 Aug 2019 14:39:52 +1000 Lex Trotman wrote: > On Tue, 27 Aug 2019 at 14:29, Austin Green wrote: > ... > > 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

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

2019-08-26 Thread Lex Trotman
On Tue, 27 Aug 2019 at 14:29, Austin Green 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 GEA

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

2019-08-26 Thread Austin Green
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 ret