summaryrefslogtreecommitdiffstats
path: root/checks.h
blob: ed5a16780ab543ac28ae64f002602bc755dc8498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef REPREPRO_CHECKS_H
#define REPREPRO_CHECKS_H

/* return NULL if no problem, statically allocated string otherwise */

typedef const char *checkfunc(const char *);

const char *checkfordirectoryandidentifier(const char *);
#define checkforcomponent checkfordirectoryandidentifier
#define checkforcodename checkfordirectoryandidentifier
const char *checkforidentifierpart(const char *);
#define checkforarchitecture checkforidentifierpart

/* not yet used */
static inline void checkerror_free(UNUSED(const char *dummy)) {};
#endif