1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 
  20 #ifndef MCA_COMPRESS_ZLIB_EXPORT_H
  21 #define MCA_COMPRESS_ZLIB_EXPORT_H
  22 
  23 #include "opal_config.h"
  24 
  25 #include "opal/util/output.h"
  26 
  27 #include "opal/mca/mca.h"
  28 #include "opal/mca/compress/compress.h"
  29 
  30 #if defined(c_plusplus) || defined(__cplusplus)
  31 extern "C" {
  32 #endif
  33 
  34     
  35 
  36 
  37     struct opal_compress_zlib_component_t {
  38         opal_compress_base_component_t super;  
  39 
  40     };
  41     typedef struct opal_compress_zlib_component_t opal_compress_zlib_component_t;
  42     extern opal_compress_zlib_component_t mca_compress_zlib_component;
  43 
  44     int opal_compress_zlib_component_query(mca_base_module_t **module, int *priority);
  45 
  46     
  47 
  48 
  49     int opal_compress_zlib_module_init(void);
  50     int opal_compress_zlib_module_finalize(void);
  51 
  52     
  53 
  54 
  55     bool opal_compress_zlib_compress_block(uint8_t *inbytes,
  56                                            size_t inlen,
  57                                            uint8_t **outbytes,
  58                                            size_t *olen);
  59     bool opal_compress_zlib_uncompress_block(uint8_t **outbytes, size_t olen,
  60                                              uint8_t *inbytes, size_t len);
  61 
  62 #if defined(c_plusplus) || defined(__cplusplus)
  63 }
  64 #endif
  65 
  66 #endif