OpenMPI  0.1.1
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;
47 
48 END_C_DECLS
49 
50 #endif
Buffer management types.
Base object.
Definition: opal_object.h:182
Definition: sensor_types.h:40
Definition: dss_types.h:47
#define OBJ_CLASS_DECLARATION(NAME)
Declaration for class descriptor.
Definition: opal_object.h:236