~phablet-team/libdsme/trunk

« back to all changes in this revision

Viewing changes to include/dsme/processwd.h

  • Committer: David Greaves
  • Author(s): David Greaves
  • Date: 2015-10-20 23:02:57 UTC
  • Revision ID: git-v1:63465ea6dcafb5ca26c7d78facc992eecfc62d71
Migration to git.merproject.org

Signed-off-by: David Greaves <david.greaves@jolla.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
   @file processwd.h
3
 
 
4
 
   SW watchdog messages for DSME
5
 
   <p>
6
 
   Copyright (C) 2004-2009 Nokia Corporation.
7
 
 
8
 
   @author Semi Malinen <semi.malinen@nokia.com>
9
 
 
10
 
   This file is part of Dsme.
11
 
 
12
 
   Dsme is free software; you can redistribute it and/or modify
13
 
   it under the terms of the GNU Lesser General Public License
14
 
   version 2.1 as published by the Free Software Foundation.
15
 
 
16
 
   Dsme is distributed in the hope that it will be useful,
17
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19
 
   Lesser General Public License for more details.
20
 
 
21
 
   You should have received a copy of the GNU Lesser General Public
22
 
   License along with Dsme.  If not, see <http://www.gnu.org/licenses/>.
23
 
*/
24
 
#ifndef DSME_PROCESSWD_H
25
 
#define DSME_PROCESSWD_H
26
 
 
27
 
#include "dsme/messages.h"
28
 
 
29
 
enum {
30
 
    DSME_MSG_ENUM(DSM_MSGTYPE_PROCESSWD_CREATE,       0x000000500),
31
 
    DSME_MSG_ENUM(DSM_MSGTYPE_PROCESSWD_DELETE,       0x000000501),
32
 
    DSME_MSG_ENUM(DSM_MSGTYPE_PROCESSWD_CLEAR,        0x000000502),
33
 
    DSME_MSG_ENUM(DSM_MSGTYPE_PROCESSWD_SET_INTERVAL, 0x000000503),
34
 
    DSME_MSG_ENUM(DSM_MSGTYPE_PROCESSWD_PING,         0x000000504),
35
 
    DSME_MSG_ENUM(DSM_MSGTYPE_PROCESSWD_PONG,         0x000000504),
36
 
    DSME_MSG_ENUM(DSM_MSGTYPE_PROCESSWD_MANUAL_PING,  0x000000505),
37
 
};
38
 
 
39
 
/**
40
 
   Specific message type that is used to request sw watchdog 
41
 
   @ingroup message_if
42
 
*/
43
 
typedef struct {
44
 
  DSMEMSG_PRIVATE_FIELDS
45
 
  pid_t pid;
46
 
} DSM_MSGTYPE_PROCESSWD_PING;
47
 
 
48
 
typedef DSM_MSGTYPE_PROCESSWD_PING DSM_MSGTYPE_PROCESSWD_PONG;
49
 
typedef DSM_MSGTYPE_PROCESSWD_PING DSM_MSGTYPE_PROCESSWD_CREATE;
50
 
typedef DSM_MSGTYPE_PROCESSWD_PING DSM_MSGTYPE_PROCESSWD_DELETE;
51
 
 
52
 
typedef dsmemsg_generic_t     DSM_MSGTYPE_PROCESSWD_MANUAL_PING;
53
 
 
54
 
typedef struct {
55
 
  DSMEMSG_PRIVATE_FIELDS
56
 
  u_int32_t timeout;
57
 
} DSM_MSGTYPE_PROCESSWD_SET_INTERVAL;
58
 
 
59
 
#endif