It would also be good to have a SetImnodesContext and GetImnodesContext function that sets the variable g.
If you have multiple dlls that depend on imnodes, each dll needs the global context of imnodes, which is currently not possible.
Internally, this would be a major change, as g would need to be replaced with a pointer. g would then be allocated by Initialize.
With these changes, we can now share the context across multiple dlls.
I can confirm that this works. If you want, I can provide a PR.
Following #74
It would also be good to have a
SetImnodesContext
andGetImnodesContext
function that sets the variableg
. If you have multiple dlls that depend on imnodes, each dll needs the global context of imnodes, which is currently not possible.Internally, this would be a major change, as g would need to be replaced with a pointer.
g
would then be allocated byInitialize
. With these changes, we can now share the context across multiple dlls.I can confirm that this works. If you want, I can provide a PR.