From: Enrico Scholz Date: Thu, 23 Oct 2003 20:53:12 +0000 (+0000) Subject: added functions for vserver-management X-Git-Tag: VERSION_0_10~1121 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76ece580095f1af319c171e349131ff9336e2bc6;p=util-vserver.git added functions for vserver-management git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@295 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/lib/vserver.h b/util-vserver/lib/vserver.h index 785aaba..8a94b43 100644 --- a/util-vserver/lib/vserver.h +++ b/util-vserver/lib/vserver.h @@ -123,6 +123,24 @@ extern "C" { int vc_text2cap(char const *); char const * vc_cap2text(int); + + + // The management part + +#define VC_LIMIT_VSERVER_NAME_LEN 1024 + + typedef enum { vcCFG_NONE, vcCFG_AUTO, + vcCFG_LEGACY, + vcCFG_RECENT_SHORT, + vcCFG_RECENT_FULL } vcCfgStyle; + + vcCfgStyle vc_getVserverCfgStyle(char const *id); + + // Resolves the name of the vserver. The result will be allocated and must + // be freed by the caller + char * vc_getVserverName(char const *id, vcCfgStyle style); + + char * vc_getVserverVdir(char const *id, vcCfgStyle style); #ifdef __cplusplus }