FIX: JSON: Allow to receive "Input.*" notifications"
authorChris "Koying" Browet <cbro@semperpax.com>
Fri, 3 Aug 2012 17:56:09 +0000 (19:56 +0200)
committerChris "Koying" Browet <cbro@semperpax.com>
Fri, 3 Aug 2012 18:14:35 +0000 (20:14 +0200)
xbmc/interfaces/json-rpc/JSONRPC.cpp
xbmc/interfaces/json-rpc/ServiceDescription.h
xbmc/interfaces/json-rpc/types.json

index 0cd72dc..ce4b726 100644 (file)
@@ -131,6 +131,9 @@ JSONRPC_STATUS CJSONRPC::SetConfiguration(const CStdString &method, ITransportLa
     if ((notifications["Application"].isNull() && (oldFlags & Other)) ||
         (notifications["Application"].isBoolean() && notifications["Application"].asBoolean()))
       flags |= Application;
+    if ((notifications["Input"].isNull() && (oldFlags & Input)) ||
+        (notifications["Input"].isBoolean() && notifications["Input"].asBoolean()))
+      flags |= Input;
     if ((notifications["Other"].isNull() && (oldFlags & Other)) ||
         (notifications["Other"].isBoolean() && notifications["Other"].asBoolean()))
       flags |= Other;
index ae17648..f10d996 100644 (file)
@@ -943,6 +943,7 @@ namespace JSONRPC
             "\"AudioLibrary\": { \"$ref\": \"Optional.Boolean\" },"
             "\"VideoLibrary\": { \"$ref\": \"Optional.Boolean\" },"
             "\"Application\": { \"$ref\": \"Optional.Boolean\" },"
+            "\"Input\": { \"$ref\": \"Optional.Boolean\" },"
             "\"Other\": { \"$ref\": \"Optional.Boolean\" }"
           "}"
         "}"
index 7eb3455..58c29ce 100644 (file)
@@ -51,6 +51,8 @@
       "System": { "type": "boolean", "required": true },
       "VideoLibrary": { "type": "boolean", "required": true },
       "AudioLibrary": { "type": "boolean", "required": true },
+      "Application": { "type": "boolean", "required": true },
+      "Input": { "type": "boolean", "required": true },
       "Other": { "type": "boolean", "required": true }
     },
     "additionalProperties": false
       }
     }
   }
-}
\ No newline at end of file
+}