rredpatch.h 1021 Bytes
Newer Older
1 2 3
#ifndef REPREPRO_RREDPATCH_H
#define REPREPRO_RREDPATCH_H

4 5
struct rred_patch;
struct modification;
6

7
retvalue patch_load(const char *, off_t, /*@out@*/struct rred_patch **);
8
retvalue patch_loadfd(const char *, int, off_t, /*@out@*/struct rred_patch **);
9 10
void patch_free(/*@only@*/struct rred_patch *);
/*@only@*//*@null@*/struct modification *patch_getmodifications(struct rred_patch *);
11
/*@null@*/const struct modification *patch_getconstmodifications(struct rred_patch *);
12
struct modification *modification_dup(const struct modification *);
13 14
void modification_freelist(/*@only@*/struct modification *);
retvalue combine_patches(/*@out@*/struct modification **, /*@only@*/struct modification *, /*@only@*/struct modification *);
15
void modification_printaspatch(void *, const struct modification *, void (const void *, size_t, void *));
16
retvalue modification_addstuff(const char *source, struct modification **patch_p, /*@out@*/char **line_p);
17 18 19
retvalue patch_file(FILE *, const char *, const struct modification *);

#endif