summaryrefslogtreecommitdiff
path: root/include/osl
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-10 12:17:05 +0200
committerMichael Meeks <michael.meeks@collabora.com>2014-07-11 11:29:09 +0100
commit7fd7b7af26952676d8fcff6b56a081aac681d804 (patch)
tree125f78b7fac4c326bc65554125b994222774d181 /include/osl
parente003e9a99f04f1b62432c34deb55a6644d91d88c (diff)
Introduce osl_areCommandArgsSet.
We cannot call osl_setCommandArgs twice, however there is currently no way to determine whether or not this has already been done. This is necessary e.g. for LibreOfficeKit where we may also be using UNO separately (and also for unit tests where LO is already set-up prior to the unit test running, and therefore we can't set up osl again from within LOK). Change-Id: Id1f357ef604eb2b6b7814c9a04ac6933a39fd3eb
Diffstat (limited to 'include/osl')
-rw-r--r--include/osl/process.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osl/process.h b/include/osl/process.h
index 7d0960ee3f7f..7fb619f4ccab 100644
--- a/include/osl/process.h
+++ b/include/osl/process.h
@@ -366,6 +366,11 @@ SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getCommandArgCount(void);
SAL_DLLPUBLIC oslProcessError SAL_CALL osl_getCommandArg(
sal_uInt32 nArg, rtl_uString **strCommandArg);
+/** Determine whether or not the command args have already been set.
+ @return The command args are already set, and may not be set again.
+*/
+SAL_DLLPUBLIC int SAL_CALL osl_areCommandArgsSet (void);
+
/** Set the command-line arguments as passed to the main-function of this process.
Deprecated: This function is only for internal use. Passing the args from main will