Commit d4241bc0 authored by Niels Möller's avatar Niels Möller
Browse files

Moved instance structure to implementation file.

Rev: src/read_data.c:1.6
Rev: src/read_data.h:1.4
parent 8bc61c2e
......@@ -27,10 +27,24 @@
#include "werror.h"
#include "xalloc.h"
struct read_data
{
struct read_handler super; /* Super type */
UINT32 block_size;
/* Where to send the data */
struct abstract_write *handler;
struct callback *close_callback;
};
static int do_read_data(struct read_handler **h,
struct abstract_read *read)
{
struct read_data *closure = (struct read_data *) *h;
MDEBUG(closure);
while(1)
{
......
......@@ -28,17 +28,9 @@
#include "abstract_io.h"
struct read_data
{
struct read_handler super; /* Super type */
UINT32 block_size;
/* Where to send the data */
struct abstract_write *handler;
struct callback *close_callback;
};
struct read_handler *make_read_data(struct abstract_write *handler,
struct callback *close_callback,
UINT32 block_size);
#endif /* LSH_READ_DATA_H_INCLUDED */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment