From 76ece580095f1af319c171e349131ff9336e2bc6 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 23 Oct 2003 20:53:12 +0000 Subject: [PATCH] added functions for vserver-management git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@295 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/lib/vserver.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 } -- 1.8.1.5