|
LibreOffice
LibreOffice 26.2 SDK C/C++ API Reference
|
#include "sal/config.h"#include "osl/security.h"#include "rtl/ustring.h"#include "sal/saldllapi.h"Go to the source code of this file.
Macros | |
| #define | osl_Pipe_OPEN 0x0000 /*< open existing pipe */ |
| #define | osl_Pipe_CREATE 0x0001 /*< create pipe and open it, fails if already exists */ |
Typedefs | |
| typedef sal_uInt32 | oslPipeOptions |
| Pipe creation options. | |
| typedef struct oslPipeImpl * | oslPipe |
Functions | |
| SAL_DLLPUBLIC oslPipe | osl_createPipe (rtl_uString *strPipeName, oslPipeOptions Options, oslSecurity Security) |
| Create or open a pipe. | |
| SAL_DLLPUBLIC void | osl_releasePipe (oslPipe Pipe) |
| Decreases the refcount of the pipe. | |
| SAL_DLLPUBLIC void | osl_acquirePipe (oslPipe Pipe) |
| Increases the refcount of the pipe. | |
| SAL_DLLPUBLIC void | osl_closePipe (oslPipe Pipe) |
| Close the pipe. | |
| SAL_DLLPUBLIC oslPipe | osl_acceptPipe (oslPipe Pipe) |
| SAL_DLLPUBLIC sal_Int32 | osl_sendPipe (oslPipe Pipe, const void *pBuffer, sal_Int32 BufferSize) |
| SAL_DLLPUBLIC sal_Int32 | osl_receivePipe (oslPipe Pipe, void *pBuffer, sal_Int32 BufferSize) |
| SAL_DLLPUBLIC sal_Int32 | osl_readPipe (oslPipe Pipe, void *pBuffer, sal_Int32 BufferSize) |
| Reads blocking from the pipe. | |
| SAL_DLLPUBLIC sal_Int32 | osl_writePipe (oslPipe Pipe, const void *pBuffer, sal_Int32 BufferSize) |
| Writes blocking onto the pipe. | |
| SAL_DLLPUBLIC oslPipeError | osl_getLastPipeError (oslPipe Pipe) |
| #define osl_Pipe_CREATE 0x0001 /*< create pipe and open it, fails if already exists */ |
| #define osl_Pipe_OPEN 0x0000 /*< open existing pipe */ |
| typedef struct oslPipeImpl* oslPipe |
| typedef sal_uInt32 oslPipeOptions |
Pipe creation options.
A pipe can either be opened, or a new pipe can be created and opened.
| enum oslPipeError |
| SAL_DLLPUBLIC oslPipe osl_acceptPipe | ( | oslPipe | Pipe | ) |
| SAL_DLLPUBLIC void osl_acquirePipe | ( | oslPipe | Pipe | ) |
| SAL_DLLPUBLIC void osl_closePipe | ( | oslPipe | Pipe | ) |
Close the pipe.
Any read, write or accept actions stop immediately.
| [in] | Pipe | pipe handle |
| SAL_DLLPUBLIC oslPipe osl_createPipe | ( | rtl_uString * | strPipeName, |
| oslPipeOptions | Options, | ||
| oslSecurity | Security ) |
Create or open a pipe.
| [in] | strPipeName | pipe name |
| [in] | Options | create or open the pipe |
| [in] | Security | pipe creator |
| SAL_DLLPUBLIC oslPipeError osl_getLastPipeError | ( | oslPipe | Pipe | ) |
| SAL_DLLPUBLIC sal_Int32 osl_readPipe | ( | oslPipe | Pipe, |
| void * | pBuffer, | ||
| sal_Int32 | BufferSize ) |
Reads blocking from the pipe.
| SAL_DLLPUBLIC sal_Int32 osl_receivePipe | ( | oslPipe | Pipe, |
| void * | pBuffer, | ||
| sal_Int32 | BufferSize ) |
| SAL_DLLPUBLIC void osl_releasePipe | ( | oslPipe | Pipe | ) |
Decreases the refcount of the pipe.
If the refcount drops to zero, the handle is destroyed.
| [in] | Pipe | pipe handle |
| SAL_DLLPUBLIC sal_Int32 osl_sendPipe | ( | oslPipe | Pipe, |
| const void * | pBuffer, | ||
| sal_Int32 | BufferSize ) |
| SAL_DLLPUBLIC sal_Int32 osl_writePipe | ( | oslPipe | Pipe, |
| const void * | pBuffer, | ||
| sal_Int32 | BufferSize ) |
Writes blocking onto the pipe.