mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-02-19 10:22:51 +01:00
Start filling out internal APIs.
This commit is contained in:
parent
c2610f2dd0
commit
899feb15c7
@ -86,6 +86,15 @@ pdfio_array_t *pdfioArrayCreate(pdfio_file_t *file)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
void _pdfioArrayDelete(pdfio_array_t *a)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// '()' - .
|
// '()' - .
|
||||||
//
|
//
|
||||||
|
@ -23,6 +23,15 @@ pdfio_dict_t *pdfioDictCreate(pdfio_file_t *file)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
void _pdfioDictDelete(pdfio_dict_t *dict)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// '()' - .
|
// '()' - .
|
||||||
//
|
//
|
||||||
|
@ -41,6 +41,15 @@ pdfio_obj_t *pdfioFileCreatePage(pdfio_t *pdf, pdfio_dict_t *dict)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
void _pdfioFileDelete(pdfio_file_t *file)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// '()' - .
|
// '()' - .
|
||||||
//
|
//
|
||||||
|
@ -14,3 +14,75 @@
|
|||||||
#include "pdfio-private.h"
|
#include "pdfio-private.h"
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
bool pdfioObjClose(pdfio_object_t *obj)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
pdfio_stream_t *pdfioObjCreateStream(pdfio_obj_t *obj, pdfio_compress_t compression)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
void _pdfioObjDelete(pdfio_object_t *obj)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
pdfio_dict_t *pdfioObjGetDict(pdfio_obj_t *obj)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
int pdfioObjGetGeneration(pdfio_obj_t *obj)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
int pdfioObjGetNumber(pdfio_obj_t *obj)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
pdfio_stream_t *pdfioObjGetStream(pdfio_obj_t *obj)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
const char *pdfioObjGetType(pdfio_obj_t *obj)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
// Include necessary headers...
|
// Include necessary headers...
|
||||||
//
|
//
|
||||||
|
|
||||||
|
# include "pdfio.h"
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Visibility and other annotations...
|
// Visibility and other annotations...
|
||||||
@ -47,10 +49,33 @@
|
|||||||
// Types and constants...
|
// Types and constants...
|
||||||
//
|
//
|
||||||
|
|
||||||
|
typedef struct _pdfio_value_s // Value structure
|
||||||
|
{
|
||||||
|
pdfio_valtype_t type; // Type of value
|
||||||
|
union
|
||||||
|
{
|
||||||
|
pdfio_array_t *array; // Array value
|
||||||
|
bool boolean; // Boolean value
|
||||||
|
time_t date; // Date/time value
|
||||||
|
pdfio_dict_t *dict; // Dictionary value
|
||||||
|
pdfio_obj_t *obj; // Indirect object (N G obj) value
|
||||||
|
const char *name; // Name value
|
||||||
|
float number; // Number value
|
||||||
|
const char *string; // String value
|
||||||
|
} value; // Value union
|
||||||
|
} _pdfio_value_t;
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Functions...
|
// Functions...
|
||||||
//
|
//
|
||||||
|
|
||||||
|
extern void _pdfioArrayDelete(pdfio_array_t *a) PDFIO_INTERNAL;
|
||||||
|
extern void _pdfioDictDelete(pdfio_dict_t *dict) PDFIO_INTERNAL;
|
||||||
|
extern void _pdfioFileDelete(pdfio_file_t *file) PDFIO_INTERNAL;
|
||||||
|
extern void _pdfioObjDelete(pdfio_object_t *obj) PDFIO_INTERNAL;
|
||||||
|
extern void _pdfioStreamDelete(pdfio_stream_t *obj) PDFIO_INTERNAL;
|
||||||
|
extern void _pdfioValueDelete(pdfio_value_t *v) PDFIO_INTERNAL;
|
||||||
|
|
||||||
|
|
||||||
#endif // !PDFIO_PRIVATE_H
|
#endif // !PDFIO_PRIVATE_H
|
||||||
|
@ -23,6 +23,15 @@ bool pdfioStreamClose(pdfio_stream_t *st)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
void _pdfioStreamDelete(pdfio_stream_t *obj)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// '()' - .
|
// '()' - .
|
||||||
//
|
//
|
||||||
|
@ -12,3 +12,14 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "pdfio-private.h"
|
#include "pdfio-private.h"
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// '()' - .
|
||||||
|
//
|
||||||
|
|
||||||
|
void _pdfioValueDelete(pdfio_value_t *v)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
14
pdfio.h
14
pdfio.h
@ -137,13 +137,13 @@ extern pdfio_obj_t *pdfioFileGetObject(pdfio_file_t *pdf, int number) PDFIO_PUBL
|
|||||||
extern pdfio_obj_t *pdfioFileGetPage(pdfio_file_t *pdf, int number) PDFIO_PUBLIC;
|
extern pdfio_obj_t *pdfioFileGetPage(pdfio_file_t *pdf, int number) PDFIO_PUBLIC;
|
||||||
extern pdfio_file_t *pdfioFileOpen(const char *filename, const char *mode, pdfio_error_cb_t error_cb, void *error_data) PDFIO_PUBLIC;
|
extern pdfio_file_t *pdfioFileOpen(const char *filename, const char *mode, pdfio_error_cb_t error_cb, void *error_data) PDFIO_PUBLIC;
|
||||||
|
|
||||||
extern bool pdfioObjectClose(pdfio_object_t *obj) PDFIO_PUBLIC;
|
extern bool pdfioObjClose(pdfio_object_t *obj) PDFIO_PUBLIC;
|
||||||
extern pdfio_stream_t *pdfioObjectCreateStream(pdfio_obj_t *obj, pdfio_compress_t compression) PDFIO_PUBLIC;
|
extern pdfio_stream_t *pdfioObjCreateStream(pdfio_obj_t *obj, pdfio_compress_t compression) PDFIO_PUBLIC;
|
||||||
extern pdfio_dict_t *pdfioObjectGetDict(pdfio_obj_t *obj) PDFIO_PUBLIC;
|
extern pdfio_dict_t *pdfioObjGetDict(pdfio_obj_t *obj) PDFIO_PUBLIC;
|
||||||
extern int pdfioObjectGetGeneration(pdfio_obj_t *obj) PDFIO_PUBLIC;
|
extern int pdfioObjGetGeneration(pdfio_obj_t *obj) PDFIO_PUBLIC;
|
||||||
extern int pdfioObjectGetNumber(pdfio_obj_t *obj) PDFIO_PUBLIC;
|
extern int pdfioObjGetNumber(pdfio_obj_t *obj) PDFIO_PUBLIC;
|
||||||
extern pdfio_stream_t *pdfioObjectGetStream(pdfio_obj_t *obj) PDFIO_PUBLIC;
|
extern pdfio_stream_t *pdfioObjGetStream(pdfio_obj_t *obj) PDFIO_PUBLIC;
|
||||||
extern const char *pdfioObjectGetType(pdfio_obj_t *obj) PDFIO_PUBLIC;
|
extern const char *pdfioObjGetType(pdfio_obj_t *obj) PDFIO_PUBLIC;
|
||||||
|
|
||||||
extern pdfio_obj_t *pdfioPageCopy(pdfio_t *pdf, pdfio_obj_t *src) PDFIO_PUBLIC;
|
extern pdfio_obj_t *pdfioPageCopy(pdfio_t *pdf, pdfio_obj_t *src) PDFIO_PUBLIC;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user