summaryrefslogtreecommitdiffstats
path: root/include/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2021-04-21 17:37:57 +0300
committerTor Lillqvist <tml@collabora.com>2021-04-28 09:30:17 +0200
commit41ff704cc49b7097b717882616011962ecd7198f (patch)
tree65c94d0f52acebe9c637e0de1a636dd2f0b79cfc /include/sal
parentUpdate git submodules (diff)
downloadcore-41ff704cc49b7097b717882616011962ecd7198f.tar.gz
core-41ff704cc49b7097b717882616011962ecd7198f.zip
Add API to LibreOfficeKit to set arbitrary run-time options in core
Add setOption(const char*, const char*) At the moment this enables starting and stopping the ProfileZone event recording and overriding the SAL_LOG environment variable. Change-Id: Ic3a934bb4246c755a91eee8a8343fafc15815116 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114439 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114559 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114656 Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'include/sal')
-rw-r--r--include/sal/log.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sal/log.hxx b/include/sal/log.hxx
index 6f9da7671b03..943ab3169bca 100644
--- a/include/sal/log.hxx
+++ b/include/sal/log.hxx
@@ -41,6 +41,8 @@ extern "C" SAL_DLLPUBLIC void SAL_CALL sal_detail_log(
sal_detail_LogLevel level, char const * area, char const * where,
char const * message, sal_uInt32 backtraceDepth);
+extern "C" SAL_DLLPUBLIC void SAL_CALL sal_detail_set_log_selector(char const *logSelector);
+
// the return value is actually "enum sal_detail_LogAction", but due to ABI
// compatibility, it's left as the original "sal_Bool" / "unsigned char".
extern "C" SAL_DLLPUBLIC unsigned char SAL_CALL sal_detail_log_report(