blob: 809c3c93b4838be07069d3dbe8ae055cba8c6c36
1 | /* |
2 | * compress.h - Exports for compressed attribute handling. |
3 | * Originated from the Linux-NTFS project. |
4 | * |
5 | * Copyright (c) 2004 Anton Altaparmakov |
6 | * |
7 | * This program/include file is free software; you can redistribute it and/or |
8 | * modify it under the terms of the GNU General Public License as published |
9 | * by the Free Software Foundation; either version 2 of the License, or |
10 | * (at your option) any later version. |
11 | * |
12 | * This program/include file is distributed in the hope that it will be |
13 | * useful, but WITHOUT ANY WARRANTY; without even the implied warranty |
14 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | * GNU General Public License for more details. |
16 | * |
17 | * You should have received a copy of the GNU General Public License |
18 | * along with this program (in the main directory of the NTFS-3G |
19 | * distribution in the file COPYING); if not, write to the Free Software |
20 | * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 | */ |
22 | |
23 | #ifndef _NTFS_COMPRESS_H |
24 | #define _NTFS_COMPRESS_H |
25 | |
26 | #include "types.h" |
27 | #include "attrib.h" |
28 | |
29 | extern s64 ntfs_compressed_attr_pread(ntfs_attr *na, s64 pos, s64 count, |
30 | void *b); |
31 | |
32 | extern s64 ntfs_compressed_pwrite(ntfs_attr *na, runlist_element *brl, s64 wpos, |
33 | s64 offs, s64 to_write, s64 rounded, |
34 | const void *b, int compressed_part); |
35 | |
36 | extern int ntfs_compressed_close(ntfs_attr *na, runlist_element *brl, s64 offs); |
37 | |
38 | #endif /* defined _NTFS_COMPRESS_H */ |
39 | |
40 |