Vanilla.PDF  1.7.0
Cross-platform toolkit for creating and modifying PDF documents
c_file_writer.h
Go to the documentation of this file.
1#ifndef _C_FILE_WRITER_H
2#define _C_FILE_WRITER_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
33 VANILLAPDF_API error_type CALLING_CONVENTION FileWriter_Create(FileWriterHandle** result);
34
40 VANILLAPDF_API error_type CALLING_CONVENTION FileWriter_Write(FileWriterHandle* handle, FileHandle* source, FileHandle* destination);
41
48 VANILLAPDF_API error_type CALLING_CONVENTION FileWriter_WriteIncremental(FileWriterHandle* handle, FileHandle* source, FileHandle* destination);
49
53 VANILLAPDF_API error_type CALLING_CONVENTION FileWriter_Subscribe(FileWriterHandle* handle, FileWriterObserverHandle* observer);
54
58 VANILLAPDF_API error_type CALLING_CONVENTION FileWriter_Unsubscribe(FileWriterHandle* handle, FileWriterObserverHandle* observer);
59
63 VANILLAPDF_API error_type CALLING_CONVENTION FileWriter_ToUnknown(FileWriterHandle* handle, IUnknownHandle** result);
64
68 VANILLAPDF_API error_type CALLING_CONVENTION FileWriter_FromUnknown(IUnknownHandle* handle, FileWriterHandle** result);
69
74 VANILLAPDF_API error_type CALLING_CONVENTION FileWriter_Release(FileWriterHandle* handle);
75
78#ifdef __cplusplus
79};
80#endif
81
82#endif /* _C_FILE_WRITER_H */
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains all type forward declarations returned by the library API.
This file contains types and constants used as parameters or return values.
Represents low-level file access handle.
Implements serialization of Files to destination stream.
error_type CALLING_CONVENTION FileWriter_Write(FileWriterHandle *handle, FileHandle *source, FileHandle *destination)
Save file state into new destination.
error_type CALLING_CONVENTION FileWriter_Create(FileWriterHandle **result)
Create new FileWriter instance.
error_type CALLING_CONVENTION FileWriter_Unsubscribe(FileWriterHandle *handle, FileWriterObserverHandle *observer)
Unsubscribe existing observer from the file writer events.
error_type CALLING_CONVENTION FileWriter_Release(FileWriterHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION FileWriter_FromUnknown(IUnknownHandle *handle, FileWriterHandle **result)
Convert IUnknownHandle to FileWriterHandle.
error_type CALLING_CONVENTION FileWriter_ToUnknown(FileWriterHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION FileWriter_Subscribe(FileWriterHandle *handle, FileWriterObserverHandle *observer)
Subscribe a new observer to the file writer events.
error_type CALLING_CONVENTION FileWriter_WriteIncremental(FileWriterHandle *handle, FileHandle *source, FileHandle *destination)
Save file state into new destination and create new section for all modifications done by user.
Allows hooking on FileWriterHandle events.
Base class for reference counting.
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25