2008-12-22 23:23:05 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004-2005 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.
|
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OPAL_PSTAT_BASE_H
|
|
|
|
#define OPAL_PSTAT_BASE_H
|
|
|
|
|
|
|
|
#include "opal_config.h"
|
2013-03-28 01:11:47 +04:00
|
|
|
#include "opal/mca/base/mca_base_framework.h"
|
2008-12-22 23:23:05 +03:00
|
|
|
#include "opal/mca/pstat/pstat.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Global functions for MCA overall pstat open and close
|
|
|
|
*/
|
|
|
|
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
|
|
|
|
/**
|
2013-03-28 01:11:47 +04:00
|
|
|
* Framework structure declaration for this framework
|
2008-12-22 23:23:05 +03:00
|
|
|
*/
|
2013-03-28 01:11:47 +04:00
|
|
|
OPAL_DECLSPEC extern mca_base_framework_t opal_pstat_base_framework;
|
2008-12-22 23:23:05 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Select an available component.
|
|
|
|
*
|
|
|
|
* @return OPAL_SUCCESS Upon success.
|
|
|
|
* @return OPAL_NOT_FOUND If no component can be selected.
|
|
|
|
* @return OPAL_ERROR Upon other failure.
|
|
|
|
*
|
|
|
|
* At the end of this process, we'll either have a single
|
|
|
|
* component that is selected and initialized, or no component was
|
|
|
|
* selected. If no component was selected, subsequent invocation
|
|
|
|
* of the pstat functions will return an error indicating no data
|
|
|
|
* could be obtained
|
|
|
|
*/
|
|
|
|
OPAL_DECLSPEC int opal_pstat_base_select(void);
|
|
|
|
|
|
|
|
OPAL_DECLSPEC extern opal_pstat_base_component_t *opal_pstat_base_component;
|
|
|
|
|
|
|
|
END_C_DECLS
|
|
|
|
|
|
|
|
#endif /* OPAL_BASE_PSTAT_H */
|