root/opal/mca/pmix/pmix4x/pmix/src/mca/psquash/flex128/psquash_flex128_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$
   5  *
   6  * Additional copyrights may follow
   7  *
   8  * $HEADER$
   9  */
  10 
  11 #include <src/include/pmix_config.h>
  12 #include "pmix_common.h"
  13 
  14 #include "src/mca/base/pmix_mca_base_var.h"
  15 #include "src/mca/psquash/psquash.h"
  16 #include "psquash_flex128.h"
  17 
  18 static pmix_status_t component_open(void);
  19 static pmix_status_t component_close(void);
  20 static pmix_status_t component_query(pmix_mca_base_module_t **module, int *priority);
  21 
  22 /*
  23  * Instantiate the public struct with all of our public information
  24  * and pointers to our public functions in it
  25  */
  26 pmix_psquash_base_component_t mca_psquash_flex128_component = {
  27     .base = {
  28         PMIX_PSQUASH_BASE_VERSION_1_0_0,
  29 
  30         /* Component name and version */
  31         .pmix_mca_component_name = "flex128",
  32         PMIX_MCA_BASE_MAKE_VERSION(component,
  33                                    PMIX_MAJOR_VERSION,
  34                                    PMIX_MINOR_VERSION,
  35                                    PMIX_RELEASE_VERSION),
  36 
  37         /* Component open and close functions */
  38         .pmix_mca_open_component = component_open,
  39         .pmix_mca_close_component = component_close,
  40         .pmix_mca_query_component = component_query,
  41     },
  42     .data = {
  43         /* The component is checkpoint ready */
  44         PMIX_MCA_BASE_METADATA_PARAM_CHECKPOINT
  45     }
  46 };
  47 
  48 
  49 static int component_open(void)
  50 {
  51     return PMIX_SUCCESS;
  52 }
  53 
  54 
  55 static int component_query(pmix_mca_base_module_t **module, int *priority)
  56 {
  57     *priority = 20;
  58     *module = (pmix_mca_base_module_t *)&pmix_flex128_module;
  59     return PMIX_SUCCESS;
  60 }
  61 
  62 
  63 static int component_close(void)
  64 {
  65     return PMIX_SUCCESS;
  66 }

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