source: lib/libtraceio.h @ 114b8d6

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 114b8d6 was edb18ce, checked in by Perry Lorier <perry@…>, 15 years ago

Rewrote libtrace's IO handling to use shim functions when needing to do
zlib io

  • Property mode set to 100644
File size: 615 bytes
Line 
1#ifndef LIBTRACEIO_H
2#define LIBTRACEIO_H 1
3#include "config.h"
4#ifdef HAVE_ZLIB
5#include <zlib.h>
6#else
7#include <stdio.h>
8#endif
9
10typedef struct libtrace_io_t libtrace_io_t;
11
12ssize_t libtrace_io_read(libtrace_io_t *io, void *buf, size_t len);
13libtrace_io_t *libtrace_io_fdopen(int fd, const char *mode);
14libtrace_io_t *libtrace_io_open(const char *path, const char *mode);
15void libtrace_io_close(libtrace_io_t *io);
16ssize_t libtrace_io_write(libtrace_io_t *io, const void *buf, size_t len);
17off_t libtrace_io_seek(libtrace_io_t *io, off_t offset, int whence);
18ssize_t libtrace_io_tell(libtrace_io_t *io);
19
20#endif
Note: See TracBrowser for help on using the repository browser.