File: compress_gzip.h

package info (click to toggle)
openmpi 4.1.0-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 126,560 kB
  • sloc: ansic: 685,465; makefile: 42,952; f90: 19,220; sh: 7,002; java: 6,360; perl: 3,524; cpp: 2,227; python: 1,350; lex: 989; fortran: 61; tcl: 12
file content (63 lines) | stat: -rw-r--r-- 1,583 bytes parent folder | download | duplicates (3)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 * Copyright (c) 2004-2010 The Trustees of Indiana University.
 *                         All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */

/**
 * @file
 *
 * GZIP COMPRESS component
 *
 * Uses the gzip library
 */

#ifndef MCA_COMPRESS_GZIP_EXPORT_H
#define MCA_COMPRESS_GZIP_EXPORT_H

#include "opal_config.h"

#include "opal/util/output.h"

#include "opal/mca/mca.h"
#include "opal/mca/compress/compress.h"

#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

    /*
     * Local Component structures
     */
    struct opal_compress_gzip_component_t {
        opal_compress_base_component_t super;  /** Base COMPRESS component */

    };
    typedef struct opal_compress_gzip_component_t opal_compress_gzip_component_t;
    OPAL_MODULE_DECLSPEC extern opal_compress_gzip_component_t mca_compress_gzip_component;

    int opal_compress_gzip_component_query(mca_base_module_t **module, int *priority);

    /*
     * Module functions
     */
    int opal_compress_gzip_module_init(void);
    int opal_compress_gzip_module_finalize(void);

    /*
     * Actual funcationality
     */
    int opal_compress_gzip_compress(char *fname, char **cname, char **postfix);
    int opal_compress_gzip_compress_nb(char *fname, char **cname, char **postfix, pid_t *child_pid);
    int opal_compress_gzip_decompress(char *cname, char **fname);
    int opal_compress_gzip_decompress_nb(char *cname, char **fname, pid_t *child_pid);

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

#endif /* MCA_COMPRESS_GZIP_EXPORT_H */