File: checks.h

package info (click to toggle)
reprepro 5.4.8-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,700 kB
  • sloc: ansic: 53,795; python: 1,625; sh: 1,417; makefile: 120
file content (16 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (13)
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