Re: [PATCH 4/7] Make struct AsyncRead/async_read_handler private

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ack


On Mon, Mar 17, 2014 at 2:20 PM, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
All users are now contained in reds_stream.c
---
 server/reds_stream.c | 12 +++++++++++-
 server/reds_stream.h | 11 -----------
 2 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/server/reds_stream.c b/server/reds_stream.c
index cb42561..9041033 100644
--- a/server/reds_stream.c
+++ b/server/reds_stream.c
@@ -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
@@ -399,7 +409,7 @@ static inline void async_read_clear_handlers(AsyncRead *obj)
     obj->stream = NULL;
 }

-void async_read_handler(int fd, int event, void *data)
+static void async_read_handler(int fd, int event, void *data)
 {
     AsyncRead *obj = (AsyncRead *)data;

diff --git a/server/reds_stream.h b/server/reds_stream.h
index a5b7a17..6cbbbbb 100644
--- a/server/reds_stream.h
+++ b/server/reds_stream.h
@@ -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 {
--
1.8.5.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel



--
Marc-André Lureau
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]