Permalink
Browse files

FIX: JSON: Allow to receive "Input.*" notifications"

  • Loading branch information...
1 parent 6b20411 commit 9e88bb9a38b2145c4cd5831cbd9fb6abce2d611b @koying committed Aug 3, 2012
@@ -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;
@@ -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\" }"
"}"
"}"
@@ -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
@@ -833,4 +835,4 @@
}
}
}
-}
+}

0 comments on commit 9e88bb9

Please sign in to comment.