diff options
author | Jörg Budischewski <jbu@openoffice.org> | 2001-05-17 07:57:20 +0000 |
---|---|---|
committer | Jörg Budischewski <jbu@openoffice.org> | 2001-05-17 07:57:20 +0000 |
commit | 04fbd92f8da3953d9277ee201307272deefb037e (patch) | |
tree | 83ffb57432a75a372297114194124148964b36e7 /sal | |
parent | acb523abc63a454a3da5e6a3112a025cbcd7a150 (diff) |
#87127# command arg functions added, that ignore bootstrap values
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/rtl/process.h | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/sal/inc/rtl/process.h b/sal/inc/rtl/process.h index 1567084e3c23..5c29e95a7d3a 100644 --- a/sal/inc/rtl/process.h +++ b/sal/inc/rtl/process.h @@ -2,9 +2,9 @@ * * $RCSfile: process.h,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: jsc $ $Date: 2001-04-26 13:34:01 $ + * last change: $Author: jbu $ $Date: 2001-05-17 08:57:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -62,6 +62,7 @@ #define _RTL_PROCESS_H_ #include <sal/types.h> +#include <osl/process.h> #ifdef __cplusplus extern "C" { @@ -81,6 +82,32 @@ extern "C" { */ void SAL_CALL rtl_getGlobalProcessId( sal_uInt8 *pTargetUUID ); +/** Get the nArg-th command-line argument passed to the main-function of this process. + + This functions differs from osl_getCommandArg() in filtering any bootstrap values + given by command args, that means that all arguments starting with "-env:" will be + ignored by this function. + + @param nArg [in] The number of the argument to return. + @param strCommandArg [out] The string receives the nArg-th command-line argument. + @return osl_Process_E_None or does not return. + @see osl_getCommandArg + @see rtl_getCommandArgCount +*/ +oslProcessError SAL_CALL rtl_getCommandArg(sal_uInt32 nArg, rtl_uString **strCommandArg); + +/** Returns the number of command line arguments at process start. + + This functions differs from osl_getCommandArg() in filtering any bootstrap values + given by command args, that means that all arguments starting with "-env:" will be + ignored by this function. + + @return the number of commandline arguments passed to the main-function of this process. + @see osl_getCommandArgCount + @see rtl_getCommandArg +*/ +sal_uInt32 SAL_CALL rtl_getCommandArgCount(); + #ifdef __cplusplus } #endif |