summaryrefslogtreecommitdiff
path: root/data/mbim-service-basic-connect.json
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-04-10 19:16:07 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-04-21 19:28:14 +0200
commit49f0a99e4ce47ba93aaab1ade4df88f06110dc41 (patch)
tree77532dfa005952bbe20db196fe9616f45c7670c4 /data/mbim-service-basic-connect.json
parent916d20baf46d5bd59204e8910a516b6d1bf50497 (diff)
mbim-codegen: simplify API
Instead of per-variable getters, just dump a parser() method which reads all the requested variables from the message. Same logic for the message creators, passing all variables altogether.
Diffstat (limited to 'data/mbim-service-basic-connect.json')
-rw-r--r--data/mbim-service-basic-connect.json67
1 files changed, 32 insertions, 35 deletions
diff --git a/data/mbim-service-basic-connect.json b/data/mbim-service-basic-connect.json
index 033e97d..7d4e9b3 100644
--- a/data/mbim-service-basic-connect.json
+++ b/data/mbim-service-basic-connect.json
@@ -25,20 +25,20 @@
{ "name" : "Ctrl Caps",
"format" : "guint32",
"public-format" : "MbimCtrlCaps" },
- { "name" : "Max Sessions",
- "format" : "guint32" },
- { "name" : "Custom Data Class",
- "format" : "string",
- "max-size" : "22" },
- { "name" : "Device ID",
- "format" : "string",
- "max-size" : "36" },
- { "name" : "Firmware Info",
- "format" : "string",
- "max-size" : "60" },
- { "name" : "Hardware Info",
- "format" : "string",
- "max-size" : "60" } ] } },
+ { "name" : "Max Sessions",
+ "format" : "guint32" },
+ { "name" : "Custom Data Class",
+ "format" : "string",
+ "max-size" : "22" },
+ { "name" : "Device ID",
+ "format" : "string",
+ "max-size" : "36" },
+ { "name" : "Firmware Info",
+ "format" : "string",
+ "max-size" : "60" },
+ { "name" : "Hardware Info",
+ "format" : "string",
+ "max-size" : "60" } ] } },
// *********************************************************************************
{ "name" : "Subscriber Ready Status",
@@ -47,16 +47,15 @@
"query" : { "output" : [ { "name" : "Ready State",
"format" : "guint32",
"public-format" : "MbimSubscriberReadyState" },
- { "name" : "Subscriber ID",
- "format" : "string" },
- { "name" : "SIM ICCID",
- "format" : "string" },
+ { "name" : "Subscriber ID",
+ "format" : "string" },
+ { "name" : "SIM ICCID",
+ "format" : "string" },
{ "name" : "Ready Info",
"format" : "guint32",
"public-format" : "MbimReadyInfoFlag" },
- { "name" : "Telephone Numbers Count",
- "format" : "guint32",
- "visibility" : "private" },
+ { "name" : "Telephone Numbers Count",
+ "format" : "guint32" },
{ "name" : "Telephone Numbers",
"format" : "string-array",
"array-size-field" : "Telephone Numbers Count" } ] } },
@@ -68,7 +67,7 @@
"query" : { "output" : [ { "name" : "Hardware Radio State",
"format" : "guint32",
"public-format" : "MbimRadioSwitchState" },
- { "name" : "Software Radio State",
+ { "name" : "Software Radio State",
"format" : "guint32",
"public-format" : "MbimRadioSwitchState" } ] } },
@@ -82,26 +81,26 @@
{ "name" : "Pin Operation",
"format" : "guint32",
"public-format" : "MbimPinOperation" },
- { "name" : "Pin",
- "format" : "string" },
- { "name" : "New Pin",
- "format" : "string" } ],
+ { "name" : "Pin",
+ "format" : "string" },
+ { "name" : "New Pin",
+ "format" : "string" } ],
"output" : [ { "name" : "Pin Type",
"format" : "guint32",
"public-format" : "MbimPinType" },
{ "name" : "Pin State",
"format" : "guint32",
"public-format" : "MbimPinState" },
- { "name" : "Remaining Attempts",
- "format" : "guint32" } ] },
+ { "name" : "Remaining Attempts",
+ "format" : "guint32" } ] },
"query" : { "output" : [ { "name" : "Pin Type",
"format" : "guint32",
"public-format" : "MbimPinType" },
{ "name" : "Pin State",
"format" : "guint32",
"public-format" : "MbimPinState" },
- { "name" : "Remaining Attempts",
- "format" : "guint32" } ] } },
+ { "name" : "Remaining Attempts",
+ "format" : "guint32" } ] } },
// *********************************************************************************
{ "name" : "MbimDeviceServiceElement",
@@ -113,8 +112,7 @@
{ "name" : "Max DSS Instances",
"format" : "guint32" },
{ "name" : "CIDs Count",
- "format" : "guint32",
- "visibility" : "private"},
+ "format" : "guint32" },
{ "name" : "CIDs",
"format" : "guint32-array",
"array-size-field" : "CIDs Count" } ] },
@@ -123,9 +121,8 @@
{ "name" : "Device Services",
"service" : "Basic Connect",
"type" : "Command",
- "query" : { "output" : [ { "name" : "Device Services Count",
- "format" : "guint32",
- "visibility" : "private" },
+ "query" : { "output" : [ { "name" : "Device Services Count",
+ "format" : "guint32" },
{ "name" : "Max DSS Sessions",
"format" : "guint32" },
{ "name" : "Device Services",