~ubuntu-branches/ubuntu/vivid/mpich/vivid-proposed

« back to all changes in this revision

Viewing changes to src/pm/hydra/tools/topo/hwloc/hwloc/tests/ports/include/picl.h

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2014-04-01 20:24:20 UTC
  • mfrom: (5.2.4 sid)
  • Revision ID: package-import@ubuntu.com-20140401202420-t5ey1ia2klt5dkq3
Tags: 3.1-4
* [c3e3398] Disable test_primitives, which is unreliable on some platforms.
            (Closes: #743047)
* [265a699] Add minimal autotest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright © 2011 inria.  All rights reserved.
3
 
 * See COPYING in top-level directory.
4
 
 */
5
 
 
6
 
#ifndef HWLOC_PORT_PICL_H
7
 
#define HWLOC_PORT_PICL_H
8
 
 
9
 
#include <stdint.h>
10
 
#include <string.h>
11
 
 
12
 
#define PICL_PROPNAMELEN_MAX    256
13
 
 
14
 
typedef uint64_t picl_nodehdl_t;
15
 
typedef uint64_t picl_prophdl_t;
16
 
 
17
 
typedef enum {
18
 
  PICL_PTYPE_UNKNOWN,
19
 
  PICL_PTYPE_INT,
20
 
  PICL_PTYPE_UNSIGNED_INT,
21
 
  PICL_PTYPE_TABLE,
22
 
  PICL_PTYPE_CHARSTRING
23
 
} picl_prop_type_t;
24
 
 
25
 
typedef struct {
26
 
  picl_prop_type_t type;
27
 
  size_t size;
28
 
  char name[PICL_PROPNAMELEN_MAX];
29
 
} picl_propinfo_t;
30
 
 
31
 
typedef enum {
32
 
  PICL_SUCCESS,
33
 
  PICL_WALK_TERMINATE,
34
 
  PICL_ENDOFLIST
35
 
} picl_errno_t;
36
 
 
37
 
extern int picl_initialize(void);
38
 
extern int picl_shutdown(void);
39
 
extern int picl_get_root(picl_nodehdl_t *nodehandle);
40
 
extern int picl_get_first_prop(picl_nodehdl_t nodeh, picl_prophdl_t *proph);
41
 
extern int picl_get_next_prop(picl_prophdl_t proph, picl_prophdl_t *nexth);
42
 
extern int picl_get_propinfo(picl_prophdl_t proph, picl_propinfo_t *pi);
43
 
extern int picl_get_propval(picl_prophdl_t proph, void *valbuf, size_t sz);
44
 
extern int picl_get_next_by_row(picl_prophdl_t thish, picl_prophdl_t *proph);
45
 
extern int picl_get_next_by_col(picl_prophdl_t thish, picl_prophdl_t *proph);
46
 
extern int picl_walk_tree_by_class(picl_nodehdl_t rooth, const char *classname, void *c_args, int (*callback_fn)(picl_nodehdl_t hdl, void *args));
47
 
 
48
 
#endif /* HWLOC_PORT_PICL_H */
49