#ifndef IOSTREAM_PRIVATE_H
#define IOSTREAM_PRIVATE_H
#include "iostream.h"
/* This file is private to input stream and output stream implementations */
struct iostream_destroy_callback {
void *context;
};
struct iostream_private {
int refcount;
char *name;
char *error;
};
void (*callback)(void *));
/* Set a specific error for the stream. This shouldn't be used for regular
syscall errors where stream's errno is enough, since it's used by default.
The stream errno must always be set even if the error string is also set.
Setting this error replaces the previously set error. */
#endif