added functions for vserver-management
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 23 Oct 2003 20:53:12 +0000 (20:53 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 23 Oct 2003 20:53:12 +0000 (20:53 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@295 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib/vserver.h

index 785aaba..8a94b43 100644 (file)
@@ -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
 }