From 252f59b70223c8fdbd16532125a1089ff8c12c8b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 1 Apr 2017 18:01:58 +0100 Subject: adjust cgm import to make testing easier Change-Id: I2979af77522e085075d4f1e1e379fe82e614163b --- vcl/workben/fftester.cxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'vcl') diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx index ec4ceefe3b3a..1dc51e2bdafd 100644 --- a/vcl/workben/fftester.cxx +++ b/vcl/workben/fftester.cxx @@ -430,6 +430,21 @@ try_again: SvFileStream aFileStream(out, StreamMode::READ); ret = (int) (*pfnImport)(aFileStream); } + else if (strcmp(argv[2], "cgm") == 0) + { + static FFilterCall pfnImport(nullptr); + if (!pfnImport) + { + osl::Module aLibrary; + aLibrary.loadRelative(&thisModule, "libsdlo.so", SAL_LOADMODULE_LAZY); + pfnImport = reinterpret_cast( + aLibrary.getFunctionSymbol("TestImportCGM")); + aLibrary.release(); + } + SvFileStream aFileStream(out, StreamMode::READ); + ret = (int) (*pfnImport)(aFileStream); + } + #endif } -- cgit