Commit Graph

14 Commits

Author SHA1 Message Date
Bjorn Andersson
a3aa10545b qmic: Move simple type array to common file
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-01-30 16:06:33 -08:00
Bjorn Andersson
eaa0f3b8a5 parser: Move parser code from qmic.c to parser.c
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-01-30 16:03:50 -08:00
Bjorn Andersson
4c693b7551 qmic: Adopt common list implementation
Use the list implementation from other projects instead of rolling
custom list operations throughout the codebase.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-01-30 15:55:49 -08:00
Bjorn Andersson
b4e899fffc qmi: Annotate yyerror noreturn
The yyerror() doesn't return, so let the compiler know this, in order to
silence warnings about potentially uninitialized variables.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-01-30 12:09:42 -08:00
Bjorn Andersson
1c036374ea Merge pull request #1 from ndechesne/gnu
Makefile: implement GNU Coding Standard for Makefiles
2016-06-06 08:40:23 -07:00
Nicolas Dechesne
d42cf61564 Makefile: implement GNU Coding Standard for Makefiles
GNU coding standards notably specifies:
* install files with the $(DESTDIR) to the target system image
* install files with the $(prefix), not $(PREFIX)
* the default value of $(prefix) should be /usr/local

as per https://www.gnu.org/prep/standards/html_node/Directory-Variables.html.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2016-06-05 22:00:13 +02:00
Bjorn Andersson
62f4c6a799 qmic: Update makefile for packaging
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-06-03 15:14:13 -07:00
Bjorn Andersson
08d9f3694b qmic: Add .gitignore
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-06-02 10:27:42 -07:00
Bjorn Andersson
7b9c51d078 qmic: Add the missing LICENSE file
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-06-02 10:26:43 -07:00
Bjorn Andersson
1ef360e6ae qmic: Add missing string type in structs
Structs can contain strings, we still don't encode and decode these but
this change makes the generated header file compilable.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-06-02 10:25:01 -07:00
Bjorn Andersson
0b09df395a qmic: Correct qmi_message string accessor
The accessor function generator for strings in qmi messages output code
that is incorrect, fix this.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-05-10 13:25:51 -07:00
Bjorn Andersson
9d4a317d4f qmic: Support specifying request, response or indication type
Allow specifying message type for the tlv support functions to verify
and create the right type of qmi header.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-02-07 21:24:02 -08:00
Bjorn Andersson
241fff829e qmic: Initial basic implementation
This initial implementation is capable of generating encoder and decoder
accessors for messages with basic integers, strings, arrays and structs.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-02-07 09:27:50 -08:00
Bjorn Andersson
739fbdc423 Initial commit for qmic 2016-02-07 09:25:31 -08:00