Overthinking

This commit is contained in:
XANTRONIX Development 2019-01-30 01:26:47 -06:00
parent bb0363a1a2
commit da9daa39cc

View file

@ -21,23 +21,27 @@ typedef struct _hexagram_pcapng_stream {
typedef ssize_t (hexagram_pcapng_block_handler)(hexagram_pcapng_stream *, typedef ssize_t (hexagram_pcapng_block_handler)(hexagram_pcapng_stream *,
uint32_t type, uint32_t type,
size_t length); size_t length,
void *data);
typedef ssize_t (hexagram_pcapng_option_handler)(hexagram_pcapng_stream *, typedef ssize_t (hexagram_pcapng_option_handler)(hexagram_pcapng_stream *,
uint32_t type, uint32_t type,
uint16_t code, uint16_t code,
uint16_t length); uint16_t length,
void *data);
hexagram_pcapng_stream *hexagram_pcapng_stream_open_fd(int fd); hexagram_pcapng_stream *hexagram_pcapng_stream_open_fd(int fd);
void hexagram_pcapng_stream_destroy(hexagram_pcapng_stream *stream); void hexagram_pcapng_stream_destroy(hexagram_pcapng_stream *stream);
ssize_t hexagram_pcapng_stream_read(hexagram_pcapng_stream *stream,
hexagram_pcapng_block_handler *handler);
ssize_t hexagram_pcapng_read_options(hexagram_pcapng_stream *stream, ssize_t hexagram_pcapng_read_options(hexagram_pcapng_stream *stream,
hexagram_pcapng_option_handler *handler, hexagram_pcapng_option_handler *handler,
uint32_t type, uint32_t type,
size_t len); size_t len,
void *data);
ssize_t hexagram_pcapng_stream_read(hexagram_pcapng_stream *stream,
hexagram_pcapng_block_handler *handler,
void *data);
#endif /* _HEXAGRAM_PCAPNG_H */ #endif /* _HEXAGRAM_PCAPNG_H */