root/opal/mca/compress/zlib/compress_zlib.h

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

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2004-2010 The Trustees of Indiana University.
   3  *                         All rights reserved.
   4  * Copyright (c) 2019      Intel, Inc.  All rights reserved.
   5  * $COPYRIGHT$
   6  *
   7  * Additional copyrights may follow
   8  *
   9  * $HEADER$
  10  */
  11 
  12 /**
  13  * @file
  14  *
  15  * ZLIB COMPRESS component
  16  *
  17  * Uses the zlib library
  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      * Local Component structures
  36      */
  37     struct opal_compress_zlib_component_t {
  38         opal_compress_base_component_t super;  /** Base COMPRESS component */
  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      * Module functions
  48      */
  49     int opal_compress_zlib_module_init(void);
  50     int opal_compress_zlib_module_finalize(void);
  51 
  52     /*
  53      * Actual funcationality
  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 /* MCA_COMPRESS_ZLIB_EXPORT_H */

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