summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-01 18:01:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-01 19:51:18 +0100
commit252f59b70223c8fdbd16532125a1089ff8c12c8b (patch)
treec8f6be814ba01b80a380e49c38bcebea81d0f42b /vcl
parentb993942622897fc64a1f7462189fa0463eb30e1c (diff)
adjust cgm import to make testing easier
Change-Id: I2979af77522e085075d4f1e1e379fe82e614163b
Diffstat (limited to 'vcl')
-rw-r--r--vcl/workben/fftester.cxx15
1 files changed, 15 insertions, 0 deletions
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<FFilterCall>(
+ aLibrary.getFunctionSymbol("TestImportCGM"));
+ aLibrary.release();
+ }
+ SvFileStream aFileStream(out, StreamMode::READ);
+ ret = (int) (*pfnImport)(aFileStream);
+ }
+
#endif
}