Declare API required by source
Submitted by Juan A. Suárez Romero
Assigned to gri..@..e.bugs
Thinking on future changes inside the Lua API we expose to sources, we don't have a way to know if a source was written for a specific API or another.
It would be useful if sources declares someway the API they rely, so if we change it in Lua we can find out if the source is still compatible with the new changes (and thus we can use it) or if it is incompatible, and then better not load it.
A possible way could be tagging API with a version number X.Y. When adding we change the API so it is still compatible with previous one, we can tag it as "X.(Y+1)". And if we break it,use "(X+1).0".
On the other side, Lua sources would use "api=X.Y" to say it can use apis tagged as X.Y, X.(Y+1), X.(Y+2), and so on.
Version: git master