aboutsummaryrefslogtreecommitdiff
path: root/libqcdm/src/dm-commands.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-09-01 10:51:22 -0500
committerDan Williams <dcbw@redhat.com>2010-09-01 10:51:22 -0500
commitf3024b46b495ea81563d712059ca6fc0c40ea7c8 (patch)
tree350dc19e1d612561106c2d38f1ba4478a2f72920 /libqcdm/src/dm-commands.h
parent48aabcb60be8aed9822de373c14df01fead62ee3 (diff)
qcdm: add event reporting on/off command
Doesn't parse any events yet since we don't know what any events are. We also need to fix up ModemManager to handle unsolicited responses in the QcdmSerialPort class.
Diffstat (limited to 'libqcdm/src/dm-commands.h')
-rw-r--r--libqcdm/src/dm-commands.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libqcdm/src/dm-commands.h b/libqcdm/src/dm-commands.h
index 8f995fef..6ce3c5da 100644
--- a/libqcdm/src/dm-commands.h
+++ b/libqcdm/src/dm-commands.h
@@ -377,6 +377,20 @@ struct DMCmdExtLogMask {
} __attribute__ ((packed));
typedef struct DMCmdExtLogMask DMCmdExtLogMask;
+struct DMCmdEventReport {
+ guint8 code;
+ guint8 on;
+} __attribute__ ((packed));
+typedef struct DMCmdEventReport DMCmdEventReport;
+
+struct DMCmdEventReportRsp {
+ guint8 code;
+ guint16 len;
+ guint16 event_id;
+ guint8 data[0];
+} __attribute__ ((packed));
+typedef struct DMCmdEventReportRsp DMCmdEventReportRsp;
+
/* DIAG_SUBSYS_NW_CONTROL_* subsys command */
struct DMCmdSubsysNwSnapshotReq {
DMCmdSubsysHeader hdr;