root/opal/mca/pmix/pmix4x/pmix/src/mca/psquash/native/psquash_native_component.c

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

DEFINITIONS

This source file includes following definitions.
  1. component_open
  2. component_query
  3. component_close

   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2019      IBM Corporation.  All rights reserved.
   4  * Copyright (c) 2019      Mellanox Technologies, Inc.
   5  *                         All rights reserved
   6  *
   7  * $COPYRIGHT$
   8  *
   9  * Additional copyrights may follow
  10  *
  11  * $HEADER$
  12  */
  13 
  14 #include <src/include/pmix_config.h>
  15 #include "pmix_common.h"
  16 
  17 #include "src/mca/base/pmix_mca_base_var.h"
  18 #include "src/mca/psquash/psquash.h"
  19 #include "psquash_native.h"
  20 
  21 static pmix_status_t component_open(void);
  22 static pmix_status_t component_close(void);
  23 static pmix_status_t component_query(pmix_mca_base_module_t **module, int *priority);
  24 
  25 /*
  26  * Instantiate the public struct with all of our public information
  27  * and pointers to our public functions in it
  28  */
  29 pmix_psquash_base_component_t mca_psquash_native_component = {
  30     .base = {
  31         PMIX_PSQUASH_BASE_VERSION_1_0_0,
  32 
  33         /* Component name and version */
  34         .pmix_mca_component_name = "native",
  35         PMIX_MCA_BASE_MAKE_VERSION(component,
  36                                    PMIX_MAJOR_VERSION,
  37                                    PMIX_MINOR_VERSION,
  38                                    PMIX_RELEASE_VERSION),
  39 
  40         /* Component open and close functions */
  41         .pmix_mca_open_component = component_open,
  42         .pmix_mca_close_component = component_close,
  43         .pmix_mca_query_component = component_query,
  44     },
  45     .data = {
  46         /* The component is checkpoint ready */
  47         PMIX_MCA_BASE_METADATA_PARAM_CHECKPOINT
  48     }
  49 };
  50 
  51 
  52 static int component_open(void)
  53 {
  54     return PMIX_SUCCESS;
  55 }
  56 
  57 
  58 static int component_query(pmix_mca_base_module_t **module, int *priority)
  59 {
  60     *priority = 5;
  61     *module = (pmix_mca_base_module_t *)&pmix_psquash_native_module;
  62     return PMIX_SUCCESS;
  63 }
  64 
  65 
  66 static int component_close(void)
  67 {
  68     return PMIX_SUCCESS;
  69 }

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