File: donefile.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 (25 lines) | stat: -rw-r--r-- 905 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
23
24
25
#ifndef REPREPRO_DONEFILE_H
#define REPREPRO_DONEFILE_H

#ifndef REPREPRO_ERROR_H
#include "error.h"
#endif

struct checksums;
retvalue donefile_isold(const char *filename, const struct checksums *expected);

struct markdonefile;
retvalue markdone_create(const char *, /*@out@*/struct markdonefile **);
void markdone_finish(/*@only@*/struct markdonefile *);
void markdone_target(struct markdonefile *, const char *);
void markdone_index(struct markdonefile *, const char *, const struct checksums *);
void markdone_cleaner(struct markdonefile *);

struct donefile;
retvalue donefile_open(const char *, /*@out@*/struct donefile **);
void donefile_close(/*@only@*/struct donefile *);
retvalue donefile_nexttarget(struct donefile *, /*@out@*/const char **);
bool donefile_nextindex(struct donefile *, /*@out@*/const char **, /*@out@*/struct checksums **);
bool donefile_iscleaner(struct donefile *);

#endif