changes.h 803 Bytes
Newer Older
1 2 3
#ifndef REPREPRO_CHANGES_H
#define REPREPRO_CHANGES_H

4 5 6 7
#ifndef REPREPRO_ATOMS_H
#include "atoms.h"
#endif

8 9 10 11 12 13
typedef	enum {
	fe_UNKNOWN=0,
	fe_DEB, fe_UDEB,
	fe_DSC, fe_DIFF, fe_ORIG, fe_TAR,
	fe_BYHAND, fe_LOG
} filetype;
14

15
#define FE_PACKAGE(ft) ( (ft) == fe_DEB || (ft) == fe_UDEB || (ft) == fe_DSC )
16 17 18
#define FE_BINARY(ft) ( (ft) == fe_DEB || (ft) == fe_UDEB )
#define FE_SOURCE(ft) ( (ft) == fe_DIFF || (ft) == fe_ORIG || (ft) == fe_TAR || (ft) == fe_DSC || (ft) == fe_UNKNOWN)

19
struct hash_data;
20
retvalue changes_parsefileline(const char *fileline, /*@out@*/filetype *result_type, /*@out@*/char **result_basename, /*@out@*/struct hash_data *, /*@out@*/struct hash_data *, /*@out@*/char **result_section, /*@out@*/char **result_priority, /*@out@*/architecture_t *, /*@out@*/char **result_name);
21
#endif