These two commits add functionality that I will need later on. The AddEnum() methods allow other parts of code to add enumerations to our JSON schema on startup. One possible use for this is to add all the available fields for smartplaylists as an enum so that it doesn't have to be manually maintained in the JSON schema everytime I new field is added. Adding a call to AddEnum() which passes a list of all available smartplaylist fields will take care of that. An example code of how this would look/work can be found here: Montellese@master...jsonrpc_xsp#L1R45
The second commit re-introduces late type-resolving because that's needed to be able to use JSON schema enum types that are added dynamically on startup. With the current implementation every JSON type has to already exist when it is referenced by another type so referencing a dynamically added enum won't work well.
add AddEnum() to CJSONServiceDescription
can be used to add JSON schema types during runtime (e.g. a list of setting names etc)
This is fixed in the other commit but yeah it should be ==.
refactored and extended CJSONServiceDescription to support late type-…
…resolving upon adding the missing type
RemoteAPI when we get a back command stop playing video