summaryrefslogtreecommitdiffstats
path: root/rredpatch.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:12:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:12:14 +0000
commit4b8a0f3f3dcf60dac2ce308ea08d413a535af29f (patch)
tree0f09c0ad2a4d0f535d89040a63dc3a866a6606e6 /rredpatch.h
parentInitial commit. (diff)
downloadreprepro-4b8a0f3f3dcf60dac2ce308ea08d413a535af29f.tar.xz
reprepro-4b8a0f3f3dcf60dac2ce308ea08d413a535af29f.zip
Adding upstream version 5.4.4.upstream/5.4.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'rredpatch.h')
-rw-r--r--rredpatch.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/rredpatch.h b/rredpatch.h
new file mode 100644
index 0000000..2148527
--- /dev/null
+++ b/rredpatch.h
@@ -0,0 +1,19 @@
+#ifndef REPREPRO_RREDPATCH_H
+#define REPREPRO_RREDPATCH_H
+
+struct rred_patch;
+struct modification;
+
+retvalue patch_load(const char *, off_t, /*@out@*/struct rred_patch **);
+retvalue patch_loadfd(const char *, int, off_t, /*@out@*/struct rred_patch **);
+void patch_free(/*@only@*/struct rred_patch *);
+/*@only@*//*@null@*/struct modification *patch_getmodifications(struct rred_patch *);
+/*@null@*/const struct modification *patch_getconstmodifications(struct rred_patch *);
+struct modification *modification_dup(const struct modification *);
+void modification_freelist(/*@only@*/struct modification *);
+retvalue combine_patches(/*@out@*/struct modification **, /*@only@*/struct modification *, /*@only@*/struct modification *);
+void modification_printaspatch(void *, const struct modification *, void (const void *, size_t, void *));
+retvalue modification_addstuff(const char *source, struct modification **patch_p, /*@out@*/char **line_p);
+retvalue patch_file(FILE *, const char *, const struct modification *);
+
+#endif