Coverage Report

Created: 2026-10-13 06:38

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/barebox/fs/squashfs/decompressor.h
Line
Count
Source
1
#ifndef DECOMPRESSOR_H
2
#define DECOMPRESSOR_H
3
/*
4
 * Squashfs - a compressed read only filesystem for Linux
5
 *
6
 * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
7
 * Phillip Lougher <phillip@squashfs.org.uk>
8
 *
9
 * This program is free software; you can redistribute it and/or
10
 * modify it under the terms of the GNU General Public License
11
 * as published by the Free Software Foundation; either version 2,
12
 * or (at your option) any later version.
13
 *
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * GNU General Public License for more details.
18
 *
19
 * decompressor.h
20
 */
21
22
struct squashfs_decompressor {
23
  void  *(*init)(struct squashfs_sb_info *, void *);
24
  void  *(*comp_opts)(struct squashfs_sb_info *, void *, int);
25
  void  (*free)(void *);
26
  int (*decompress)(struct squashfs_sb_info *, void *,
27
    char **, int, int, int,
28
    struct squashfs_page_actor *);
29
  int id;
30
  char  *name;
31
  int supported;
32
};
33
34
static inline void *squashfs_comp_opts(struct squashfs_sb_info *msblk,
35
              void *buff, int length)
36
0
{
37
0
  return msblk->decompressor->comp_opts ?
38
0
    msblk->decompressor->comp_opts(msblk, buff, length) : NULL;
39
0
}
Unexecuted instantiation: block.c:squashfs_comp_opts
Unexecuted instantiation: decompressor.c:squashfs_comp_opts
Unexecuted instantiation: decompressor_single.c:squashfs_comp_opts
Unexecuted instantiation: super.c:squashfs_comp_opts
Unexecuted instantiation: xz_wrapper.c:squashfs_comp_opts
Unexecuted instantiation: lzo_wrapper.c:squashfs_comp_opts
Unexecuted instantiation: lz4_wrapper.c:squashfs_comp_opts
Unexecuted instantiation: zlib_wrapper.c:squashfs_comp_opts
Unexecuted instantiation: zstd_wrapper.c:squashfs_comp_opts
40
41
#ifdef CONFIG_SQUASHFS_XZ
42
extern const struct squashfs_decompressor squashfs_xz_comp_ops;
43
#endif
44
45
#ifdef CONFIG_SQUASHFS_LZ4
46
extern const struct squashfs_decompressor squashfs_lz4_comp_ops;
47
#endif
48
49
#ifdef CONFIG_SQUASHFS_LZO
50
extern const struct squashfs_decompressor squashfs_lzo_comp_ops;
51
#endif
52
53
#ifdef CONFIG_SQUASHFS_ZLIB
54
extern const struct squashfs_decompressor squashfs_zlib_comp_ops;
55
#endif
56
57
#ifdef CONFIG_SQUASHFS_ZSTD
58
extern const struct squashfs_decompressor squashfs_zstd_comp_ops;
59
#endif
60
61
#endif