2004-08-02 04:24:22 +04:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-08-02 04:24:22 +04:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal_config.h"
|
2004-08-02 04:24:22 +04:00
|
|
|
|
2005-07-03 20:22:16 +04:00
|
|
|
#include "opal/class/opal_list.h"
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal/mca/base/base.h"
|
2004-08-02 04:24:22 +04:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local functions
|
|
|
|
*/
|
2005-07-03 20:06:07 +04:00
|
|
|
static void cl_constructor(opal_object_t *obj);
|
|
|
|
static void cpl_constructor(opal_object_t *obj);
|
2004-08-02 04:24:22 +04:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class instance of the mca_base_component_list_item_t class
|
|
|
|
*/
|
|
|
|
OBJ_CLASS_INSTANCE(mca_base_component_list_item_t,
|
2005-07-03 20:22:16 +04:00
|
|
|
opal_list_item_t, cl_constructor, NULL);
|
2004-08-02 04:24:22 +04:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class instance of the mca_base_component_priority_list_item_t class
|
|
|
|
*/
|
|
|
|
OBJ_CLASS_INSTANCE(mca_base_component_priority_list_item_t,
|
2004-11-12 19:55:41 +03:00
|
|
|
mca_base_component_list_item_t, cpl_constructor, NULL);
|
2004-08-02 04:24:22 +04:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Just do basic sentinel intialization
|
|
|
|
*/
|
2005-07-03 20:06:07 +04:00
|
|
|
static void cl_constructor(opal_object_t *obj)
|
2004-08-02 04:24:22 +04:00
|
|
|
{
|
|
|
|
mca_base_component_list_item_t *cli = (mca_base_component_list_item_t *) obj;
|
|
|
|
cli->cli_component = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Just do basic sentinel intialization
|
|
|
|
*/
|
2005-07-03 20:06:07 +04:00
|
|
|
static void cpl_constructor(opal_object_t *obj)
|
2004-08-02 04:24:22 +04:00
|
|
|
{
|
|
|
|
mca_base_component_priority_list_item_t *cpli =
|
|
|
|
(mca_base_component_priority_list_item_t *) obj;
|
|
|
|
cpli->cpli_priority = -1;
|
|
|
|
}
|