2 * Copyright 2014 Google Inc.
3 * Copyright 2015 Xamarin Inc.
4 * Copyright 2017 Microsoft Corporation. All rights reserved.
6 * Use of this source code is governed by a BSD-style license that can be
7 * found in the LICENSE file.
10 #include "SkXMLWriter.h"
14 #include "sk_types_priv.h"
16 //////////////////////////////////////////////////////////////////////////////////////////////////
18 sk_xmlstreamwriter_t* sk_xmlstreamwriter_new(sk_wstream_t* stream)
20 return ToXMLStreamWriter(new SkXMLStreamWriter(AsWStream(stream)));
23 void sk_xmlstreamwriter_delete(sk_xmlstreamwriter_t* writer)
25 delete AsXMLStreamWriter(writer);