Storage routines for the cache module.
More...
#include "mapiproxy/dcesrv_mapiproxy.h"
#include "mapiproxy/libmapiproxy/libmapiproxy.h"
#include "mapiproxy/modules/mpm_cache.h"
#include "libmapi/libmapi.h"
#include "libmapi/libmapi_private.h"
Storage routines for the cache module.
◆ mpm_cache_stream_close()
| NTSTATUS mpm_cache_stream_close |
( |
struct mpm_stream * | stream | ) |
|
Close the filesystem stream
- Parameters
-
- Returns
- NT_STATUS_OK on success, otherwise NT_STATUS_NOT_FOUND
◆ mpm_cache_stream_open()
| stat h types h NTSTATUS mpm_cache_stream_open |
( |
struct mpm_cache * | mpm, |
|
|
struct mpm_stream * | stream ) |
Create a file: message or attachment in the cache
If the stream is attached to an attachment: FolderID/MessageID/AttachmentID.stream If the stream is attached to a message: FolderID/MessageID.stream
- Parameters
-
| mpm | pointer to the cache module general structure |
| stream | pointer to the mpm_stream entry |
- Returns
- Return a FILE pointer otherwise NULL
◆ mpm_cache_stream_read()
| NTSTATUS mpm_cache_stream_read |
( |
struct mpm_stream * | stream, |
|
|
size_t | input_size, |
|
|
size_t * | length, |
|
|
uint8_t ** | data ) |
Read input_size bytes from a local binary stream
- Parameters
-
| stream | pointer to the mpm_stream entry |
| input_size | the number of bytes to read |
| length | output pointer to the length effectively read from the stream |
| data | output pointer to the binary data read from the stream |
- Returns
- NT_STATUS_OK
◆ mpm_cache_stream_reset()
| NTSTATUS mpm_cache_stream_reset |
( |
struct mpm_stream * | stream | ) |
|
Rewind a stream to the beginning
- Parameters
-
- Returns
- NT_STATUS_OK on success
◆ mpm_cache_stream_write()
| NTSTATUS mpm_cache_stream_write |
( |
struct mpm_stream * | stream, |
|
|
uint16_t | length, |
|
|
uint8_t * | data ) |
Write length bytes to a local stream
- Parameters
-
| stream | pointer to the mpm_stream entry |
| length | the data length to write to the stream |
| data | pointer to the data to write to the stream |
- Returns
- NT_STATUS_OK on success, otherwise NT_STATUS_UNSUCCESSFUL