Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

jsonrpc: add Input.ShowCodec/ShowOSD

  • Loading branch information...
commit 68e03471f6e746ae4c1740d6048327df76cd0dac 1 parent f87c0b0
Sascha Montellese authored
10 xbmc/interfaces/json-rpc/InputOperations.cpp
View
@@ -163,3 +163,13 @@ JSONRPC_STATUS CInputOperations::Home(const CStdString &method, ITransportLayer
{
return activateWindow(WINDOW_HOME);
}
+
+JSONRPC_STATUS CInputOperations::ShowCodec(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
+{
+ return SendAction(ACTION_SHOW_CODEC);
+}
+
+JSONRPC_STATUS CInputOperations::ShowOSD(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
+{
+ return SendAction(ACTION_SHOW_OSD);
+}
3  xbmc/interfaces/json-rpc/InputOperations.h
View
@@ -46,6 +46,9 @@ namespace JSONRPC
static JSONRPC_STATUS Info(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
static JSONRPC_STATUS Home(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
+ static JSONRPC_STATUS ShowCodec(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
+ static JSONRPC_STATUS ShowOSD(const CStdString &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
+
static JSONRPC_STATUS SendKey(uint32_t keyCode, bool unicode = false);
static JSONRPC_STATUS SendAction(int actionID, bool wakeScreensaver = true, bool waitResult = false);
2  xbmc/interfaces/json-rpc/JSONServiceDescription.cpp
View
@@ -173,6 +173,8 @@ JsonRpcMethodMap CJSONServiceDescription::m_methodMaps[] = {
{ "Input.ContextMenu", CInputOperations::ContextMenu },
{ "Input.Info", CInputOperations::Info },
{ "Input.Home", CInputOperations::Home },
+ { "Input.ShowCodec", CInputOperations::ShowCodec },
+ { "Input.ShowOSD", CInputOperations::ShowOSD },
// Application operations
{ "Application.GetProperties", CApplicationOperations::GetProperties },
16 xbmc/interfaces/json-rpc/ServiceDescription.h
View
@@ -2421,6 +2421,22 @@ namespace JSONRPC
"\"params\": [],"
"\"returns\": \"string\""
"}",
+ "\"Input.ShowCodec\": {"
+ "\"type\": \"method\","
+ "\"description\": \"Show codec information of the playing item\","
+ "\"transport\": \"Response\","
+ "\"permission\": \"Navigate\","
+ "\"params\": [],"
+ "\"returns\": \"string\""
+ "}",
+ "\"Input.ShowOSD\": {"
+ "\"type\": \"method\","
+ "\"description\": \"Show the on-screen display for the current player\","
+ "\"transport\": \"Response\","
+ "\"permission\": \"Navigate\","
+ "\"params\": [],"
+ "\"returns\": \"string\""
+ "}",
"\"Application.GetProperties\": {"
"\"type\": \"method\","
"\"description\": \"Retrieves the values of the given properties\","
16 xbmc/interfaces/json-rpc/methods.json
View
@@ -1556,6 +1556,22 @@
"params": [],
"returns": "string"
},
+ "Input.ShowCodec": {
+ "type": "method",
+ "description": "Show codec information of the playing item",
+ "transport": "Response",
+ "permission": "Navigate",
+ "params": [],
+ "returns": "string"
+ },
+ "Input.ShowOSD": {
+ "type": "method",
+ "description": "Show the on-screen display for the current player",
+ "transport": "Response",
+ "permission": "Navigate",
+ "params": [],
+ "returns": "string"
+ },
"Application.GetProperties": {
"type": "method",
"description": "Retrieves the values of the given properties",
Please sign in to comment.
Something went wrong with that request. Please try again.