Vanilla.PDF  1.4.1
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 
28  typedef enum {
34 
40 
46 
52 
58 
64 
70 
76 
82 
88  } ObjectType;
89 
98  VANILLAPDF_API error_type CALLING_CONVENTION Object_GetType(ObjectHandle* handle, ObjectType* result);
99 
103  VANILLAPDF_API error_type CALLING_CONVENTION Object_TypeName(ObjectType type, string_type* result);
104 
108  VANILLAPDF_API error_type CALLING_CONVENTION Object_GetOffset(ObjectHandle* handle, offset_type* result);
109 
113  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToUnknown(ObjectHandle* handle, IUnknownHandle** result);
114 
118  VANILLAPDF_API error_type CALLING_CONVENTION Object_FromUnknown(IUnknownHandle* handle, ObjectHandle** result);
119 
124  VANILLAPDF_API error_type CALLING_CONVENTION Object_Release(ObjectHandle* handle);
125 
128 #ifdef __cplusplus
129 };
130 #endif
131 
132 #endif /* _C_OBJECT_H */
Definition: c_object.h:63
ObjectType
Available types of objects.
Definition: c_object.h:28
Definition: c_object.h:69
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.
error_type Object_GetOffset(ObjectHandle *handle, offset_type *result)
Get input file offset where this object was found.
This file contains all type forward declarations returned by the library API.
const char * string_type
C-Style string.
Definition: c_types.h:82
Definition: c_object.h:51
error_type Object_GetType(ObjectHandle *handle, ObjectType *result)
Get derived type of current object.
Base class for syntactic tokens.
Definition: c_object.h:57
Definition: c_object.h:87
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...
Definition: c_object.h:81
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
Definition: c_object.h:33
Base class for reference counting.
Definition: c_object.h:39
error_type Object_ToUnknown(ObjectHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
Definition: c_object.h:45
Definition: c_object.h:75