File: exports.h

package info (click to toggle)
reprepro 5.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,792 kB
  • sloc: ansic: 52,309; sh: 1,875; python: 1,625; makefile: 167
file content (26 lines) | stat: -rw-r--r-- 907 bytes parent folder | download | duplicates (11)
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
#ifndef REPREPRO_EXPORTS_H
#define REPREPRO_EXPORTS_H

#ifndef REPREPRO_RELEASE_H
#include "release.h"
#endif

struct exportmode {
	/* "Packages", "Sources" or something like that */
	char *filename;
	/* create uncompressed, create .gz, <future things...> */
	compressionset compressions;
	/* Generate a Release file next to the Indexfile , if non-null*/
	/*@null@*/
	char *release;
	/* programms to start after all are generated */
	struct strlist hooks;
};

retvalue exportmode_init(/*@out@*/struct exportmode *, bool /*uncompressed*/, /*@null@*/const char * /*release*/, const char * /*indexfile*/);
struct configiterator;
retvalue exportmode_set(struct exportmode *, struct configiterator *);
void exportmode_done(struct exportmode *);

retvalue export_target(const char * /*relativedir*/, struct target *, const struct exportmode *, struct release *, bool /*onlyifmissing*/, bool /*snapshot*/);
#endif