Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@koying
Collaborator

No description provided.

@Montellese Montellese was assigned
@Montellese Montellese merged commit c28be75 into from
@Montellese
Owner

Looks like I was a bit lazy. Thanks for the fix.

@koying
Collaborator

;) Working great, btw...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 3, 2012
  1. @koying
This page is out of date. Refresh to see the latest.
View
3  xbmc/interfaces/json-rpc/JSONRPC.cpp
@@ -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;
View
1  xbmc/interfaces/json-rpc/ServiceDescription.h
@@ -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\" }"
"}"
"}"
View
4 xbmc/interfaces/json-rpc/types.json
@@ -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 @@
}
}
}
-}
+}
Something went wrong with that request. Please try again.