root/opal/mca/pmix/pmix4x/pmix/src/mca/pcompress/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 "pmix_config.h"
  24 
  25 #include "src/util/output.h"
  26 
  27 #include "src/mca/mca.h"
  28 #include "src/mca/pcompress/pcompress.h"
  29 
  30 #if defined(c_plusplus) || defined(__cplusplus)
  31 extern "C" {
  32 #endif
  33 
  34     extern pmix_mca_base_component_t mca_pcompress_zlib_component;
  35 
  36     /*
  37      * Module functions
  38      */
  39     int pmix_compress_zlib_module_init(void);
  40     int pmix_compress_zlib_module_finalize(void);
  41 
  42     /*
  43      * Actual funcationality
  44      */
  45     bool pmix_compress_zlib_compress_block(char *instring,
  46                                            uint8_t **outbytes,
  47                                            size_t *nbytes);
  48     bool pmix_compress_zlib_uncompress_block(char **outstring,
  49                                              uint8_t *inbytes, size_t len);
  50 
  51 #if defined(c_plusplus) || defined(__cplusplus)
  52 }
  53 #endif
  54 
  55 #endif /* MCA_COMPRESS_ZLIB_EXPORT_H */

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