<div dir="ltr">Hi Per,<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 15, 2015 at 1:49 PM, Per Löwgren <span dir="ltr"><<a href="mailto:per.lowgren@gmail.com" target="_blank">per.lowgren@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><br>> Hi,<br>><br>> The API has been fixed to not leak symbols, which it did for a few<br>> recent versions. The only functions that are public, which is how it's<br>> always been, are those documented in the API reference[0]. That you were<br>> able to compile and link against private symbols was a bug in Geany. If<br>> you need those functions though, they can likely be added to the public<br>> API with a pull request.<br>><br>> Cheers,<br>> Matthew Brush<br>><br>><br>> [0]: <a href="http://www.geany.org/manual/reference/" target="_blank">http://www.geany.org/manual/reference/</a><br><br><br>Hello Matthew,<br><br>Apparently filetypes_detect_from_document isn't needed since an instance of GeanyFiletype is a member of GeanyDocument, I just noticed, so that solved itself.<br></div></blockquote><div><br></div><div>If needed, you can also use filetypes_detect_from_file() which is public.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br>I can probably find an alternative workaround for document_close_all, e.g. iterate document_index(0) until it returns NULL, and call document_close; so I think should be ok too.<br></div></blockquote><div><br></div><div>Yep, it should be pretty easy to do this manually so the question is whether extra API is needed.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br>The project functions however, since Djynn is meant to integrate with the internal Geany project manager, with functions for opening and closing projects. I believe Geany would be enhanced by the possibility for plugins to open and close projects. When creating a Djynn-project a Geany-project is generated automatically, and when opening and closing Djynn-projects, the Geany-projects are opened and closed too. It's been working very well, seamlessly and invisibly, and would be a loss if I had to cut out the Geany-project integration.</div></blockquote><div><br></div><div>Sounds like reasonable usage, I think you can just open Geany pull request to make these public. To make a function public, you just need to:</div><div><br></div><div>1. Prefix the implementation with GEANY_API_SYMBOL.</div><div>2. Add some user-visible API documentation with a docstring (see other API functions in the code to have an idea how it should look)</div><div>3. Move the function declarations above GEANY_PRIVATE in the header.</div><div><br></div><div>That's about it.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>When I began working with Djynn, I actually only wanted a tree-view of the project files for my projects. Since I'm working on many projects I needed quick access to files from the various projects without having to find them with Thunar (it's my preferred file manager). Then merging projects with Geany was the natural next step.</div><div><br></div><div>I'm not sure if anyone but me is really using my plugin, it's only designed for my personal needs, but I'd really be happy if anyone else had use for it as well.</div><div><br></div><div>Anyway, I'm sure document_close_all could be used by many plugins, but filetypes_detect_from_document is not needed. The project functions would be much appreciated. That's all on my xmas wishlist :)</div></div></blockquote><div><br></div><div>As it usually works, the best presents have to come from yourself, there will be just socks and pyjamas under the Christmas tree :-).</div><div><br></div><div>Cheers,</div><div><br></div><div>Jiri</div></div></div></div>