diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-05-09 20:51:16 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-03 16:08:53 +0200 |
commit | 9182c492229990aaea563ccec7acaa2f2693d4fa (patch) | |
tree | 1e54fd0e446628691dffabc9c9df381c0b5a9471 | |
parent | 4c17c33edd7e4dc8aac4e84371d8a6e8e19a4ce1 (diff) | |
download | external_libqmi-9182c492229990aaea563ccec7acaa2f2693d4fa.zip external_libqmi-9182c492229990aaea563ccec7acaa2f2693d4fa.tar.gz external_libqmi-9182c492229990aaea563ccec7acaa2f2693d4fa.tar.bz2 |
data: add database of CTL messages
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | data/Makefile.am | 3 | ||||
-rw-r--r-- | data/qmi-service-ctl.json | 125 |
4 files changed, 130 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 0155e9b..4e6c6e4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = . build-aux src cli utils +SUBDIRS = . data build-aux src cli utils ACLOCAL_AMFLAGS = -I m4 diff --git a/configure.ac b/configure.ac index f1c1f78..b417ace 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,7 @@ GLIB_MKENUMS=`pkg-config --variable=glib_mkenums glib-2.0` AC_SUBST(GLIB_MKENUMS) AC_CONFIG_FILES([Makefile + data/Makefile build-aux/Makefile build-aux/templates/Makefile build-aux/qmi-codegen/Makefile diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 0000000..5111043 --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1,3 @@ + +EXTRA_DIST = \ + qmi-service-ctl.json diff --git a/data/qmi-service-ctl.json b/data/qmi-service-ctl.json new file mode 100644 index 0000000..a1ee85c --- /dev/null +++ b/data/qmi-service-ctl.json @@ -0,0 +1,125 @@ + +[ + { "name" : "QMI Client CTL", + "type" : "Client" }, + + { "name" : "QMI Message CTL", + "type" : "Message-ID-Enum" }, + + { "name" : "Get Version Info", + "type" : "Message", + "service" : "CTL", + "id" : "0x0021", + "output" : [ + { "name" : "Result", + "id" : "0x02", + "mandatory" : "yes", + "type" : "TLV", + "format" : "struct", + "contents" : [ { "name" : "Error Status", + "type" : "guint16" }, + { "name" : "Error Code", + "type" : "guint16" } ] }, + + { "name" : "Service list", + "id" : "0x01", + "mandatory" : "yes", + "type" : "TLV", + "format" : "array", + "array-element" : { "name" : "Service", + "format" : "struct", + "contents" : [ { "name" : "service", + "type" : "guint8" }, + { "name" : "major version", + "type" : "guint16" }, + { "name" : "minor version", + "type" : "guint16" } ] }, + "prerequisite": { "field" : "Result.Error Status", + "operation" : "==", + "value" : "QMI_STATUS_SUCCESS" } } ] }, + + { "name" : "Allocate CID", + "type" : "Message", + "service" : "CTL", + "id" : "0x0022", + "input" : [ { "name" : "Service", + "id" : "0x01", + "mandatory" : "yes", + "type" : "TLV", + "format" : "guint8" } ], + "output" : [ + { "name" : "Result", + "id" : "0x02", + "mandatory" : "yes", + "type" : "TLV", + "format" : "struct", + "contents" : [ { "name" : "Error Status", + "type" : "guint16" }, + { "name" : "Error Code", + "type" : "guint16" } ] }, + + { "name" : "Allocation Info", + "id" : "0x01", + "mandatory" : "yes", + "type" : "TLV", + "format" : "struct", + "contents" : [ { "name" : "Service", + "type" : "guint8" }, + { "name" : "Cid", + "type" : "guint8" } ], + "prerequisite": { "field" : "Result.Error Status", + "operation" : "==", + "value" : "QMI_STATUS_SUCCESS" } } ] }, + + { "name" : "Release CID", + "type" : "Message", + "service" : "CTL", + "id" : "0x0023", + "input" : [ { "name" : "Release Info", + "id" : "0x01", + "mandatory" : "yes", + "type" : "TLV", + "format" : "struct", + "contents" : [ { "name" : "Service", + "type" : "guint8" }, + { "name" : "Cid", + "type" : "guint8" } ] } ], + "output" : [ + { "name" : "Result", + "id" : "0x02", + "mandatory" : "yes", + "type" : "TLV", + "format" : "struct", + "contents" : [ { "name" : "Error Status", + "type" : "guint16" }, + { "name" : "Error Code", + "type" : "guint16" } ] }, + + { "name" : "Release Info", + "id" : "0x01", + "mandatory" : "yes", + "type" : "TLV", + "format" : "struct", + "contents" : [ { "name" : "Service", + "type" : "guint8" }, + { "name" : "Cid", + "type" : "guint8" } ], + "prerequisite": { "field" : "Result.Error Status", + "operation" : "==", + "value" : "QMI_STATUS_SUCCESS" } } ] }, + + { "name" : "Sync", + "type" : "Message", + "service" : "CTL", + "id" : "0x0027", + "output" : [ + { "name" : "Result", + "id" : "0x02", + "mandatory" : "yes", + "type" : "TLV", + "format" : "struct", + "contents" : [ { "name" : "Error Status", + "type" : "guint16" }, + { "name" : "Error Code", + "type" : "guint16" } ] } ] } +] |