Make struct AsyncRead/async_read_handler private

All users are now contained in reds_stream.c
This commit is contained in:
Christophe Fergeau 2014-03-14 17:44:57 +01:00
parent 17f89a348a
commit e36c7efe81
2 changed files with 11 additions and 12 deletions

View File

@ -33,6 +33,16 @@
#include <openssl/err.h>
struct AsyncRead {
RedsStream *stream;
void *opaque;
uint8_t *now;
uint8_t *end;
AsyncReadDone done;
AsyncReadError error;
};
typedef struct AsyncRead AsyncRead;
extern SpiceCoreInterface *core;
#if HAVE_SASL
@ -403,7 +413,7 @@ static inline void async_read_clear_handlers(AsyncRead *async)
async->stream = NULL;
}
void async_read_handler(int fd, int event, void *data)
static void async_read_handler(int fd, int event, void *data)
{
AsyncRead *async = (AsyncRead *)data;

View File

@ -29,17 +29,6 @@ typedef void (*AsyncReadDone)(void *opaque);
typedef void (*AsyncReadError)(void *opaque, int err);
typedef struct RedsStream RedsStream;
typedef struct AsyncRead {
RedsStream *stream;
void *opaque;
uint8_t *now;
uint8_t *end;
AsyncReadDone done;
AsyncReadError error;
} AsyncRead;
void async_read_handler(int fd, int event, void *data);
typedef struct RedsStreamPrivate RedsStreamPrivate;
struct RedsStream {