LibreOffice
LibreOffice 7.4 SDK C/C++ API Reference
Functions
current_context.h File Reference
#include "cppu/cppudllapi.h"
#include "rtl/ustring.h"

Go to the source code of this file.

Functions

CPPU_DLLPUBLIC sal_Bool uno_getCurrentContext (void **ppCurrentContext, rtl_uString *pEnvDcp, void *pEnvContext) SAL_THROW_EXTERN_C()
 Gets the current task's context. More...
 
CPPU_DLLPUBLIC sal_Bool uno_setCurrentContext (void *pCurrentContext, rtl_uString *pEnvDcp, void *pEnvContext) SAL_THROW_EXTERN_C()
 Sets the current task's context. More...
 

Function Documentation

◆ uno_getCurrentContext()

CPPU_DLLPUBLIC sal_Bool uno_getCurrentContext ( void **  ppCurrentContext,
rtl_uString *  pEnvDcp,
void *  pEnvContext 
)

Gets the current task's context.

Attention
Don't spread the returned interface around to other threads. Every thread has its own current context.
Parameters
ppCurrentContextinout param current context of type com.sun.star.uno.XCurrentContext
pEnvDcpdescriptor of returned interface's environment
pEnvContextcontext of returned interface's environment (commonly 0)
Returns
true, if context ref was transferred (even if null ref)

◆ uno_setCurrentContext()

CPPU_DLLPUBLIC sal_Bool uno_setCurrentContext ( void *  pCurrentContext,
rtl_uString *  pEnvDcp,
void *  pEnvContext 
)

Sets the current task's context.

Parameters
pCurrentContextin param current context of type com.sun.star.uno.XCurrentContext
pEnvDcpdescriptor of interface's environment
pEnvContextcontext of interface's environment (commonly 0)
Returns
true, if context ref was transferred (even if null ref)