This source file includes following definitions.
- state_hnp_open
- state_hnp_close
- state_hnp_component_query
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 #include "orte_config.h"
  14 #include "opal/util/output.h"
  15 
  16 #include "orte/mca/state/state.h"
  17 #include "orte/mca/state/base/base.h"
  18 #include "state_hnp.h"
  19 
  20 
  21 
  22 
  23 const char *orte_state_hnp_component_version_string =
  24     "ORTE STATE hnp MCA component version " ORTE_VERSION;
  25 
  26 
  27 
  28 
  29 static int state_hnp_open(void);
  30 static int state_hnp_close(void);
  31 static int state_hnp_component_query(mca_base_module_t **module, int *priority);
  32 
  33 
  34 
  35 
  36 
  37 orte_state_base_component_t mca_state_hnp_component =
  38 {
  39     
  40 
  41 
  42     .base_version = {
  43         ORTE_STATE_BASE_VERSION_1_0_0,
  44         
  45         .mca_component_name = "hnp",
  46         MCA_BASE_MAKE_VERSION(component, ORTE_MAJOR_VERSION, ORTE_MINOR_VERSION,
  47                               ORTE_RELEASE_VERSION),
  48 
  49         
  50         .mca_open_component = state_hnp_open,
  51         .mca_close_component = state_hnp_close,
  52         .mca_query_component = state_hnp_component_query,
  53     },
  54     .base_data = {
  55         
  56         MCA_BASE_METADATA_PARAM_CHECKPOINT
  57     },
  58 };
  59 
  60 static int my_priority=60;
  61 
  62 static int state_hnp_open(void)
  63 {
  64     return ORTE_SUCCESS;
  65 }
  66 
  67 static int state_hnp_close(void)
  68 {
  69     return ORTE_SUCCESS;
  70 }
  71 
  72 static int state_hnp_component_query(mca_base_module_t **module, int *priority)
  73 {
  74     if (ORTE_PROC_IS_HNP && !ORTE_PROC_IS_MASTER) {
  75         
  76         *priority = my_priority;
  77         *module = (mca_base_module_t *)&orte_state_hnp_module;
  78         return ORTE_SUCCESS;
  79     }
  80 
  81     *priority = -1;
  82     *module = NULL;
  83     return ORTE_ERROR;
  84 }