X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fvserver.h;h=0d5e2935e6ed4e1f3d0924648559571a6e2885eb;hb=de7c77f60f210a6b06d98ad044cb6f8adb6e8732;hp=a64deaaff463730c9c59cef23f0c861ae9c7ab7c;hpb=09df307a7485b491bbfc47b7124ce97cdbd0f877;p=util-vserver.git diff --git a/util-vserver/lib/vserver.h b/util-vserver/lib/vserver.h index a64deaa..0d5e293 100644 --- a/util-vserver/lib/vserver.h +++ b/util-vserver/lib/vserver.h @@ -137,13 +137,13 @@ extern "C" { /** Sets the ipv4root information. * \precondition: nb<16 */ int vc_set_ipv4root(uint32_t bcast, size_t nb, struct vc_ip_mask_pair const *ips); - - /* rlimit related functions */ - typedef uint64_t vc_limit_t; xid_t vc_create_context(xid_t xid); int vc_migrate_context(xid_t xid); + /* rlimit related functions */ + typedef uint64_t vc_limit_t; + struct vc_rlimit { vc_limit_t min; vc_limit_t soft; @@ -231,7 +231,14 @@ extern "C" { if (vc_get_iattr(filename, &res, 0,0)==-1) return VC_NOCTX; return res; } - + + + typedef enum { vcFEATURE_VKILL, vcFEATURE_IATTR, vcFEATURE_RLIMIT, + vcFEATURE_COMPAT, vcFEATURE_MIGRATE, vcFEATURE_NAMESPACE, + vcFEATURE_SCHED, vcFEATURE_VINFO, vcFEATURE_VHI } + vcFeatureSet; + + bool vc_isSupported(vcFeatureSet); /* The management part */