OpenMPI  0.1.1
compress_gzip.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2004-2010 The Trustees of Indiana University.
3  * All rights reserved.
4  * $COPYRIGHT$
5  *
6  * Additional copyrights may follow
7  *
8  * $HEADER$
9  */
10 
11 /**
12  * @file
13  *
14  * GZIP COMPRESS component
15  *
16  * Uses the gzip library
17  */
18 
19 #ifndef MCA_COMPRESS_GZIP_EXPORT_H
20 #define MCA_COMPRESS_GZIP_EXPORT_H
21 
22 #include "opal_config.h"
23 
24 #include "opal/util/output.h"
25 
26 #include "opal/mca/mca.h"
28 
29 #if defined(c_plusplus) || defined(__cplusplus)
30 extern "C" {
31 #endif
32 
33  /*
34  * Local Component structures
35  */
37  opal_compress_base_component_t super; /** Base COMPRESS component */
38 
39  };
41  OPAL_MODULE_DECLSPEC extern opal_compress_gzip_component_t mca_compress_gzip_component;
42 
43  int opal_compress_gzip_component_query(mca_base_module_t **module, int *priority);
44 
45  /*
46  * Module functions
47  */
48  int opal_compress_gzip_module_init(void);
49  int opal_compress_gzip_module_finalize(void);
50 
51  /*
52  * Actual funcationality
53  */
54  int opal_compress_gzip_compress(char *fname, char **cname, char **postfix);
55  int opal_compress_gzip_compress_nb(char *fname, char **cname, char **postfix, pid_t *child_pid);
56  int opal_compress_gzip_decompress(char *cname, char **fname);
57  int opal_compress_gzip_decompress_nb(char *cname, char **fname, pid_t *child_pid);
58 
59 #if defined(c_plusplus) || defined(__cplusplus)
60 }
61 #endif
62 
63 #endif /* MCA_COMPRESS_GZIP_EXPORT_H */
OPAL output stream facility.
Common type for all MCA modules.
Definition: mca.h:100
Compression Framework.
Definition: compress_gzip.h:36
Top-level interface for all MCA components.
Structure for COMPRESS components.
Definition: compress.h:85