1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 
  20 
  21 
  22 
  23 #ifndef ORTE_INFO_TOOL_H
  24 #define ORTE_INFO_TOOL_H
  25 #include "orte_config.h"
  26 
  27 #include "opal/class/opal_list.h"
  28 #include "opal/class/opal_pointer_array.h"
  29 #include "opal/util/cmd_line.h"
  30 #include "opal/util/printf.h"
  31 #include "opal/mca/mca.h"
  32 
  33 BEGIN_C_DECLS
  34 
  35 
  36 
  37 
  38 
  39 extern bool orte_info_pretty;
  40 extern opal_cmd_line_t *orte_info_cmd_line;
  41 
  42 extern const char *orte_info_type_all;
  43 extern const char *orte_info_type_opal;
  44 extern const char *orte_info_type_base;
  45 
  46 extern opal_pointer_array_t mca_types;
  47 
  48 
  49 
  50 
  51 
  52 
  53 extern const char *orte_info_ver_full;
  54 extern const char *orte_info_ver_major;
  55 extern const char *orte_info_ver_minor;
  56 extern const char *orte_info_ver_release;
  57 extern const char *orte_info_ver_greek;
  58 extern const char *orte_info_ver_svn;
  59 
  60 void orte_info_do_version(bool want_all, opal_cmd_line_t *cmd_line);
  61 void orte_info_show_orte_version(const char *scope);
  62 void orte_info_show_component_version(const char *type_name,
  63                                       const char *component_name,
  64                                       const char *scope,
  65                                       const char *ver_type);
  66 
  67 
  68 
  69 
  70 
  71 extern const char *orte_info_component_all;
  72 extern const char *orte_info_param_all;
  73 
  74 extern const char *orte_info_path_prefix;
  75 extern const char *orte_info_path_bindir;
  76 extern const char *orte_info_path_libdir;
  77 extern const char *orte_info_path_incdir;
  78 extern const char *orte_info_path_mandir;
  79 extern const char *orte_info_path_pkglibdir;
  80 extern const char *orte_info_path_sysconfdir;
  81 extern const char *orte_info_path_exec_prefix;
  82 extern const char *orte_info_path_sbindir;
  83 extern const char *orte_info_path_libexecdir;
  84 extern const char *orte_info_path_datarootdir;
  85 extern const char *orte_info_path_datadir;
  86 extern const char *orte_info_path_sharedstatedir;
  87 extern const char *orte_info_path_localstatedir;
  88 extern const char *orte_info_path_infodir;
  89 extern const char *orte_info_path_pkgdatadir;
  90 extern const char *orte_info_path_pkgincludedir;
  91 
  92 void orte_info_do_params(bool want_all, bool want_internal);
  93 void orte_info_show_mca_params(const char *type, const char *component,
  94                                bool want_internal);
  95 
  96 void orte_info_do_path(bool want_all, opal_cmd_line_t *cmd_line);
  97 void orte_info_show_path(const char *type, const char *value);
  98 
  99 void orte_info_do_arch(void);
 100 void orte_info_do_hostname(void);
 101 void orte_info_do_config(bool want_all);
 102 
 103 
 104 
 105 
 106 void orte_info_out(const char *pretty_message,
 107                    const char *plain_message,
 108                    const char *value);
 109 void orte_info_out_int(const char *pretty_message,
 110                        const char *plain_message,
 111                        int value);
 112 
 113 
 114 
 115 typedef struct {
 116     opal_list_item_t super;
 117     char *type;
 118     opal_list_t *components;
 119 } orte_info_component_map_t;
 120 ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_info_component_map_t);
 121 
 122 extern opal_pointer_array_t orte_component_map;
 123 
 124 void orte_info_components_open(void);
 125 void orte_info_components_close(void);
 126 
 127 END_C_DECLS
 128 
 129 #endif