diff options
author | Dan Williams <dcbw@redhat.com> | 2012-01-12 13:00:52 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-01-12 13:00:52 -0600 |
commit | a6548ebe40145865aff925877d9ceabdc54c9b57 (patch) | |
tree | f70476b61622944d95edbd6e6b82edab7fcc8692 /libqcdm/src/dm-commands.h | |
parent | 474d9136ba6b99cb8ec2dba54621b1ce2a69c144 (diff) |
qcdm: start filling out log messages and items
Log messages are enabled by LOG_CONFIG and are then reported
as unsolicited responses with code DM_CMD_LOG. Each log type
appears to have its own message format which are now being
added to log-items.h.
Diffstat (limited to 'libqcdm/src/dm-commands.h')
-rw-r--r-- | libqcdm/src/dm-commands.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libqcdm/src/dm-commands.h b/libqcdm/src/dm-commands.h index db152d0f..385241bc 100644 --- a/libqcdm/src/dm-commands.h +++ b/libqcdm/src/dm-commands.h @@ -396,6 +396,17 @@ struct DMCmdPilotSetsRsp { } __attribute__ ((packed)); typedef struct DMCmdPilotSetsRsp DMCmdPilotSetsRsp; +struct DMCmdLog { + u_int8_t code; + u_int8_t more; + u_int16_t len; + u_int16_t _unknown2; /* contains same value as len */ + u_int16_t log_code; + u_int64_t timestamp; + u_int8_t data[0]; +} __attribute__ ((packed)); +typedef struct DMCmdLog DMCmdLog; + struct DMCmdExtLogMask { u_int8_t code; /* Bit number of highest '1' in 'mask'; set to 0 to get current mask. */ |