|
Microsoft Information Protection SDK - C 1.17
API Reference Documentation for C
|
Defines stream callback functions. More...
#include "mip_cc/common_types_cc.h"#include "mip_cc/error_cc.h"#include "mip_cc/mip_macros_cc.h"#include "mip_cc/result_cc.h"Go to the source code of this file.
Typedefs | |
| typedef mip_cc_handle * | mip_cc_stream |
Functions | |
| MIP_CC_CALLBACK (mip_cc_stream_read_callback_fn, int64_t, void *context, uint8_t *buffer, int64_t bufferLength) | |
| Callback function definition for reading into a buffer from the stream. | |
| MIP_CC_CALLBACK (mip_cc_stream_write_callback_fn, int64_t, void *context, const uint8_t *buffer, int64_t bufferLength) | |
| Callback function definition for Writing into the stream from a buffer. | |
| MIP_CC_CALLBACK (mip_cc_stream_flush_callback_fn, bool, void *context) | |
| callback function definition for flushing the stream. | |
| MIP_CC_CALLBACK (mip_cc_stream_seek_callback_fn, void, void *context, int64_t position) | |
| callback function definition for Seeking specific position within the stream. | |
| MIP_CC_CALLBACK (mip_cc_stream_canread_callback_fn, bool, void *context) | |
| call back function definition for a check if stream can be read from. | |
| MIP_CC_CALLBACK (mip_cc_stream_canwrite_callback_fn, bool, void *context) | |
| call back function definition for a check if stream can be written to. | |
| MIP_CC_CALLBACK (mip_cc_stream_position_callback_fn, int64_t, void *context) | |
| call back function definition for getting the current position within the stream. | |
| MIP_CC_CALLBACK (mip_cc_stream_getsize_callback_fn, int64_t, void *context) | |
| call back function definition for getting the size of the content within the stream. | |
| MIP_CC_CALLBACK (mip_cc_stream_setsize_callback_fn, void, void *context, int64_t value) | |
| call back function definition for setting the stream size. | |
| MIP_CC_API (mip_cc_result) MIP_CC_CreateStream(const mip_cc_stream_read_callback_fn readCallback | |
| Creates a stream. | |
| MIP_CC_API (void) MIP_CC_ReleaseStream(mip_cc_stream stream) | |
| Release resources associated with a stream handle. | |
Variables | |
| const mip_cc_stream_write_callback_fn | writeCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn | flushCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn | seekCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn | canReadCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn | canWriteCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn const mip_cc_stream_position_callback_fn | positionCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn const mip_cc_stream_position_callback_fn const mip_cc_stream_getsize_callback_fn | getSizeCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn const mip_cc_stream_position_callback_fn const mip_cc_stream_getsize_callback_fn const mip_cc_stream_setsize_callback_fn | setSizeCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn const mip_cc_stream_position_callback_fn const mip_cc_stream_getsize_callback_fn const mip_cc_stream_setsize_callback_fn void * | context |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn const mip_cc_stream_position_callback_fn const mip_cc_stream_getsize_callback_fn const mip_cc_stream_setsize_callback_fn void mip_cc_stream * | stream |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn const mip_cc_stream_position_callback_fn const mip_cc_stream_getsize_callback_fn const mip_cc_stream_setsize_callback_fn void mip_cc_stream mip_cc_error * | errorInfo |
Defines stream callback functions.
| typedef mip_cc_handle* mip_cc_stream |
| MIP_CC_API | ( | mip_cc_result | ) | const |
Creates a stream.
| readCallback | Function pointer for reading into a buffer from the stream |
| writeCallback | Function pointer for writeing into the stream from a buffer |
| flushCallback | Function pointer for writing a log statement |
| seekCallback | Function pointer for seeking specific position within the stream |
| canReadCallback | Function pointer for a check if stream can be read from |
| canWriteCallback | Function pointer for a check if stream can be written to |
| positionCallback | Function pointer for getting the current position within the stream |
| getSizeCallback | Function pointer for getting the size of the content within the stream |
| setSizeCallback | Function pointer for setting the stream size |
| context | Context that will be supplied to each callback function as the first arg. Should remain valid for the lifetime of the stream |
| stream | [Output] Handle to stream object |
| errorInfo | [Output] (Optional) Failure info if operation result is error |
| MIP_CC_API | ( | void | ) |
Release resources associated with a stream handle.
| stream | stream to be released |
| MIP_CC_CALLBACK | ( | mip_cc_stream_canread_callback_fn | , |
| bool | , | ||
| void * | context ) |
call back function definition for a check if stream can be read from.
| context | user provided context |
| MIP_CC_CALLBACK | ( | mip_cc_stream_canwrite_callback_fn | , |
| bool | , | ||
| void * | context ) |
call back function definition for a check if stream can be written to.
| context | user provided context |
| MIP_CC_CALLBACK | ( | mip_cc_stream_flush_callback_fn | , |
| bool | , | ||
| void * | context ) |
callback function definition for flushing the stream.
| context | user provided context |
| MIP_CC_CALLBACK | ( | mip_cc_stream_getsize_callback_fn | , |
| int64_t | , | ||
| void * | context ) |
call back function definition for getting the size of the content within the stream.
| context | user provided context |
| MIP_CC_CALLBACK | ( | mip_cc_stream_position_callback_fn | , |
| int64_t | , | ||
| void * | context ) |
call back function definition for getting the current position within the stream.
| context | user provided context |
| MIP_CC_CALLBACK | ( | mip_cc_stream_read_callback_fn | , |
| int64_t | , | ||
| void * | context, | ||
| uint8_t * | buffer, | ||
| int64_t | bufferLength ) |
Callback function definition for reading into a buffer from the stream.
| context | user provided context |
| buffer | pointer to a buffer |
| bufferLength | buffer size. |
| MIP_CC_CALLBACK | ( | mip_cc_stream_seek_callback_fn | , |
| void | , | ||
| void * | context, | ||
| int64_t | position ) |
callback function definition for Seeking specific position within the stream.
| context | user provided context |
| position | to seek into stream. |
| MIP_CC_CALLBACK | ( | mip_cc_stream_setsize_callback_fn | , |
| void | , | ||
| void * | context, | ||
| int64_t | value ) |
call back function definition for setting the stream size.
| context | user provided context |
| stream | size. |
| MIP_CC_CALLBACK | ( | mip_cc_stream_write_callback_fn | , |
| int64_t | , | ||
| void * | context, | ||
| const uint8_t * | buffer, | ||
| int64_t | bufferLength ) |
Callback function definition for Writing into the stream from a buffer.
| context | user provided context |
| buffer | pointer to a buffer |
| bufferLength | buffer size. |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn canReadCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn canWriteCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn const mip_cc_stream_position_callback_fn const mip_cc_stream_getsize_callback_fn const mip_cc_stream_setsize_callback_fn void* context |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn const mip_cc_stream_position_callback_fn const mip_cc_stream_getsize_callback_fn const mip_cc_stream_setsize_callback_fn void mip_cc_stream mip_cc_error* errorInfo |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn flushCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn const mip_cc_stream_position_callback_fn const mip_cc_stream_getsize_callback_fn getSizeCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn const mip_cc_stream_position_callback_fn positionCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn seekCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn const mip_cc_stream_position_callback_fn const mip_cc_stream_getsize_callback_fn const mip_cc_stream_setsize_callback_fn setSizeCallback |
| const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn const mip_cc_stream_canread_callback_fn const mip_cc_stream_canwrite_callback_fn const mip_cc_stream_position_callback_fn const mip_cc_stream_getsize_callback_fn const mip_cc_stream_setsize_callback_fn void mip_cc_stream* stream |
| const mip_cc_stream_write_callback_fn writeCallback |