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

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

 



Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://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]