This file is indexed.

/usr/include/dsme/state.h is in libdsme0-dev 0.64.1+15.10.20150929-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/**
   @file state.h

   This file has defines for state module in DSME.
   <p>
   Copyright (C) 2004-2009 Nokia Corporation.

   @author Ismo Laitinen <ismo.laitinen@nokia.com>
   @author Semi Malinen <semi.malinen@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_STATE_H
#define DSME_STATE_H

#ifndef __cplusplus
#define _GNU_SOURCE
#endif

#include "messages.h"
#include <stdbool.h>

/**
   @ingroup state
   States in state-module.
*/

typedef enum {
#define DSME_STATE(STATE, VALUE) DSME_STATE_ ## STATE = VALUE,
#include "state_states.h"
#undef  DSME_STATE
} dsme_state_t;

typedef struct {
    DSMEMSG_PRIVATE_FIELDS
    dsme_state_t state;
} DSM_MSGTYPE_STATE_CHANGE_IND;

typedef struct {
    DSMEMSG_PRIVATE_FIELDS
} DSM_MSGTYPE_SHUTDOWN_REQ;

typedef struct {
    DSMEMSG_PRIVATE_FIELDS
    dsme_state_t state;
} DSM_MSGTYPE_STATE_REQ_DENIED_IND;


typedef dsmemsg_generic_t DSM_MSGTYPE_STATE_QUERY;
typedef dsmemsg_generic_t DSM_MSGTYPE_SAVE_DATA_IND;
typedef dsmemsg_generic_t DSM_MSGTYPE_THERMAL_SHUTDOWN_IND;
typedef dsmemsg_generic_t DSM_MSGTYPE_REBOOT_REQ;
typedef dsmemsg_generic_t DSM_MSGTYPE_POWERUP_REQ;
typedef dsmemsg_generic_t DSM_MSGTYPE_BATTERY_EMPTY_IND;


enum {
    DSME_MSG_ENUM(DSM_MSGTYPE_STATE_CHANGE_IND,     0x00000301),
    DSME_MSG_ENUM(DSM_MSGTYPE_STATE_QUERY,          0x00000302),
    DSME_MSG_ENUM(DSM_MSGTYPE_SAVE_DATA_IND,        0x00000304),
    DSME_MSG_ENUM(DSM_MSGTYPE_POWERUP_REQ,          0x00000305),
    DSME_MSG_ENUM(DSM_MSGTYPE_SHUTDOWN_REQ,         0x00000306),
    DSME_MSG_ENUM(DSM_MSGTYPE_REBOOT_REQ,           0x00000308),
    DSME_MSG_ENUM(DSM_MSGTYPE_STATE_REQ_DENIED_IND, 0x00000309),
    DSME_MSG_ENUM(DSM_MSGTYPE_THERMAL_SHUTDOWN_IND, 0x00000310),
    DSME_MSG_ENUM(DSM_MSGTYPE_BATTERY_EMPTY_IND,    0x00000315),
};


typedef struct {
  DSMEMSG_PRIVATE_FIELDS
  bool alarm_set;
} DSM_MSGTYPE_SET_ALARM_STATE;

typedef struct {
  DSMEMSG_PRIVATE_FIELDS
  bool connected;
} DSM_MSGTYPE_SET_CHARGER_STATE;

typedef struct {
  DSMEMSG_PRIVATE_FIELDS
  bool ongoing;
} DSM_MSGTYPE_SET_EMERGENCY_CALL_STATE;

typedef struct {
  DSMEMSG_PRIVATE_FIELDS
  bool empty;
} DSM_MSGTYPE_SET_BATTERY_STATE;

typedef enum {
  DSM_THERMAL_STATUS_NORMAL = 0,
  DSM_THERMAL_STATUS_LOWTEMP = 1,
  DSM_THERMAL_STATUS_OVERHEATED = 2
} dsme_thermal_status_t;

#define DSM_TEMP_SENSOR_MAX_NAME_LEN 32

typedef struct {
  DSMEMSG_PRIVATE_FIELDS
  dsme_thermal_status_t status;
  int temperature;
  char sensor_name[DSM_TEMP_SENSOR_MAX_NAME_LEN];
} DSM_MSGTYPE_SET_THERMAL_STATUS;


enum {
  DSME_MSG_ENUM(DSM_MSGTYPE_SET_ALARM_STATE,          0x00000307),
  DSME_MSG_ENUM(DSM_MSGTYPE_SET_CHARGER_STATE,        0x00000311),
  /* DSME_MSG_ENUM(DSM_MSGTYPE_SET_THERMAL_STATE,        0x00000312),  not used anymore */
  DSME_MSG_ENUM(DSM_MSGTYPE_SET_EMERGENCY_CALL_STATE, 0x00000313), /* D. Duck */
  DSME_MSG_ENUM(DSM_MSGTYPE_SET_BATTERY_STATE,        0x00000314),
  DSME_MSG_ENUM(DSM_MSGTYPE_SET_THERMAL_STATUS,       0x00000315),
};

#endif