aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-12-24 00:01:25 +0100
committerHarald Welte <laforge@gnumonks.org>2016-12-24 00:01:25 +0100
commit654f1179c06992c65d5b4ea6b067f1846ce19ac9 (patch)
tree4d6b854469d033066b3c0a896ec9c741a74b3790
parent4359a48ca6b4517161b9bb771bfb0a8d06cdceac (diff)
cosmetic: some more comments
-rw-r--r--src/protocol.h12
-rw-r--r--src/qmi_decode.c2
2 files changed, 14 insertions, 0 deletions
diff --git a/src/protocol.h b/src/protocol.h
index 21601ce..f4aff77 100644
--- a/src/protocol.h
+++ b/src/protocol.h
@@ -19,6 +19,10 @@ struct msgb;
* 25 64 00 6C 31 5F 61 63 71 2E 63 00 %d.l1_acq.c.
*/
+/***********************************************************************
+ * Extended Message Service (DIAG_EXT_MSG_F)
+ ***********************************************************************/
+
struct ext_log_msg {
/* msg_hdr_type equivalent */
uint8_t type;
@@ -61,6 +65,10 @@ struct diag_msg_ext {
} __attribute__((packed));
+/***********************************************************************
+ * Log Service (IAG_LOG_F)
+ ***********************************************************************/
+
/* message header for DIAG_LOG_F */
struct diag_log_hdr {
uint8_t cmd_code;
@@ -77,6 +85,10 @@ struct log_hdr {
} __attribute__((packed));
+/***********************************************************************
+ * Command Service (DIAG_SUBSYS_CMD_F)
+ ***********************************************************************/
+
/* extended DIAG packet, */
struct diagpkt_subsys_hdr {
uint8_t command; /* DIAG_SUBSYS_CMD_F */
diff --git a/src/qmi_decode.c b/src/qmi_decode.c
index 23af90e..dec48a4 100644
--- a/src/qmi_decode.c
+++ b/src/qmi_decode.c
@@ -3,6 +3,8 @@
#include <libqmi-glib.h>
+/* A small wrapper around libqmi-glib to give us a human-readable string
+ * representation of QMI messages that we receive from DIAG */
int dump_qmi_msg(const uint8_t *data, unsigned int len)
{
GByteArray *buffer;