Commit Graph

577 Commits

Author SHA1 Message Date
Dan Williams aeddf3ef8a gobi-api: add GobiAPI_2012-09-12-0719 2012-11-12 14:13:15 -06:00
Dan Williams abab11c291 release: bump version to 1.0.0 2012-11-12 13:56:44 -06:00
Dan Williams 8ae645abb9 release: update NEWS 2012-11-12 12:17:03 -06:00
Aleksander Morgado cc6a065233 libqmi-glib,test: enable tests expecting warnings only if glib >= 2.34 2012-11-08 20:44:31 +01:00
Aleksander Morgado b59b3cb846 nas: new 'QMI_NAS_DATA_CAPABILITY_NONE' enum value 2012-11-02 14:11:36 +01:00
Aleksander Morgado d07c5e14b9 qmi-codegen: translate the values of enums/flags in traces 2012-11-02 13:13:47 +01:00
Aleksander Morgado 94addc296e libqmi-glib: make 'QmiCtlDataLinkProtocol' a enum instead of flags
If the values are like flags, but mutually exclusive, just set it as an enum.
2012-11-02 13:13:04 +01:00
Aleksander Morgado a4dfb5055f cli: log messages from the 'Qmi' domain 2012-11-02 12:19:41 +01:00
Aleksander Morgado ea83895494 docs: add missing documentation for "NAS Get CDMA Position Info" 2012-11-02 09:28:14 +01:00
Aleksander Morgado 5cbc7a5ca5 qmi-codegen: fix computation of expected TLV length when using strings 2012-11-02 09:02:41 +01:00
Dan Williams a95ec833dc nas: add Get CDMA Position Info
Not sure what NAS version supports it, but at least NAS 1.3 is required.
2012-10-31 14:12:59 -05:00
Aleksander Morgado b17a3d06fc libqmi-glib,test: new test for messages with invalid TLVs 2012-10-30 20:42:59 +01:00
Aleksander Morgado 4c98ff41cc qmi-codegen: validate TLV before really reading it
Try to handle buggy firmware, or just make the library more robust, by
validating the read TLV before really reading it. If a TLV is not considered
valid, we just skip it for now.

E.g.: the "Detailed Service Status" TLV (0x21) in the "NAS Get Serving System"
message is supposed to be a sequence of 5 bytes, but some models (e.g. ZTE MF683)
end up sending only the first 4 bytes.
2012-10-30 20:42:59 +01:00
Aleksander Morgado 7cce18820e Revert "libqmi-glib,message: include raw data buffer when building printable string"
This reverts commit d89b9064af.

We already print the raw buffer when sending/receiving the message in QmiDevice,
which is actually better as we end up priting it *before* parsing it, so it's
much better for debugging purposes.
2012-10-30 16:24:16 +01:00
Aleksander Morgado 1cb04318e1 libqmi-glib,test: include printable string in message tests 2012-10-30 15:10:06 +01:00
Aleksander Morgado 2835a53732 libqmi-glib: define library G_LOG_DOMAIN 2012-10-30 15:09:17 +01:00
Aleksander Morgado 9fc96563e5 libqmi-glib,utils: minor documentation fix 2012-10-30 15:09:17 +01:00
Aleksander Morgado d89b9064af libqmi-glib,message: include raw data buffer when building printable string 2012-10-30 09:13:51 +01:00
Aleksander Morgado 996c343b90 libqmi-glib,device: print raw sent/received message before translating it
This will help us debug issues in the message translation.
2012-10-29 12:00:27 +01:00
Aleksander Morgado fe7d46d49a libqmi-glib,utils: no need to pass endianness when reading/writing single bytes 2012-10-29 11:57:20 +01:00
Aleksander Morgado 482ce26d0f cli,wds: print connection status string instead of integer 2012-10-25 12:33:53 +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
Dan Williams cb5851e700 libqmi-glib,qmi-codegen: add endian-ness annotation capability
Some values are sent by the firmware in big endian byte order,
specifically IP addresses, which are sent in network byte order
(ie, big endian).  Add the ability to specify the byte order
the firmware handles the value as, and convert that to host
byte order when reading/writing QMI buffers.
2012-10-23 17:25:05 +02:00
Aleksander Morgado 51eff87f79 libqmi-glib,qmi-codegen: cancelled operations will issue an ABORT message
We allow passing a GCancellable to every async operation with the clients. Now,
if the cancellable gets cancelled and the operation can be ABORT-ed, then we
do it.
2012-10-10 21:14:48 +02:00
Aleksander Morgado df87c30e93 libqmi-glib,device: avoid invalid reads in the sync indication callback
If we don't disconnect the signal handler when we clear the private
QmiClientCtl, we may end up in the situation where we try to use the
already disposed QmiDevice object.
2012-10-10 21:14:48 +02:00
Aleksander Morgado 1fd2385c52 wds: "Start Network" may be aborted 2012-10-10 21:14:48 +02:00
Aleksander Morgado fbd231e4ad nas: "Network Scan" 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 5e1507472d libqmi-glib,device: include missing `qmi_device_command()' documentation 2012-10-10 18:24:11 +02:00
Aleksander Morgado f367a4c8b5 docs: hide class structures of `QmiDevice' and `QmiClient' 2012-10-10 18:23:39 +02:00
Aleksander Morgado 6b6c4906b6 dms: activation state related commands already in DMS 1.3 2012-10-10 15:02:55 +02:00
Aleksander Morgado e880505352 build: fix documentation build 2012-10-09 20:03:57 +02:00
Aleksander Morgado 348f6c99f2 cli: traces enabled if running in verbose mode 2012-10-09 15:23:48 +02:00
Aleksander Morgado 35dcb4bb6e libqmi-glib: message traces compiled always
Message traces have been very useful when debugging issues in the protocol, and
we should avoid requiring a full recompilation in order to get them enabled.

Instead, we provide two new API methods, `qmi_utils_(get|set)_traces_enabled()',
which allow specifying whether traces should be dumped with g_debug() or not.
2012-10-09 15:23:48 +02:00
Aleksander Morgado ab6a20b6f0 libqmi-glib,utils: improve documentation 2012-10-09 15:23:48 +02:00
Aleksander Morgado 386fdf3f80 libqmi-glib,utils: make qmi_utils_str_hex() private to the library 2012-10-09 15:23:48 +02:00
Aleksander Morgado ff10acc860 device: remove transaction ID related traces, not useful any more 2012-10-09 15:23:48 +02:00
Aleksander Morgado 586aba166a qmi-codegen: make internal get_printable() and get_version_introduced()
These methods are (should only be) used only by the library.
2012-10-09 15:23:48 +02:00
Aleksander Morgado 3bbdc47947 docs: improve documentation of enums, flags and errors 2012-10-09 15:23:48 +02:00
Aleksander Morgado a873852f8e qmi-codegen: request creator and response/indication parsers are private 2012-10-09 15:23:47 +02:00
Aleksander Morgado d2e47956d2 libqmi-glib: completely hide the implicit CTL Client in the API 2012-10-09 15:23:47 +02:00
Aleksander Morgado d782748cc8 build,libqmi-glib: only allow including `libqmi-glib.h' directly 2012-10-09 15:23:47 +02:00
Aleksander Morgado d0f017f9e2 build,libqmi-glib: include missing headers in SOURCES 2012-10-09 15:23:47 +02:00
Aleksander Morgado 71e2858271 libqmi-glib: new header file for private enum/flag types 2012-10-09 15:23:47 +02:00
Aleksander Morgado bb1807c4ba build: include missing files in dist 2012-10-09 15:23:47 +02:00
Aleksander Morgado 148791b4ca docs: improve generated `libqmi-glib' documentation
Among the tons of fixes done here, we now generate some per-service .sections
file which we then concatenate to build the final libqmi-glib-sections.txt file.
2012-10-09 15:23:47 +02:00
Aleksander Morgado c0c06efb39 build: compile all generated code into a non-installable library
Also simplify the build by using BUILT_SOURCES to avoid needing to specify
custom dependency rules.
2012-10-09 12:20:55 +02:00
Aleksander Morgado 75ccb48f4d libmm-glib: fix multiple documentation issues 2012-10-09 12:20:55 +02:00
Dan Williams b0b1fe3221 cli: format fix 2012-09-27 11:03:39 -05:00
Aleksander Morgado 50ea36c699 nas: Ec/Io given always as a signed integer 2012-09-27 14:28:32 +02:00