diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-07-01 13:15:20 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2018-07-10 22:42:50 +0200 |
commit | 4fb82a6456c7f836879b5b99b50a9d9516bbd308 (patch) | |
tree | 8473321abd5e2042632f0a3d2043578fb5f2a949 | |
parent | ac7c817e28cae82cb6b9945c3227a7743efda3a4 (diff) | |
download | libqmi-4fb82a6456c7f836879b5b99b50a9d9516bbd308.tar.gz |
loc: support for injecting predicted orbits data
-rw-r--r-- | data/qmi-service-loc.json | 83 | ||||
-rw-r--r-- | docs/reference/libqmi-glib/libqmi-glib-common.sections | 5 | ||||
-rw-r--r-- | docs/reference/libqmi-glib/libqmi-glib-docs.xml | 4 | ||||
-rw-r--r-- | src/libqmi-glib/qmi-enums-loc.h | 16 |
4 files changed, 108 insertions, 0 deletions
diff --git a/data/qmi-service-loc.json b/data/qmi-service-loc.json index c0289d6b..678763ba 100644 --- a/data/qmi-service-loc.json +++ b/data/qmi-service-loc.json @@ -394,6 +394,89 @@ // ********************************************************************************* + { "name" : "Inject Predicted Orbits Data", + "type" : "Message", + "service" : "LOC", + "id" : "0x0035", + "since" : "1.22", + "input" : [ { "name" : "Total Size", + "id" : "0x01", + "type" : "TLV", + "since" : "1.22", + "format" : "guint32" }, + { "name" : "Total Parts", + "id" : "0x02", + "type" : "TLV", + "since" : "1.22", + "format" : "guint16" }, + { "name" : "Part Number", + "id" : "0x03", + "type" : "TLV", + "since" : "1.22", + "format" : "guint16" }, + { "name" : "Part Data", + "id" : "0x04", + "type" : "TLV", + "since" : "1.22", + "format" : "array", + "array-element" : { "format" : "guint8" }, + "size-prefix-format" : "guint16", + "max-size" : "1024" }, + { "name" : "Format Type", + "id" : "0x10", + "type" : "TLV", + "since" : "1.22", + "format" : "guint32", + "public-format" : "QmiLocPredictedOrbitsDataFormat" } ], + "output" : [ { "common-ref" : "Operation Result" } ] }, + + { "name" : "Inject Predicted Orbits Data", + "type" : "Indication", + "service" : "LOC", + "id" : "0x0035", + "since" : "1.22", + "output" : [ { "common-ref" : "LOC Indication Status" }, + { "name" : "Part Number", + "id" : "0x10", + "type" : "TLV", + "since" : "1.22", + "format" : "guint16" } ] }, + + // ********************************************************************************* + + { "name" : "Get Predicted Orbits Data Source", + "type" : "Message", + "service" : "LOC", + "id" : "0x0036", + "since" : "1.22", + "output" : [ { "common-ref" : "Operation Result" } ] }, + + { "name" : "Get Predicted Orbits Data Source", + "type" : "Indication", + "service" : "LOC", + "id" : "0x0036", + "since" : "1.22", + "output" : [ { "common-ref" : "LOC Indication Status" }, + { "name" : "Allowed Sizes", + "id" : "0x10", + "type" : "TLV", + "since" : "1.22", + "format" : "sequence", + "contents" : [ { "name" : "Max File Size", + "format" : "guint32" }, + { "name" : "Max Part Size", + "format" : "guint32" } ] }, + { "name" : "Server List", + "id" : "0x11", + "type" : "TLV", + "since" : "1.22", + "format" : "array", + "size-prefix-format" : "guint8", + "array-element" : { "format" : "string", + "size-prefix-format" : "guint8" } } ] }, + + // ********************************************************************************* + { "name" : "Set Server", "type" : "Message", "service" : "LOC", diff --git a/docs/reference/libqmi-glib/libqmi-glib-common.sections b/docs/reference/libqmi-glib/libqmi-glib-common.sections index f0c72c4f..0fcf82e7 100644 --- a/docs/reference/libqmi-glib/libqmi-glib-common.sections +++ b/docs/reference/libqmi-glib/libqmi-glib-common.sections @@ -1087,6 +1087,7 @@ QmiLocReliability QmiLocSessionStatus QmiLocServerType QmiLocServerAddressType +QmiLocPredictedOrbitsDataFormat <SUBSECTION Methods> qmi_loc_intermediate_report_state_get_string qmi_loc_fix_recurrence_type_get_string @@ -1104,6 +1105,7 @@ qmi_loc_technology_used_build_string_from_mask qmi_loc_time_source_get_string qmi_loc_server_type_get_string qmi_loc_server_address_type_build_string_from_mask +qmi_loc_predicted_orbits_data_format_get_string <SUBSECTION Private> qmi_loc_intermediate_report_state_build_string_from_mask qmi_loc_operation_mode_build_string_from_mask @@ -1123,6 +1125,7 @@ qmi_loc_technology_used_get_string qmi_loc_time_source_build_string_from_mask qmi_loc_server_type_build_string_from_mask qmi_loc_server_address_type_get_string +qmi_loc_predicted_orbits_data_format_build_string_from_mask <SUBSECTION Standard> QMI_TYPE_LOC_INTERMEDIATE_REPORT_STATE QMI_TYPE_LOC_FIX_RECURRENCE_TYPE @@ -1140,6 +1143,7 @@ QMI_TYPE_LOC_TECHNOLOGY_USED QMI_TYPE_LOC_TIME_SOURCE QMI_TYPE_LOC_SERVER_TYPE QMI_TYPE_LOC_SERVER_ADDRESS_TYPE +QMI_TYPE_LOC_PREDICTED_ORBITS_DATA_FORMAT qmi_loc_intermediate_report_state_get_type qmi_loc_fix_recurrence_type_get_type qmi_loc_operation_mode_get_type @@ -1156,6 +1160,7 @@ qmi_loc_technology_used_get_type qmi_loc_time_source_get_type qmi_loc_server_type_get_type qmi_loc_server_address_type_get_type +qmi_loc_predicted_orbits_data_format_get_type </SECTION> <SECTION> diff --git a/docs/reference/libqmi-glib/libqmi-glib-docs.xml b/docs/reference/libqmi-glib/libqmi-glib-docs.xml index 33df71fb..c565709a 100644 --- a/docs/reference/libqmi-glib/libqmi-glib-docs.xml +++ b/docs/reference/libqmi-glib/libqmi-glib-docs.xml @@ -388,6 +388,8 @@ <xi:include href="xml/qmi-indication-loc-set-operation-mode.xml"/> <xi:include href="xml/qmi-indication-loc-set-server.xml"/> <xi:include href="xml/qmi-indication-loc-get-server.xml"/> + <xi:include href="xml/qmi-indication-loc-inject-predicted-orbits-data.xml"/> + <xi:include href="xml/qmi-indication-loc-get-predicted-orbits-data-source.xml"/> </section> <section> <title>LOC Requests</title> @@ -398,6 +400,8 @@ <xi:include href="xml/qmi-message-loc-set-operation-mode.xml"/> <xi:include href="xml/qmi-message-loc-set-server.xml"/> <xi:include href="xml/qmi-message-loc-get-server.xml"/> + <xi:include href="xml/qmi-message-loc-inject-predicted-orbits-data.xml"/> + <xi:include href="xml/qmi-message-loc-get-predicted-orbits-data-source.xml"/> </section> </chapter> diff --git a/src/libqmi-glib/qmi-enums-loc.h b/src/libqmi-glib/qmi-enums-loc.h index 9c4ab87e..6d88bbba 100644 --- a/src/libqmi-glib/qmi-enums-loc.h +++ b/src/libqmi-glib/qmi-enums-loc.h @@ -467,4 +467,20 @@ typedef enum { * Since: 1.22 */ +/** + * QmiLocPredictedOrbitsDataFormat: + * @QMI_LOC_PREDICTED_ORBITS_DATA_FORMAT_XTRA: Qualcomm XTRA database. + * + * Type of predicted orbits data. + */ +typedef enum { + QMI_LOC_PREDICTED_ORBITS_DATA_FORMAT_XTRA = 0 +} QmiLocPredictedOrbitsDataFormat; + +/** + * qmi_loc_predicted_orbits_data_format_get_string + * + * Since: 1.22 + */ + #endif /* _LIBQMI_GLIB_QMI_ENUMS_LOC_H_ */ |