|
Revision 934, 1.4 kB
(checked in by ensc, 5 years ago)
|
initial checkin
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
#ifdef HAVE_CONFIG_H |
|---|
| 20 |
# include <config.h> |
|---|
| 21 |
#endif |
|---|
| 22 |
|
|---|
| 23 |
#include "vserver.h" |
|---|
| 24 |
#include "internal.h" |
|---|
| 25 |
|
|---|
| 26 |
#include "pathconfig.h" |
|---|
| 27 |
|
|---|
| 28 |
#include "createskeleton-full.hc" |
|---|
| 29 |
#include "createskeleton-short.hc" |
|---|
| 30 |
|
|---|
| 31 |
#include <errno.h> |
|---|
| 32 |
|
|---|
| 33 |
int |
|---|
| 34 |
vc_createSkeleton(char const *id, vcCfgStyle style, int flags) |
|---|
| 35 |
{ |
|---|
| 36 |
if (style==vcCFG_NONE || style==vcCFG_AUTO) { |
|---|
| 37 |
if (strchr(id, '/')!=0) style = vcCFG_RECENT_FULL; |
|---|
| 38 |
else style = vcCFG_RECENT_SHORT; |
|---|
| 39 |
} |
|---|
| 40 |
|
|---|
| 41 |
switch (style) { |
|---|
| 42 |
case vcCFG_RECENT_SHORT : return vc_createSkeleton_short(id, flags); |
|---|
| 43 |
case vcCFG_RECENT_FULL : return vc_createSkeleton_full(id, 0, flags); |
|---|
| 44 |
default : ; |
|---|
| 45 |
} |
|---|
| 46 |
|
|---|
| 47 |
errno = EINVAL; |
|---|
| 48 |
return -1; |
|---|
| 49 |
} |
|---|