Get Addon and Kod versions in PVR Addon
#1
I can't find an obvious way of doing this. I would like to perform some cleanup actions when the addon is updated which I can do if I store the addon version. As a last resort I could read it from addon.xml.

I can do something like this for addon name and path but it doesn't work for version:

Code:

char buffer[1024];
XBMC->GetSetting("__addonpath__", buffer);

Thanks in advnace
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply
#2
Added the following to CMakeLists.txt

Code:
addon_version(pvr.vuplus VUPLUS)
add_definitions(-DVUPLUS_VERSION=${VUPLUS_VERSION})

Can then be accessed from source using 
Code:
STR(VUPLUS_VERSION)
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply

Logout Mark Read Team Forum Stats Members Help
Get Addon and Kod versions in PVR Addon0