mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
Make struct AsyncRead/async_read_handler private
All users are now contained in reds_stream.c
This commit is contained in:
parent
17f89a348a
commit
e36c7efe81
@ -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;
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user