platform_hardware_tequila_c.../libtinyxml2/XMLDocument.cpp
Sebastiano Barezzi 5c54e69ef0
compat: Add libtinyxml2 shim
Change-Id: I2bc7963086f7f5df453e135819ed8b28c4d6a0d5
2023-07-18 12:10:42 +02:00

22 lines
471 B
C++

/*
* Copyright (C) 2023 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <tinyxml2.h>
#include <new>
namespace tinyxml2 {
extern "C" {
void* _ZN8tinyxml211XMLDocumentC1Eb(XMLDocument* thisptr, bool processEntities) {
return new (thisptr) XMLDocument(processEntities);
}
XMLError _ZN8tinyxml211XMLDocument8SaveFileEPKc(XMLDocument* thisptr, const char* filename) {
return thisptr->SaveFile(filename);
}
}
} // namespace tinyxml2