Mark signatures.xml version

GLXmlParser now explicitly marks its output with version="2", while
the older .spec parsers produce version="1" signatures. The binding
generator uses the newer API to support multiple apinames in the same
file.
This commit is contained in:
Stefanos A. 2013-11-02 23:40:09 +01:00
parent cc8f9aae4f
commit 61a6a2bec0

View file

@ -1,4 +1,4 @@
// //
// Copyright (C) 2009 the Open Toolkit (http://www.opentk.com) // Copyright (C) 2009 the Open Toolkit (http://www.opentk.com)
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
@ -140,7 +140,8 @@ namespace CHeaderToXML
using (var writer = XmlWriter.Create(out_stream, settings)) using (var writer = XmlWriter.Create(out_stream, settings))
{ {
var output = new XElement("signatures"); var output = new XElement("signatures",
new XAttribute("version", parser is GLXmlParser ? "2" : "1"));
foreach (var api in sigs.SelectMany(s => s)) foreach (var api in sigs.SelectMany(s => s))
{ {
output.Add( output.Add(