2009-02-19 23:46:36 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2015-06-24 06:59:57 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2009-02-19 23:46:36 +03:00
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2017-01-23 20:14:20 +03:00
|
|
|
* Copyright (c) 2017 Intel, Inc. All rights reserved.
|
2009-02-19 23:46:36 +03:00
|
|
|
* $COPYRIGHT$
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2009-02-19 23:46:36 +03:00
|
|
|
* Additional copyrights may follow
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2009-02-19 23:46:36 +03:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @file:
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ORTE_REGEX_H_
|
|
|
|
#define _ORTE_REGEX_H_
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
|
|
|
|
2011-07-07 22:54:30 +04:00
|
|
|
#include "opal/class/opal_value_array.h"
|
|
|
|
#include "opal/class/opal_list.h"
|
|
|
|
|
2009-06-24 00:25:38 +04:00
|
|
|
#include "orte/mca/odls/odls_types.h"
|
2009-06-17 06:54:20 +04:00
|
|
|
#include "orte/runtime/orte_globals.h"
|
|
|
|
|
2009-02-19 23:46:36 +03:00
|
|
|
BEGIN_C_DECLS
|
|
|
|
|
2011-07-07 22:54:30 +04:00
|
|
|
typedef struct {
|
|
|
|
opal_list_item_t super;
|
2017-03-30 04:28:25 +03:00
|
|
|
int vpid;
|
2011-07-07 22:54:30 +04:00
|
|
|
int cnt;
|
2017-02-02 03:33:14 +03:00
|
|
|
int slots;
|
|
|
|
orte_topology_t *t;
|
2011-07-07 22:54:30 +04:00
|
|
|
} orte_regex_range_t;
|
|
|
|
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_regex_range_t);
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
/* list object */
|
|
|
|
opal_list_item_t super;
|
|
|
|
char *prefix;
|
|
|
|
char *suffix;
|
|
|
|
int num_digits;
|
|
|
|
opal_list_t ranges;
|
|
|
|
} orte_regex_node_t;
|
|
|
|
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_regex_node_t);
|
|
|
|
|
2009-02-19 23:46:36 +03:00
|
|
|
ORTE_DECLSPEC int orte_regex_extract_node_names(char *regexp, char ***names);
|
|
|
|
|
|
|
|
END_C_DECLS
|
|
|
|
#endif
|