Vanilla.PDF  1.5.2
Cross-platform toolkit for creating and modifying PDF documents
c_object.h
Go to the documentation of this file.
1 #ifndef _C_OBJECT_H
2 #define _C_OBJECT_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 
29  typedef enum {
30 
35 
41 
47 
53 
59 
65 
71 
77 
83 
89 
95  } ObjectType;
96 
105  VANILLAPDF_API error_type CALLING_CONVENTION Object_GetObjectType(ObjectHandle* handle, ObjectType* result);
106 
110  VANILLAPDF_API error_type CALLING_CONVENTION Object_TypeName(ObjectType type, string_type* result);
111 
115  VANILLAPDF_API error_type CALLING_CONVENTION Object_GetOffset(ObjectHandle* handle, offset_type* result);
116 
120  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToString(ObjectHandle* handle, BufferHandle** result);
121 
125  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToUnknown(ObjectHandle* handle, IUnknownHandle** result);
126 
130  VANILLAPDF_API error_type CALLING_CONVENTION Object_FromUnknown(IUnknownHandle* handle, ObjectHandle** result);
131 
136  VANILLAPDF_API error_type CALLING_CONVENTION Object_Release(ObjectHandle* handle);
137 
140 #ifdef __cplusplus
141 };
142 #endif
143 
144 #endif /* _C_OBJECT_H */
Definition: c_object.h:40
error_type Object_FromUnknown(IUnknownHandle *handle, ObjectHandle **result)
Convert IUnknownHandle to ObjectHandle.
error_type Object_TypeName(ObjectType type, string_type *result)
Get string representation of object type.
error_type Object_Release(ObjectHandle *handle)
Decrement the internal reference counter.
Definition: c_object.h:46
Definition: c_object.h:94
error_type Object_ToString(ObjectHandle *handle, BufferHandle **result)
Convert to human readable text format.
Definition: c_object.h:76
Definition: c_object.h:64
Undefined unitialized default value, triggers error when used.
Definition: c_object.h:34
error_type Object_GetOffset(ObjectHandle *handle, offset_type *result)
Get input file offset where this object was found.
ObjectType
Derived types of ObjectHandle.
Definition: c_object.h:29
This file contains all type forward declarations returned by the library API.
Definition: c_object.h:70
const char * string_type
C-Style string.
Definition: c_types.h:82
Definition: c_object.h:52
Definition: c_object.h:88
Base class for syntactic tokens.
Definition: c_object.h:58
error_type Object_GetObjectType(ObjectHandle *handle, ObjectType *result)
Get derived type of current object.
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
Definition: c_object.h:82
This file contains macro declarations for importing and exporting symbols from library boundaries...
This file contains types and constants used as parameters or return values.
int64_t offset_type
Offset type compatible with standard IO.
Definition: c_types.h:56
Represents memory stored data.
Base class for reference counting.
error_type Object_ToUnknown(ObjectHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.