aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Embroidery/Tango.Embroidery/Exports.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Embroidery/Tango.Embroidery/Exports.cpp')
-rw-r--r--Software/Visual_Studio/Embroidery/Tango.Embroidery/Exports.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Embroidery/Tango.Embroidery/Exports.cpp b/Software/Visual_Studio/Embroidery/Tango.Embroidery/Exports.cpp
new file mode 100644
index 000000000..ba4ed6cbb
--- /dev/null
+++ b/Software/Visual_Studio/Embroidery/Tango.Embroidery/Exports.cpp
@@ -0,0 +1,15 @@
+#include <cstdlib>
+#include "Adapter.h"
+
+#pragma once
+
+#define EXPORT_API __declspec(dllexport)
+
+using namespace std;
+
+extern "C" EXPORT_API size_t __cdecl AnalyzeEmbroideryFile(uint8_t* input_buffer, size_t input_buffer_size, uint8_t*& output_buffer)
+{
+ Adapter adapter;
+ return adapter.AnalyzeEmbroideryFile(input_buffer, input_buffer_size, output_buffer);
+}
+