File: rwpar.h

package info (click to toggle)
parchive 1.1-4.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 260 kB
  • ctags: 341
  • sloc: ansic: 3,895; makefile: 55
file content (26 lines) | stat: -rw-r--r-- 704 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
/*\
|*|  Parity Archive - A way to restore missing files in a set.
|*|
|*|  Copyright (C) 2001  Willem Monsuwe (willem@stack.nl)
|*|
|*|  File format by Stefan Wehlus -
|*|   initial idea by Tobias Rieper, further suggestions by Kilroy Balore 
|*|
|*|  Read and write PAR files
\*/
#ifndef READWRITEPAR_H
#define READWRITEPAR_H

#include "types.h"
#include "par.h"

par_t * create_par_header(u16 *file, i64 vol);
par_t * read_par_header(u16 *file, int create, i64 vol, int silent);
void free_file_list(pfile_t *list);
void free_par(par_t *par);
file_t write_par_header(par_t *par);
int restore_files(pfile_t *files, pfile_t *volumes, sub_t *sub);

void dump_par(par_t *par);

#endif /* READWRITEPAR_H */