|
libopc
|
#include <opc/config.h>Go to the source code of this file.
Data Structures | |
| struct | OPC_FILERAWSTATE_STRUCT |
| struct | OPC_IO_STRUCT |
Macros | |
| #define | OPC_FILE_READ |
| #define | OPC_FILE_WRITE |
| #define | OPC_FILE_TRUNC |
Typedefs | |
| typedef enum OPC_FILESEEKMODE_ENUM | opcFileSeekMode |
| typedef int | opcFileReadCallback(void *iocontext, char *buffer, int len) |
| typedef int | opcFileWriteCallback(void *iocontext, const char *buffer, int len) |
| typedef int | opcFileCloseCallback(void *iocontext) |
| typedef opc_ofs_t | opcFileSeekCallback(void *iocontext, opc_ofs_t ofs) |
| typedef int | opcFileTrimCallback(void *iocontext, opc_ofs_t new_size) |
| typedef int | opcFileFlushCallback(void *iocontext) |
| typedef struct OPC_FILERAWSTATE_STRUCT | opcFileRawState |
| typedef struct OPC_IO_STRUCT | opcIO_t |
Enumerations | |
| enum | OPC_FILESEEKMODE_ENUM { opcFileSeekSet = SEEK_SET, opcFileSeekCur = SEEK_CUR, opcFileSeekEnd = SEEK_END } |
Functions | |
| opc_error_t | opcFileInitIO (opcIO_t *io, opcFileReadCallback *ioread, opcFileWriteCallback *iowrite, opcFileCloseCallback *ioclose, opcFileSeekCallback *ioseek, opcFileTrimCallback *iotrim, opcFileFlushCallback *ioflush, void *iocontext, pofs_t file_size, int flags) |
| opc_error_t | opcFileInitIOFile (opcIO_t *io, const xmlChar *filename, int flags) |
| opc_error_t | opcFileInitIOMemory (opcIO_t *io, const opc_uint8_t *data, opc_uint32_t data_len, int flags) |
| opc_error_t | opcFileCleanupIO (opcIO_t *io) |
The opc module contains the file library functions.
| #define OPC_FILE_READ |
Flag for READ access.
| #define OPC_FILE_TRUNC |
Flag indicates that file will be truncated when opened.
| #define OPC_FILE_WRITE |
Flag for WRITE access.
| typedef int opcFileCloseCallback(void *iocontext) |
| typedef int opcFileFlushCallback(void *iocontext) |
| typedef struct OPC_FILERAWSTATE_STRUCT opcFileRawState |
Represents a state of a file, i.e. file position (buf_pos) and error status (err).
| typedef int opcFileReadCallback(void *iocontext, char *buffer, int len) |
| typedef enum OPC_FILESEEKMODE_ENUM opcFileSeekMode |
Abstraction for see modes.
| typedef int opcFileTrimCallback(void *iocontext, opc_ofs_t new_size) |
| typedef int opcFileWriteCallback(void *iocontext, const char *buffer, int len) |
| typedef struct OPC_IO_STRUCT opcIO_t |
File IO context.
Abstraction for see modes.
| opc_error_t opcFileCleanupIO | ( | opcIO_t * | io | ) |
Cleanup an IO context, i.e. release all system resources.
| opc_error_t opcFileInitIO | ( | opcIO_t * | io, |
| opcFileReadCallback * | ioread, | ||
| opcFileWriteCallback * | iowrite, | ||
| opcFileCloseCallback * | ioclose, | ||
| opcFileSeekCallback * | ioseek, | ||
| opcFileTrimCallback * | iotrim, | ||
| opcFileFlushCallback * | ioflush, | ||
| void * | iocontext, | ||
| pofs_t | file_size, | ||
| int | flags | ||
| ) |
Initialize an IO context.
| opc_error_t opcFileInitIOFile | ( | opcIO_t * | io, |
| const xmlChar * | filename, | ||
| int | flags | ||
| ) |
Initialize an IO context for a file.
| opc_error_t opcFileInitIOMemory | ( | opcIO_t * | io, |
| const opc_uint8_t * | data, | ||
| opc_uint32_t | data_len, | ||
| int | flags | ||
| ) |
Initialize an IO for memory.
1.8.10