root/opal/mca/base/mca_base_list.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. cl_constructor
  2. cpl_constructor

   1 /*
   2  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   3  *                         University Research and Technology
   4  *                         Corporation.  All rights reserved.
   5  * Copyright (c) 2004-2005 The University of Tennessee and The University
   6  *                         of Tennessee Research Foundation.  All rights
   7  *                         reserved.
   8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   9  *                         University of Stuttgart.  All rights reserved.
  10  * Copyright (c) 2004-2005 The Regents of the University of California.
  11  *                         All rights reserved.
  12  * $COPYRIGHT$
  13  *
  14  * Additional copyrights may follow
  15  *
  16  * $HEADER$
  17  */
  18 
  19 #include "opal_config.h"
  20 
  21 #include "opal/class/opal_list.h"
  22 #include "opal/mca/base/base.h"
  23 
  24 
  25 /*
  26  * Local functions
  27  */
  28 static void cl_constructor(opal_object_t *obj);
  29 static void cpl_constructor(opal_object_t *obj);
  30 
  31 
  32 /*
  33  * Class instance of the mca_base_component_list_item_t class
  34  */
  35 OBJ_CLASS_INSTANCE(mca_base_component_list_item_t,
  36                    opal_list_item_t, cl_constructor, NULL);
  37 
  38 
  39 /*
  40  * Class instance of the mca_base_component_priority_list_item_t class
  41  */
  42 OBJ_CLASS_INSTANCE(mca_base_component_priority_list_item_t,
  43                    mca_base_component_list_item_t, cpl_constructor, NULL);
  44 
  45 
  46 /*
  47  * Just do basic sentinel intialization
  48  */
  49 static void cl_constructor(opal_object_t *obj)
  50 {
  51   mca_base_component_list_item_t *cli = (mca_base_component_list_item_t *) obj;
  52   cli->cli_component = NULL;
  53 }
  54 
  55 
  56 /*
  57  * Just do basic sentinel intialization
  58  */
  59 static void cpl_constructor(opal_object_t *obj)
  60 {
  61   mca_base_component_priority_list_item_t *cpli =
  62     (mca_base_component_priority_list_item_t *) obj;
  63   cpli->cpli_priority = -1;
  64 }

/* [<][>][^][v][top][bottom][index][help] */