3 // Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; version 2 of the License.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 vc_isSupported(vcFeatureSet feature)
29 int ver = vc_get_version();
30 if (ver==-1) return false;
33 case vcFEATURE_COMPAT : return true;
34 case vcFEATURE_VSHELPER0 : return ver >= 0x00010000 && ver < 0x00010010;
35 case vcFEATURE_VSHELPER : return ver >= 0x00010000;
36 case vcFEATURE_VKILL : return ver >= 0x00010004;
37 case vcFEATURE_RLIMIT : return ver >= 0x00010004;
38 case vcFEATURE_VINFO : return ver >= 0x00010010;
39 case vcFEATURE_VHI : return ver >= 0x00010010;
40 case vcFEATURE_IATTR : return ver >= 0x00010011;
41 case vcFEATURE_MIGRATE : return ver >= 0x00010012;
42 case vcFEATURE_NAMESPACE : return ver >= 0x00010012;
43 case vcFEATURE_VWAIT : return ver >= 0x00010025;
44 case vcFEATURE_SCHED : return ver >= 0x00020000; // todo
45 default : assert(false);