aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux
Commit message (Collapse)AuthorAgeFilesLines
* oma: setup generation of the OMA service supportAleksander Morgado2013-09-041-2/+2
|
* uim: integrate the UIM serviceAleksander Morgado2013-09-021-2/+2
| | | | Also implement "Reset" and "Read Record" request/response.
* qmi-codegen: allow handling built-in sequence numbers in arraysAleksander Morgado2013-07-151-22/+125
| | | | | | | | | | TLVs are really limited in size, so if you want to have truly long data passed between host and modem, you may end up needing multiple QMI messages where the long TLV is split in segments. Currently support this by handling a built-in sequence number expected to be found between the array size prefix and the array itself (see e.g. TLV 0x13 (PRL) in 'DMS Activate Manual'). This sequence number can be enabled with the new 'sequence-prefix-format' keyword in the array definition.
* pbm: setup generation of the PBM service supportAleksander Morgado2013-07-041-2/+2
| | | | Only 'Indication Register' message for now.
* dms: activation code string needs explicit 1-byte length prefixAleksander Morgado2013-03-071-5/+5
| | | | Reported by Arman Uguray <armansito@google.com>
* qmi-codegen: clean up compiled python filesMarius Kotsbak2012-12-241-0/+2
| | | | | These caused problems for deb packaging, as their content depends on the Python version used.
* qmi-codegen python3: change string.lower(str) to str.lower()Shawn J. Goff2012-12-171-2/+2
| | | | | | | The string.lower(str) class method is no longer available. sed regex: s/string\.lower(\(.*\))/\1.lower()/
* qmi-codegen python3: fix dict.has_key('key') to 'key' in dictShawn J. Goff2012-12-171-1/+1
| | | | | | | Python 3 no longer supports the has_key() method. sed regex: s/\([^ ]\+\)\.has_key(\([^)]*\))/\2 in \1/g
* qmi-codegen python3: change string.replace() class method use to ↵Shawn J. Goff2012-12-173-8/+7
| | | | | | | | | | str.replace() instance method Python 3 doesn't support the replace class method; it's now an instance method only. string.replace(object, old, new) changes to object.replace(old, new) sed: s/string\.replace(\([^,]*\), /\1.replace(/
* qmi-codegen: fix some python3 compatibility issuesDan Williams2012-12-175-14/+14
| | | | Simple methods are no longer in the string module.
* qmi-codegen: translate the values of enums/flags in tracesAleksander Morgado2012-11-025-27/+52
|
* qmi-codegen: fix computation of expected TLV length when using stringsAleksander Morgado2012-11-021-2/+2
|
* qmi-codegen: validate TLV before really reading itAleksander Morgado2012-10-3010-23/+220
| | | | | | | | | | 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.
* libqmi-glib,utils: no need to pass endianness when reading/writing single bytesAleksander Morgado2012-10-291-10/+25
|
* libqmi-glib,qmi-codegen: add endian-ness annotation capabilityDan Williams2012-10-233-4/+25
| | | | | | | | 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.
* libqmi-glib,qmi-codegen: cancelled operations will issue an ABORT messageAleksander Morgado2012-10-101-1/+2
| | | | | | 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.
* libqmi-glib,qmi-codegen: timed out operations will issue an ABORT messageAleksander Morgado2012-10-104-40/+147
| | | | | | | | | 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.
* libqmi-glib,utils: make qmi_utils_str_hex() private to the libraryAleksander Morgado2012-10-091-1/+1
|
* qmi-codegen: make internal get_printable() and get_version_introduced()Aleksander Morgado2012-10-091-20/+18
| | | | These methods are (should only be) used only by the library.
* docs: improve documentation of enums, flags and errorsAleksander Morgado2012-10-093-12/+38
|
* qmi-codegen: request creator and response/indication parsers are privateAleksander Morgado2012-10-092-46/+8
|
* libqmi-glib: completely hide the implicit CTL Client in the APIAleksander Morgado2012-10-091-11/+14
|
* libqmi-glib: new header file for private enum/flag typesAleksander Morgado2012-10-091-0/+3
|
* build: include missing files in distAleksander Morgado2012-10-091-0/+1
|
* docs: improve generated `libqmi-glib' documentationAleksander Morgado2012-10-0914-15/+396
| | | | | 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.
* libmm-glib: fix multiple documentation issuesAleksander Morgado2012-10-093-5/+5
|
* qmi-codegen: don't issue the array element clear function on 'Input' arraysAleksander Morgado2012-09-266-17/+32
| | | | | | | When an array is required to be passed in an input TLV, the user who created it is responsible for freeing it. Therefore, we should not dump the static array element clear function in these cases, or these unused methods will end up breaking the compilation.
* message: swapped buffer/length variables in `qmi_message_get_tlv_printable()'Aleksander Morgado2012-09-261-2/+2
|
* message: renamed `qmi_message_tlv_foreach()' to `qmi_message_foreach_raw_tlv()'Aleksander Morgado2012-09-261-4/+4
|
* message: renamed `qmi_message_tlv_add()' to `qmi_message_add_raw_tlv()'Aleksander Morgado2012-09-261-5/+5
| | | | | | Also swapped length and buffer variables; it no longer follows the 'TLV' name (type,length,value), but it's more consistent with other interfaces where buffer is given first and then the length.
* message: renamed `qmi_message_tlv_get()' to `qmi_message_get_raw_tlv()'Aleksander Morgado2012-09-262-16/+16
| | | | Also made it return directly a pointer to the raw data buffer.
* libqmi-glib,utils: use constant buffer pointer when reading variablesAleksander Morgado2012-09-262-3/+3
| | | | | | | | The contents of the input buffer are never modified when reading variables from it, so better use a constant pointer in the methods doing it. What it does change is the pointer to the current position in the constant buffer.
* qmi-codegen: fix error reporting when failed parsing JSONAleksander Morgado2012-09-241-1/+3
| | | | | | | If we get an error parsing a JSON file we really want to have the exact line number where the error happened, so don't just skip the comment lines and substitute them with an empty line instead so that the line numbers don't change.
* qmi-codegen: ensure helper methods get always generatedAleksander Morgado2012-09-243-0/+20
| | | | | | | | | For those variables which are containers of other variables (struct, sequence and array), ensure we call `emit_helper_methods()' in order to generate variable specific dispose() helpers and such. This fixes the case of nested arrays of structs (arrays of structs with arrays of structs whithin).
* qmi-codegen: for strings, use 'size-prefix-format' instead of ↵Aleksander Morgado2012-09-191-4/+7
| | | | | | | | | | | | | | | | '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"
* qmi-codegen: for arrays, use a new 'size-prefix-format' instead of 'array-size'Aleksander Morgado2012-09-191-5/+6
| | | | | | | | | | | | | | | | | | 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.
* qmi-codegen: fix invalid `g_array_unref()' calls in generated codeAleksander Morgado2012-09-191-1/+2
|
* qmi-codegen: fix printable indicationsAleksander Morgado2012-09-181-24/+29
|
* qmi-codegen: fix memleak in generated codeAleksander Morgado2012-09-181-2/+1
| | | | The contents of the containers were not being freed properly.
* pds: setup generation of the PDS service supportAleksander Morgado2012-09-181-2/+2
| | | | Including "PDS Reset".
* qmi-codegen: allow nesting arraysAleksander Morgado2012-09-181-24/+30
|
* qmi-codegen: handle string arraysDan Williams2012-09-081-2/+15
| | | | | | | | | | | | Like these: struct { uint8 num_instances; struct { uint8 length; char data[]; }; };
* qmi-codegen: handle fixed-size arraysDan Williams2012-09-081-19/+54
| | | | Like IPv6 addresses.
* qmi-codegen: handle variable-sized string length prefix fieldsDan Williams2012-09-081-8/+16
| | | | | Most string lengths are UINT8, but some (WDS Get Current Settings PCSCF Domain Name List, for example) are UINT16.
* wms: setup generation of the WMS service supportAleksander Morgado2012-09-061-2/+2
| | | | Including "WMS Reset".
* qmi-codegen: allow 'max-size' in output string variablesAleksander Morgado2012-09-041-0/+4
| | | | | | | If 'max-size' is given for an output string variable, we will read up to the specified number of bytes from the buffer. This will help us handle cases where the firmware of the device doesn't match what it sends with what it wanted to send (e.g. IMEI longer than 15 characters).
* libqmi-glib: register errors in DBusAleksander Morgado2012-08-272-5/+43
|
* build: cleanup dependenciesAleksander Morgado2012-08-022-15/+27
| | | | | | The service-specific implementation header needs to include only the raw enums/flags headers; while the source needs to include the enum/flags types headers.
* build: autogenerate 64bit flags helpersAleksander Morgado2012-07-264-1/+92
|
* qmi-codegen: allow indications without output TLVsAleksander Morgado2012-07-232-144/+198
|