diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-28 15:07:14 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-28 15:07:14 +0100 |
commit | a61c702d91d7444ce0bb094ddccc70f72416500b (patch) | |
tree | 8d5a47c73666ee2b710a7a34c0c392b728bda45b /diff.h | |
parent | f44d36b05e43cabde31aeaba5d25fded140345a1 (diff) |
Added WebAssembly for C++ implementation of Diff
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -9,9 +9,12 @@ class Diff public: Diff(); Diff(const std::string& old_version, const std::string& new_version); + void create(const std::string& old_version, const std::string& new_version); + + Diff(const std::string& xml); + void create(const std::string& xml); std::string apply(const std::string& old_version) const; - void create(const std::string& old_version, const std::string& new_version); boost::property_tree::ptree get_structure() const; std::string get_xml() const; @@ -22,3 +25,8 @@ private: size_t m_pos1{}; std::string m_data; }; + +extern "C" { + const char* diff_create(const char* old_version, const char* new_version); + const char* diff_apply(const char* old_version, const char* diff); +} |