diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-21 16:17:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-21 16:17:26 +0100 |
commit | 5684fbce646bfd6514e7857a9e79c02a89c5346d (patch) | |
tree | 51b684abaf77a58556deb2f932bddd59f2d08a7c /vcl | |
parent | 619d8ba56a80eccdbb262d6155607a3efc405334 (diff) |
add hwp to fftester
Change-Id: Ibf819307905295580cb6a813f6d003a7dabc86b5
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/workben/fftester.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx index 8de9d18a9838..9c9ee1bfe5b6 100644 --- a/vcl/workben/fftester.cxx +++ b/vcl/workben/fftester.cxx @@ -64,6 +64,7 @@ using namespace cppu; extern "C" { static void SAL_CALL thisModule() {} } typedef bool (*WFilterCall)(const OUString &rUrl, const OUString &rFlt); +typedef bool (*HFilterCall)(const OUString &rUrl); /* This constant specifies the number of inputs to process before restarting. * This is optional, but helps limit the impact of memory leaks and similar @@ -333,6 +334,19 @@ try_again: else ret = (int) (*pfnImport)(out, OUString("CWW8")); } + else if (strcmp(argv[2], "hwp") == 0) + { + static HFilterCall pfnImport(0); + if (!pfnImport) + { + osl::Module aLibrary; + aLibrary.loadRelative(&thisModule, "libhwplo.so", SAL_LOADMODULE_LAZY); + pfnImport = reinterpret_cast<HFilterCall>( + aLibrary.getFunctionSymbol("TestImportHWP")); + aLibrary.release(); + } + ret = (int) (*pfnImport)(out); + } } /* To signal successful completion of a run, we need to deliver |