Commit Graph

28 Commits

Author SHA1 Message Date
Aleksander Morgado d8ae738b96 wds: implement "Get Packet Statistics" request/response 2013-06-19 15:18:46 +02:00
Dan Williams 38171469d3 wds: annotate GetCurrentSettings with correct byte orders
IPv6 addresses are always sent in network byte order.  Oddly,
IPv4 addresses appear to be sent as LE uint32s rather than
BE/network byte order.
2012-10-23 17:25:05 +02:00
Aleksander Morgado 1fd2385c52 wds: "Start Network" may be aborted 2012-10-10 21:14:48 +02:00
Aleksander Morgado 13b53c6a1d libqmi-glib,qmi-codegen: timed out operations will issue an ABORT message
Messages can now be tagged with a special 'abort' keyword, so that whenever the
message times out we issue a new ABORT command to cancel the specific timed out
request.

This support is currently only available for the NAS and WDS services, which are
the ones supporting ABORT for their long-running operations.
2012-10-10 21:14:48 +02:00
Aleksander Morgado 201e0cea5f qmi-codegen: for strings, use 'size-prefix-format' instead of 'length-prefix-size'
Use the new 'size-prefix-format' property to specify whether the length prefix
variable is a 'guint8' or a 'guint16'.

We therefore consolidate the way how this length prefix variable is specified in
both arrays and strings.

So, instead of:
    "length-prefix-size" : "16"

We now just do:
    "size-prefix-format" : "guint16"
2012-09-19 12:06:28 +02:00
Aleksander Morgado 7345ca6aaf qmi-codegen: for arrays, use a new 'size-prefix-format' instead of 'array-size'
The 'array-size' property was used to define an implicit variable to be found at
the beginning of every array. This property expected a dictionary with one
single 'format' key.

Instead of this setup, create a new 'size-prefix-format' property which directly
expects the format string of the variable to be used as array-length indicator.

So, instead of:
    "array-size" : { "format" : "guint16" }

We can now just use:
    "size-prefix-format" : "guint16"

Also, remove the explicit size definitions when the format is "guint8", as that
is the default already when none specified and the array is not of fixed size.
2012-09-19 12:06:28 +02:00
Aleksander Morgado ab43bccdf4 wds: remove `QmiWdsAuthenticationPreference'
Use the more generic `QmiWdsAuthentication' flags instead, which match properly.
2012-09-08 10:39:33 +02:00
Dan Williams b165e39a9e wds: implement "Get Current Settings" request/response 2012-09-08 10:34:13 +02:00
Dan Williams fe5d329e42 wds: Extended Technology Preference is a guint16
Not a guint8; flattened Gobi API says:

enum eQMIWDSExtendedTechPrefs:UINT16
{
   ...
}

Plus the values are wrong, so fix that.
2012-09-08 10:34:13 +02:00
Aleksander Morgado d473f9ab35 wds: implement "Verbose Call End Reason" types 2012-08-28 13:18:56 +02:00
Aleksander Morgado d39c997771 wds: implement "Call End Reason" type 2012-08-28 13:18:56 +02:00
Aleksander Morgado a605d46a3d wds: implement "Set IP Family" request/response 2012-08-27 15:22:13 +02:00
Aleksander Morgado d5288d8c13 wds: add missing TLVs to 'Start Network' and 'Stop Network' 2012-08-21 18:06:18 +02:00
Aleksander Morgado 8fd8e001ef wds: implement "Reset" request/response 2012-07-23 14:04:55 +02:00
Aleksander Morgado 6423f5b9aa wds: order messages by ID 2012-07-23 12:31:28 +02:00
Aleksander Morgado d86c8fe926 wds: added info about the service version when each message was introduced 2012-07-23 12:30:39 +02:00
Aleksander Morgado 442af9d9b6 wds: use the `sequence' type for struct TLVs 2012-07-03 16:08:58 +02:00
Aleksander Morgado 8fe7fae49a qmi-codegen: require a `Service' object in the JSON list 2012-07-03 16:08:55 +02:00
Aleksander Morgado 7e5cdc9b78 core: new types to handle the `Get Data Bearer Technology' response
Also, make the 'last' TLV optional.
2012-07-03 16:08:55 +02:00
Aleksander Morgado 6fb803907a core: new types to handle the `Get Current Data Bearer Technology' response
We define new enums and flags to easier handle the response to the
`Get Current Data Bearer Technology' request.
2012-07-03 16:08:55 +02:00
Aleksander Morgado d762d77607 core: new `QmiWdsConnectionStatus' type
This new type is the `public-format' of the guint8 status given in the Get
Packet Service Status response.
2012-07-03 16:08:55 +02:00
Aleksander Morgado c96f701b15 qmi-codegen: type for members of the struct given in the `format' field 2012-07-03 16:08:55 +02:00
Aleksander Morgado 6e6279e486 data: add comment lines to separate objects in list 2012-07-03 16:08:54 +02:00
Aleksander Morgado 39a2d58f8d data: use new `Success' common prerequisite type 2012-07-03 16:08:54 +02:00
Aleksander Morgado 758992dc0a qmi-codegen: `prerequisites' will always be a list of dicts 2012-07-03 16:08:54 +02:00
Aleksander Morgado de514133ce qmi-codegen: use a `common-ref' field to specify common dictionaries, like TLVs 2012-07-03 16:08:54 +02:00
Aleksander Morgado 5ee73a0f3e core: use new autogenerated code for the WDS service 2012-07-03 16:08:54 +02:00
Aleksander Morgado 39de72d0b2 data: add database of WDS messages 2012-07-03 16:08:54 +02:00