[Github-comments] [geany/geany] plugins: Refactor legacy plugin support (75827c6)

Matthew Brush notifications at xxxxx
Sun Sep 4 21:39:50 UTC 2016


Out of curiosity, what's the advantage of having this in the private structure by value, and then again in the public structure by pointer? Same for the PluginInfo struct. After making a few plugins using the new API I'm always wondering why I can't write this:

```c
plugin->info.name = "foo";
...
plugin->funcs.init = foo_init;
```

Is there a technical reason for the extra indirection which I don't see?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/commit/75827c69c0ba5c1b01cd0992fc6ef6354a9b0c38#commitcomment-18894349
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160904/70684b49/attachment.html>


More information about the Github-comments mailing list