[],
[supported_apis=ALL])
-test x"$supported_apis" != xALL || supported_apis='legacy,compat'
+test x"$supported_apis" != xALL || supported_apis='legacy,compat,v11'
old_IFS=$IFS
IFS=,;
for i in $supported_apis; do
case "$i" in
compat) AC_DEFINE(VC_ENABLE_API_COMPAT, 1, [Enable support for compatibily syscall API]);;
legacy) AC_DEFINE(VC_ENABLE_API_LEGACY, 1, [Enable support for old, /proc parsing API]);;
+ v11) AC_DEFINE(VC_ENABLE_API_V11, 1, [Enable support for API of vserver 1.1.x]);;
*) AC_MSG_ERROR(['$i' is not a supported API]);;
esac
done
# define CALL_VC_LEGACY(F,...) CALL_VC_NOOP
#endif
+#ifdef VC_ENABLE_API_V11
+# define CALL_VC_V11(F,...) CALL_VC_GENERAL(0x00010000, v11, F, __VA_ARGS__)
+#else
+# define CALL_VC_V11(F,...) CALL_VC_NOOP
+#endif