|
Revision 2589, 1.2 kB
(checked in by dhozac, 1 year ago)
|
Add support for a separate filesystem tag, and in the process improve the support for network contexts.
|
- 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 |
static char * |
|---|
| 24 |
vc_getVserverByCtx_v13(xid_t ctx, vcCfgStyle *style, char const UNUSED *revdir, |
|---|
| 25 |
bool validate_result) |
|---|
| 26 |
{ |
|---|
| 27 |
char buf[128]; |
|---|
| 28 |
|
|---|
| 29 |
if (vc_get_vhi_name(ctx, vcVHI_CONTEXT, buf, sizeof buf)!=-1 && |
|---|
| 30 |
(!validate_result || |
|---|
| 31 |
vc_getVserverCtx(buf, vcCFG_RECENT_FULL, false, 0, vcCTX_XID)==ctx)) { |
|---|
| 32 |
if (style) *style = vcCFG_RECENT_FULL; |
|---|
| 33 |
return strdup(buf); |
|---|
| 34 |
} |
|---|
| 35 |
else |
|---|
| 36 |
return 0; |
|---|
| 37 |
} |
|---|