-
If yes, how? In concrete: Thank you for an answer in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Short answer, no, there is no way of guaranteeing that another plugin is loaded and remains loaded. The user can unload at any time. Long answer, if by agreement with the relevant plugin maintainer the function is moved to a common library that can be shared by both plugins it can happen since whichever is loaded first will load the library and it will stay loaded until nobody uses it. There is the utils library that works like this and maybe the function might be added to it, but who maintains it should be agreed (and written down :-) Of course that won't work if the function is not standalone but uses lots more of the plugin's functions. PS this should be a discussion on G-P but discussions are not enabled on that repo, any reason @frlan ? |
Beta Was this translation helpful? Give feedback.
-
I don't think so, plugins are shared objects, but are loaded |
Beta Was this translation helpful? Give feedback.
-
BTW which plugin did you mean "Preview"? I can't see any such in Geany or Geany-Plugins? |
Beta Was this translation helpful? Give feedback.
I don't think so, plugins are shared objects, but are loaded
G_MODULE_BIND_LOCAL
which means their symbols are not available to other shared objects, ie other plugins, so the name of the function won't be found.