1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 
  20 
  21 
  22 
  23 
  24 
  25 
  26 
  27 
  28 
  29 
  30 #ifndef MCA_COMPRESS_H
  31 #define MCA_COMPRESS_H
  32 
  33 #include "opal_config.h"
  34 #include "opal/mca/mca.h"
  35 #include "opal/mca/base/base.h"
  36 #include "opal/class/opal_object.h"
  37 
  38 #if defined(c_plusplus) || defined(__cplusplus)
  39 extern "C" {
  40 #endif
  41 
  42 
  43 
  44 
  45 
  46 typedef int (*opal_compress_base_module_init_fn_t)
  47      (void);
  48 
  49 
  50 
  51 
  52 
  53 typedef int (*opal_compress_base_module_finalize_fn_t)
  54      (void);
  55 
  56 
  57 
  58 
  59 
  60 
  61 
  62 
  63 
  64 
  65 
  66 typedef int (*opal_compress_base_module_compress_fn_t)
  67     (char * fname, char **cname, char **postfix);
  68 
  69 typedef int (*opal_compress_base_module_compress_nb_fn_t)
  70     (char * fname, char **cname, char **postfix, pid_t *child_pid);
  71 
  72 
  73 
  74 
  75 
  76 
  77 
  78 
  79 
  80 
  81 typedef int (*opal_compress_base_module_decompress_fn_t)
  82     (char * cname, char **fname);
  83 typedef int (*opal_compress_base_module_decompress_nb_fn_t)
  84     (char * cname, char **fname, pid_t *child_pid);
  85 
  86 
  87 
  88 
  89 
  90 
  91 
  92 typedef bool (*opal_compress_base_module_compress_string_fn_t)(uint8_t *inbytes,
  93                                                                size_t inlen,
  94                                                                uint8_t **outbytes,
  95                                                                size_t *olen);
  96 typedef bool (*opal_compress_base_module_decompress_string_fn_t)(uint8_t **outbytes, size_t olen,
  97                                                                  uint8_t *inbytes, size_t len);
  98 
  99 
 100 
 101 
 102 
 103 struct opal_compress_base_component_2_0_0_t {
 104     
 105     mca_base_component_t base_version;
 106     
 107     mca_base_component_data_t base_data;
 108 
 109     
 110     int verbose;
 111     
 112     int output_handle;
 113     
 114     int priority;
 115 };
 116 typedef struct opal_compress_base_component_2_0_0_t opal_compress_base_component_2_0_0_t;
 117 typedef struct opal_compress_base_component_2_0_0_t opal_compress_base_component_t;
 118 
 119 
 120 
 121 
 122 struct opal_compress_base_module_1_0_0_t {
 123     
 124     opal_compress_base_module_init_fn_t           init;
 125     
 126     opal_compress_base_module_finalize_fn_t       finalize;
 127 
 128     
 129     opal_compress_base_module_compress_fn_t       compress;
 130     opal_compress_base_module_compress_nb_fn_t    compress_nb;
 131 
 132     
 133     opal_compress_base_module_decompress_fn_t     decompress;
 134     opal_compress_base_module_decompress_nb_fn_t  decompress_nb;
 135 
 136     
 137     opal_compress_base_module_compress_string_fn_t      compress_block;
 138     opal_compress_base_module_decompress_string_fn_t    decompress_block;
 139 };
 140 typedef struct opal_compress_base_module_1_0_0_t opal_compress_base_module_1_0_0_t;
 141 typedef struct opal_compress_base_module_1_0_0_t opal_compress_base_module_t;
 142 
 143 OPAL_DECLSPEC extern opal_compress_base_module_t opal_compress;
 144 
 145 
 146 
 147 
 148 #define OPAL_COMPRESS_BASE_VERSION_2_0_0 \
 149     OPAL_MCA_BASE_VERSION_2_1_0("compress", 2, 0, 0)
 150 
 151 #if defined(c_plusplus) || defined(__cplusplus)
 152 }
 153 #endif
 154 
 155 #endif 
 156