/
malf.h
63 lines (48 loc) · 1.63 KB
/
malf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**
@file malf.h
DSME internal MALF messages
<p>
Copyright (C) 2009-2010 Nokia Corporation.
@author Matias Muhonen <ext-matias.muhonen@nokia.com>
This file is part of Dsme.
Dsme is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License
version 2.1 as published by the Free Software Foundation.
Dsme is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with Dsme. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DSME_MALF_H
#define DSME_MALF_H
#include <dsme/messages.h>
typedef enum {
DSME_MALF_SOFTWARE,
DSME_MALF_HARDWARE,
DSME_MALF_SECURITY,
DSME_MALF_REASON_COUNT
} DSME_MALF_REASON;
typedef struct {
DSMEMSG_PRIVATE_FIELDS
DSME_MALF_REASON reason;
const char* component; // DANGER: passing a pointer;
// only safe via the internal queue!
// details (if any) are passed in extra
} DSM_MSGTYPE_ENTER_MALF;
enum {
/* NOTE: dsme message types are defined in:
* - libdsme
* - libiphb
* - dsme
*
* When adding new message types
* 1) uniqueness of the identifiers must be
* ensured accross all these source trees
* 2) the dsmemsg_id_name() function in libdsme
* must be made aware of the new message type
*/
DSME_MSG_ENUM(DSM_MSGTYPE_ENTER_MALF, 0x00000900),
};
#endif