Vanilla.PDF  1.3.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 
4 #include "vanillapdf/c_export.h"
5 #include "vanillapdf/c_handles.h"
6 #include "vanillapdf/c_values.h"
7 
8 #ifdef __cplusplus
9 extern "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 
64  VANILLAPDF_API error_type CALLING_CONVENTION FileWriter_Release(FileWriterHandle* handle);
65 
68 #ifdef __cplusplus
69 };
70 #endif
71 
72 #endif /* _C_FILE_WRITER_H */
Implements serialization of Files to destination stream.
error_type FileWriter_Unsubscribe(FileWriterHandle *handle, FileWriterObserverHandle *observer)
Unsubscribe existing observer from the file writer events.
error_type FileWriter_Create(FileWriterHandle **result)
Create new FileWriter instance.
error_type FileWriter_Release(FileWriterHandle *handle)
Decrement the internal reference counter.
This file contains all type forward declarations returned by the library API.
error_type FileWriter_WriteIncremental(FileWriterHandle *handle, FileHandle *source, FileHandle *destination)
Save file state into new destination and create new section for all modifications done by user...
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
This file contains macro declarations for importing and exporting symbols from library boundaries...
Allows hooking on FileWriterHandle events.
This file contains types and constants used as parameters or return values.
error_type FileWriter_Write(FileWriterHandle *handle, FileHandle *source, FileHandle *destination)
Save file state into new destination.
Represents low-level file access handle.
error_type FileWriter_Subscribe(FileWriterHandle *handle, FileWriterObserverHandle *observer)
Subscribe a new observer to the file writer events.