Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

RTDECL ( int   ) 

Create a logger instance.

Returns:
iprt status code.
Parameters:
ppLogger Where to store the logger instance.
fFlags Logger instance flags, a combination of the RTLOGFLAGS_* values.
pszGroupSettings The initial group settings.
pszEnvVarBase Base name for the environment variables for this instance.
cGroups Number of groups in the array.
papszGroups Pointer to array of groups. This must stick around for the life of the logger instance.
fDestFlags The destination flags. RTLOGDEST_FILE is ORed if pszFilenameFmt specified.
pszFilenameFmt Log filename format string. Standard RTStrFormat().
... Format arguments.
Create a logger instance.

Returns:
iprt status code.
Parameters:
ppLogger Where to store the logger instance.
fFlags Logger instance flags, a combination of the RTLOGFLAGS_* values.
pszGroupSettings The initial group settings.
pszEnvVarBase Base name for the environment variables for this instance.
cGroups Number of groups in the array.
papszGroups Pointer to array of groups. This must stick around for the life of the logger instance.
fDestFlags The destination flags. RTLOGDEST_FILE is ORed if pszFilenameFmt specified.
pszErrorMsg A buffer which is filled with an error message if something fails. May be NULL.
cchErrorMsg The size of the error message buffer.
pszFilenameFmt Log filename format string. Standard RTStrFormat().
... Format arguments.
Create a logger instance.

Returns:
iprt status code.
Parameters:
ppLogger Where to store the logger instance.
fFlags Logger instance flags, a combination of the RTLOGFLAGS_* values.
pszGroupSettings The initial group settings.
pszEnvVarBase Base name for the environment variables for this instance.
cGroups Number of groups in the array.
papszGroups Pointer to array of groups. This must stick around for the life of the logger instance.
fDestFlags The destination flags. RTLOGDEST_FILE is ORed if pszFilenameFmt specified.
pszErrorMsg A buffer which is filled with an error message if something fails. May be NULL.
cchErrorMsg The size of the error message buffer.
pszFilenameFmt Log filename format string. Standard RTStrFormat().
args Format arguments.
Create a logger instance for singled threaded ring-0 usage.

Returns:
iprt status code.
Parameters:
pLogger Where to create the logger instance.
cbLogger The amount of memory available for the logger instance.
pfnLogger Pointer to logger wrapper function for the clone.
pfnFlush Pointer to flush function for the clone.
fFlags Logger instance flags for the clone, a combination of the RTLOGFLAGS_* values.
fDestFlags The destination flags.
Destroys a logger instance.

The instance is flushed and all output destinations closed (where applicable).

Returns:
iprt status code.
Parameters:
pLogger The logger instance which close destroyed. NULL is fine.
Create a logger instance clone for RC usage.

Returns:
iprt status code.
Parameters:
pLogger The logger instance to be cloned.
pLoggerRC Where to create the RC logger instance.
cbLoggerRC Amount of memory allocated to for the RC logger instance clone.
pfnLoggerRCPtr Pointer to logger wrapper function for this instance (RC Ptr).
pfnFlushRCPtr Pointer to flush function (RC Ptr).
fFlags Logger instance flags, a combination of the RTLOGFLAGS_* values.
Sets the custom prefix callback.

Returns:
IPRT status code.
Parameters:
pLogger The logger instance.
pfnCallback The callback.
pvUser The user argument for the callback.
Copies the group settings and flags from logger instance to another.

Returns:
IPRT status code.
Parameters:
pDstLogger The destination logger instance.
pSrcLogger The source logger instance. If NULL the default one is used.
fFlagsOr OR mask for the flags.
fFlagsAnd AND mask for the flags.
Get the current log group settings as a string.

Returns:
VINF_SUCCESS or VERR_BUFFER_OVERFLOW.
Parameters:
pLogger Logger instance (NULL for default logger).
pszBuf The output buffer.
cchBuf The size of the output buffer. Must be greater than zero.
Updates the group settings for the logger instance using the specified specification string.

Returns:
iprt status code. Failures can safely be ignored.
Parameters:
pLogger Logger instance (NULL for default logger).
pszVar Value to parse.
Updates the flags for the logger instance using the specified specification string.

Returns:
iprt status code. Failures can safely be ignored.
Parameters:
pLogger Logger instance (NULL for default logger).
pszVar Value to parse.
Get the current log flags as a string.

Returns:
VINF_SUCCESS or VERR_BUFFER_OVERFLOW.
Parameters:
pLogger Logger instance (NULL for default logger).
pszBuf The output buffer.
cchBuf The size of the output buffer. Must be greater than zero.
Updates the logger desination using the specified string.

Returns:
VINF_SUCCESS or VERR_BUFFER_OVERFLOW.
Parameters:
pLogger Logger instance (NULL for default logger).
pszVar The value to parse.
Get the current log destinations as a string.

Returns:
VINF_SUCCESS or VERR_BUFFER_OVERFLOW.
Parameters:
pLogger Logger instance (NULL for default logger).
pszBuf The output buffer.
cchBuf The size of the output buffer. Must be greater than 0.

If the critical section has already been destroyed, then inform the caller.

Definition at line 145 of file ldr.cpp.

{
    LogFlow(("RTLdrClose: hLdrMod=%RTldrm\n", hLdrMod));

    /*
     * Validate input.
     */
    AssertMsgReturn(rtldrIsValid(hLdrMod), ("hLdrMod=%p\n", hLdrMod), VERR_INVALID_HANDLE);
    PRTLDRMODINTERNAL pMod = (PRTLDRMODINTERNAL)hLdrMod;
    //AssertMsgReturn(pMod->eState == LDR_STATE_OPENED, ("eState=%d\n", pMod->eState), VERR_WRONG_ORDER);

    /*
     * Do it.
     */
    int rc = pMod->pOps->pfnClose(pMod);
    AssertRC(rc);
    pMod->eState = LDR_STATE_INVALID;
    pMod->u32Magic++;
    RTMemFree(pMod);

    LogFlow(("RTLdrClose: returns VINF_SUCCESS\n"));
    return VINF_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index