Author Topic: Whole version string using API  (Read 7798 times)

Pako

  • Full Member
  • ***
  • Posts: 132
Is it possible to get (through the API) whole version string (like 2.1.4877) ?
I am looking for this option, but did not find.
I think it would be beneficial.
I have a built-in  (optional) debug-log in my EventGhost plugin.
Here's how it looks now:
Code
2013-05-11 13:00:06   PLUGIN STARTED - MusicBee version: 2_1; API revision: 29; Interface version: 25; Plugin version: 0.0.2
2013-05-11 13:00:06   SENDING:  0x00000000  PluginStartup|2230732
2013-05-11 13:00:19   SETTINGS SAVED
2013-05-11 13:12:09   SENDING:  0x00000001  VolumeMuteChanged|True
2013-05-11 13:12:12   SENDING:  0x00000001  VolumeLevelChanged|39
2013-05-11 13:12:12   SENDING:  0x00000001  VolumeMuteChanged|False
2013-05-11 13:12:14   SENDING:  0x00000001  VolumeLevelChanged|55
2013-05-11 13:12:56   SENDING:  0x00000001  PlayStateChanged.Playing|http://www.play.cz/radio/cro2-128.mp3.m3u
2013-05-11 13:12:56   SENDING:  0x00000002  http://www.play.cz/radio/cro2-128.mp3.m3u|http://www.play.cz/radio/cro2-128.mp3.m3u<LF><LF>
2013-05-11 13:13:01   SENDING:  0x00000001  PlayStateChanged.Paused|http://www.play.cz/radio/cro2-128.mp3.m3u
2013-05-11 13:13:36   SENDING:  0x00000006  PluginStopped|MusicBeeClosing
2013-05-11 13:13:36   PLUGIN STOPPED - MusicBeeClosing

Pako

Pako

  • Full Member
  • ***
  • Posts: 132
Quote from: Pako
Is it possible to get (through the API) whole version string (like 2.1.4877) ?
No one knows?


Quote from: Pako
I think it would be beneficial.
Everyone thinks that it would be useless?

Pako

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34368
i dont want to change the api just for this.
If you need it to build logic for detecting bug fixes in the API then use the API revision (i appreciate i didnt increment it for the last bug fixes)
If you need it to determine if an API function is supported then check the interface version.

Pako

  • Full Member
  • ***
  • Posts: 132
Thank you for your comprehensive answer.

Pako