root/opal/mca/pmix/pmix4x/pmix/src/mca/pdl/base/pdl_base_open.c

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

DEFINITIONS

This source file includes following definitions.
  1. pmix_pdl_base_open

   1 /*
   2  * Copyright (c) 2004-2010 The Trustees of Indiana University.
   3  *                         All rights reserved.
   4  * Copyright (c) 2011-2013 Los Alamos National Security, LLC.
   5  *                         All rights reserved.
   6  * Copyright (c) 2015      Cisco Systems, Inc.  All rights reserved.
   7  * Copyright (c) 2016      Intel, Inc. All rights reserved.
   8  * $COPYRIGHT$
   9  *
  10  * Additional copyrights may follow
  11  *
  12  * $HEADER$
  13  */
  14 
  15 #include <src/include/pmix_config.h>
  16 
  17 #include "src/mca/pdl/base/base.h"
  18 
  19 #include "src/mca/pdl/base/static-components.h"
  20 
  21 
  22 /*
  23  * Globals
  24  */
  25 pmix_pdl_base_module_t *pmix_pdl = NULL;
  26 pmix_pdl_base_component_t *pmix_pdl_base_selected_component = NULL;
  27 
  28 
  29 /*
  30  * Function for finding and opening either all MCA components,
  31  * or the one that was specifically requested via a MCA parameter.
  32  *
  33  * Note that we really don't need this function -- we could specify a
  34  * NULL pointer in the framework declare and the base would do this
  35  * exact same thing.  However, we need to have at least some
  36  * executable code in this file, or some linkers (cough cough OS X
  37  * cough cough) may not actually link in this .o file.
  38  */
  39 int pmix_pdl_base_open(pmix_mca_base_open_flag_t flags)
  40 {
  41     /* Open up all available components */
  42     return pmix_mca_base_framework_components_open(&pmix_pdl_base_framework, flags);
  43 }
  44 
  45 /* VERY IMPORTANT: This framework is static, and is opened before any
  46    other dyanmic frameworks are opened (which makes sense, of course).
  47    But we must mark this framework is NO_DSO so that the MCA framework
  48    base doesn't try to open any dynamic components in this
  49    framework. */
  50 PMIX_MCA_BASE_FRAMEWORK_DECLARE(pmix, pdl, "Dynamic loader framework",
  51                                 NULL /* register */,
  52                                 pmix_pdl_base_open /* open */,
  53                                 NULL /* close */,
  54                                 mca_pdl_base_static_components,
  55                                 PMIX_MCA_BASE_FRAMEWORK_FLAG_NO_DSO);

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