Issues (372)

src/Libc/Fuse/FuseFileInfo.php (1 issue)

Labels
Severity
1
<?php
2
3
/**
4
 * This file is part of the sj-i/php-fuse package.
5
 *
6
 * (c) sji <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Fuse\Libc\Fuse;
15
16
use Fuse\FFI\TypedCDataDefaultImplementationTrait;
17
use TypedCData\TypedCDataInterface;
0 ignored issues
show
The type TypedCData\TypedCDataInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
18
19
/**
20
 * struct fuse_file_info
21
 * {
22
 *     int flags;
23
 *     unsigned long fh_old;
24
 *     int writepage;
25
 *     unsigned int direct_io : 1;
26
 *     unsigned int keep_cache : 1;
27
 *     unsigned int flush : 1;
28
 *     unsigned int nonseekable : 1;
29
 *     unsigned int flock_release : 1;
30
 *     unsigned int padding : 27;
31
 *     uint64_t fh;
32
 *     uint64_t lock_owner;
33
 * };
34
 */
35
final class FuseFileInfo implements TypedCDataInterface
36
{
37
    use TypedCDataDefaultImplementationTrait;
38
39
    public int $flags = 0;
40
    public int $fh_old = 0;
41
    public int $writepage = 0;
42
    public int $direct_io = 0;
43
    public int $keep_cache = 0;
44
    public int $nonseekable = 0;
45
    public int $flock_release = 0;
46
    public int $padding = 0;
47
    public int $fh = 0;
48
    public int $lock_owner = 0;
49
50
    public static function getCTypeName(): string
51
    {
52
        return 'struct fuse_file_info';
53
    }
54
}
55