[Spice-devel] [PATCH spice-server 2/3] red-pipe-item: Move typedef at the top to avoid a "struct RedPipeItem"

Frediano Ziglio fziglio at redhat.com
Wed Dec 13 14:01:58 UTC 2017


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/red-pipe-item.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/server/red-pipe-item.h b/server/red-pipe-item.h
index f6bf68f05..8e9115725 100644
--- a/server/red-pipe-item.h
+++ b/server/red-pipe-item.h
@@ -22,18 +22,18 @@
 #include <glib.h>
 #include <common/ring.h>
 
-struct RedPipeItem;
+typedef struct RedPipeItem RedPipeItem;
 
-typedef void red_pipe_item_free_t(struct RedPipeItem *item);
+typedef void red_pipe_item_free_t(RedPipeItem *item);
 
-typedef struct RedPipeItem {
+struct RedPipeItem {
     int type;
 
     /* private */
     int refcount;
 
     red_pipe_item_free_t *free_func;
-} RedPipeItem;
+};
 
 void red_pipe_item_init_full(RedPipeItem *item, int type, red_pipe_item_free_t free_func);
 RedPipeItem *red_pipe_item_ref(RedPipeItem *item);
-- 
2.14.3



More information about the Spice-devel mailing list