dirs.h 563 Bytes
Newer Older
Bernhard Link's avatar
Bernhard Link committed
1 2
#ifndef REPREPRO_DIRS_H
#define REPREPRO_DIRS_H
Bernhard Link's avatar
Bernhard Link committed
3

Bernhard Link's avatar
Bernhard Link committed
4
#ifndef REPREPRO_ERROR_H
5 6 7
#warning "What is happening here?"
#include "error.h"
#endif
Bernhard Link's avatar
Bernhard Link committed
8
#ifndef REPREPRO_STRLIST_H
9 10 11
#warning "What is happening here?"
#include "strlist.h"
#endif
Bernhard Link's avatar
Bernhard Link committed
12 13

/* create recursively all parent directories before the last '/' */
14
retvalue dirs_make_parent(const char *filename);
Bernhard Link's avatar
Bernhard Link committed
15
/* create dirname and any '/'-seperated part of it */
16
retvalue dirs_make_recursive(const char *directory);
Bernhard Link's avatar
Bernhard Link committed
17

18
/* Behave like dirname(3) */
19
retvalue dirs_getdirectory(const char *filename,/*@out@*/char **directory);
Bernhard Link's avatar
Bernhard Link committed
20
#endif