Microsoft Information Protection SDK - C 1.17
API Reference Documentation for C
Loading...
Searching...
No Matches
editable_stream_cc.h
Go to the documentation of this file.
1/*
2 *
3 * Copyright (c) Microsoft Corporation.
4 * All rights reserved.
5 *
6 * This code is licensed under the MIT License.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files(the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions :
14 *
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 * THE SOFTWARE.
25 *
26 */
27
34#ifndef API_MIP_EDITABLE_STREAM_CC_H_
35#define API_MIP_EDITABLE_STREAM_CC_H_
36
38#include "mip_cc/error_cc.h"
40#include "mip_cc/result_cc.h"
41#include "mip_cc/stream_cc.h"
42
51MIP_CC_CALLBACK(mip_cc_stream_insert_callback_fn /*typename*/,
52 int64_t /*return*/,
53 void* context,
54 const uint8_t* buffer,
55 int64_t bufferLength);
56
66MIP_CC_CALLBACK(mip_cc_stream_update_callback_fn /*typename*/,
67 int64_t /*return*/,
68 void* context,
69 const uint8_t* buffer,
70 int64_t bufferLength,
71 int64_t replaceLength);
72
80MIP_CC_CALLBACK(mip_cc_stream_delete_callback_fn /*typename*/,
81 int64_t /*return*/,
82 void* context,
83 int64_t numBytes);
84
86
108MIP_CC_API(mip_cc_result) MIP_CC_CreateEditableStream(
109 const mip_cc_stream_insert_callback_fn insertCallback,
110 const mip_cc_stream_update_callback_fn updateCallback,
111 const mip_cc_stream_delete_callback_fn deleteCallback,
112 const mip_cc_stream_read_callback_fn readCallback,
113 const mip_cc_stream_write_callback_fn writeCallback,
114 const mip_cc_stream_flush_callback_fn flushCallback,
115 const mip_cc_stream_seek_callback_fn seekCallback,
116 const mip_cc_stream_canread_callback_fn canReadCallback,
117 const mip_cc_stream_canwrite_callback_fn canWriteCallback,
118 const mip_cc_stream_position_callback_fn positionCallback,
119 const mip_cc_stream_getsize_callback_fn getSizeCallback,
120 const mip_cc_stream_setsize_callback_fn setSizeCallback,
121 void *context,
124
130MIP_CC_API(void) MIP_CC_ReleaseEditableStream(mip_cc_editable_stream stream);
131
132#endif // API_MIP_EDITABLE_STREAM_CC_H_
A file Containing the common types used by the upe, file and protection modules.
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn const mip_cc_stream_read_callback_fn 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
Definition editable_stream_cc.h:120
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn const mip_cc_stream_read_callback_fn const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn flushCallback
Definition editable_stream_cc.h:114
MIP_CC_API(void) MIP_CC_ReleaseEditableStream(mip_cc_editable_stream stream)
Release resources associated with an editable stream handle.
const mip_cc_stream_update_callback_fn updateCallback
Definition editable_stream_cc.h:110
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn const mip_cc_stream_read_callback_fn 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_editable_stream * stream
Definition editable_stream_cc.h:122
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn const mip_cc_stream_read_callback_fn const mip_cc_stream_write_callback_fn const mip_cc_stream_flush_callback_fn const mip_cc_stream_seek_callback_fn seekCallback
Definition editable_stream_cc.h:115
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn const mip_cc_stream_read_callback_fn 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
Definition editable_stream_cc.h:116
mip_cc_handle * mip_cc_editable_stream
Definition editable_stream_cc.h:85
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn const mip_cc_stream_read_callback_fn 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
Definition editable_stream_cc.h:119
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn const mip_cc_stream_read_callback_fn 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
Definition editable_stream_cc.h:118
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn const mip_cc_stream_read_callback_fn readCallback
Definition editable_stream_cc.h:112
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn const mip_cc_stream_read_callback_fn 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_editable_stream mip_cc_error * errorInfo
Definition editable_stream_cc.h:123
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn const mip_cc_stream_read_callback_fn 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
Definition editable_stream_cc.h:117
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn const mip_cc_stream_read_callback_fn 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
Definition editable_stream_cc.h:121
MIP_CC_CALLBACK(mip_cc_stream_insert_callback_fn, int64_t, void *context, const uint8_t *buffer, int64_t bufferLength)
Callback function definition for inserting a buffer into the stream.
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn deleteCallback
Definition editable_stream_cc.h:111
const mip_cc_stream_update_callback_fn const mip_cc_stream_delete_callback_fn const mip_cc_stream_read_callback_fn const mip_cc_stream_write_callback_fn writeCallback
Definition editable_stream_cc.h:113
Error definition and functions.
Export/import and other macros for C API.
Defines success/error result codes.
mip_cc_result
API success/failure result.
Definition result_cc.h:44
Defines stream callback functions.
Error information.
Definition error_cc.h:79
Opaque handle to MIP object.
Definition common_types_cc.h:44