File: ar.h

package info (click to toggle)
reprepro 4.2.0-2squeeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,016 kB
  • ctags: 3,674
  • sloc: ansic: 46,905; sh: 13,899; pascal: 160; makefile: 159; python: 138
file content (22 lines) | stat: -rw-r--r-- 810 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef DEBCOMP_AR_H
#define DEBCOMP_AR_H

struct ar_archive;

retvalue ar_open(/*@out@*/struct ar_archive **, const char *filename);
void ar_close(/*@only@*/struct ar_archive *);

/* RET_OK = next is there, RET_NOTHING = eof, < 0 = error */
retvalue ar_nextmember(struct ar_archive *,/*@out@*/char **filename);

/* set compression for the next member */
void ar_archivemember_setcompression(struct ar_archive *, enum compression);

/* the following can be used for libarchive to read an file in the ar
 * after ar_nextmember returned sucessfully.
 * All references get invalid after the ar_nextmember is called again.  */
int ar_archivemember_close(struct archive *, void *);
int ar_archivemember_open(struct archive *, void *);
ssize_t ar_archivemember_read(struct archive *, void *, const void **);

#endif