From f3024b46b495ea81563d712059ca6fc0c40ea7c8 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 1 Sep 2010 10:51:22 -0500 Subject: 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. --- libqcdm/src/dm-commands.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libqcdm/src/dm-commands.h') 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; -- cgit v1.2.3-70-g09d2