[Github-comments] [geany] Proxy plugins (#629)

Colomban Wendling notifications at xxxxx
Sun Sep 27 13:03:23 UTC 2015


> +	{
> +		match = utils_str_equal(linebuf, "#!!PROXY_MAGIC!!\n");
> +		fclose(f);
> +	}
> +	return match ? PROXY_MATCHED : PROXY_IGNORED;
> +}
> + at endcode
> +
> +GeanyProxyFuncs::load is a bit more complex. It reads the file, fills the inferior's PluginInfo
> +fields and calls GEANY_PLUGIN_REGISTER_FULL(). Additionally, it creates a per-plugin context that
> +holds GKeyFile instance (a poor man's interpeter context). You can also see that it does not call
> +GEANY_PLUGIN_REGISTER_FULL() if g_key_file_load_from_file() found an error (probably a syntax
> +problem) which means the sub-plugin cannot be enabled.
> +
> +It also installs wrapper functions for the inferior's GeanyPluginFuncs as Ini files aren't code.
> +It's very likely that your proxy needs something similar because you can only install function

agreed.  at first "inferior" bugged me, but a dictionary lookup made me shut up and leave it to @elextr, which has now stricken :]

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/629/files#r40504011
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20150927/bf7dc173/attachment.html>


More information about the Github-comments mailing list