Allow version attribute in overrides.xml.

This commit is contained in:
Stefanos A. 2013-10-22 21:09:18 +02:00
parent 745fd9974f
commit 18643b8f1d

View file

@ -64,6 +64,7 @@ namespace Bind
{
TranslateReturnType(nav, d, enums);
TranslateParameters(nav, d, enums);
TranslateAttributes(nav, d, enums);
}
Console.WriteLine("Generating wrappers.");
@ -216,6 +217,26 @@ namespace Bind
}
}
void TranslateAttributes(XPathNavigator nav, Delegate d, EnumCollection enums)
{
var function_override = GetFuncOverride(nav, d);
if (function_override != null)
{
var version_override = function_override.SelectSingleNode("version");
if (version_override != null)
{
d.Version = version_override.Value;
}
var profile_override = function_override.SelectSingleNode("profile");
if (profile_override != null)
{
Debug.Print("Profile override not yet implemented");
}
}
}
static FunctionCollection CreateWrappers(DelegateCollection delegates, EnumCollection enums)
{
var wrappers = new FunctionCollection();