OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

sensor_types.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
3 *
4 * $COPYRIGHT$
5 *
6 * Additional copyrights may follow
7 *
8 * $HEADER$
9 */
10 /** @file:
11 */
12
13 #ifndef ORTE_MCA_SENSOR_TYPES_H
14 #define ORTE_MCA_SENSOR_TYPES_H
15
16 #include "orte_config.h"
17 #include "orte/constants.h"
18
19 #ifdef HAVE_SYS_TIME_H
20 #include <sys/time.h>
21 #endif /* HAVE_SYS_TIME_H */
22
23 #include "opal/dss/dss_types.h"
24
25 /*
26 * General SENSOR types - instanced in runtime/orte_globals.c
27 */
28
29 BEGIN_C_DECLS
30
31 enum {
32 ORTE_SENSOR_SCALE_LINEAR,
33 ORTE_SENSOR_SCALE_LOG,
34 ORTE_SENSOR_SCALE_SIGMOID
35 };
36
37 /*
38 * Structure for passing data from sensors
39 */
40 typedef struct {
41 opal_object_t super;
42 char *sensor;
43 struct timeval timestamp;
44 opal_byte_object_t data;
45 } orte_sensor_data_t;
46 ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_sensor_data_t);
47
48 END_C_DECLS
49
50 #endif
dss_types.h
Buffer management types.
opal_object_t
Base object.
Definition: opal_object.h:182
orte_sensor_data_t
Definition: sensor_types.h:40
opal_byte_object_t
Definition: dss_types.h:47
OBJ_CLASS_DECLARATION
#define OBJ_CLASS_DECLARATION(NAME)
Declaration for class descriptor.
Definition: opal_object.h:236