[vlc-devel] commit: Reserved a few space in block_t flags for input core. ( Laurent Aimar )

git version control git at videolan.org
Thu Sep 18 22:17:17 CEST 2008


vlc | branch: 0.9-bugfix | Laurent Aimar <fenrir at videolan.org> | Thu Sep 18 21:23:42 2008 +0200| [e6dc15621987cda82574318c3bf49c3c7a6787d1] | committer: Jean-Baptiste Kempf 

Reserved a few space in block_t flags for input core.

(cherry-picked from aad0acf828fce1f4ff42f44958b3a6e52fb703d9 with necessary adaptaptions)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e6dc15621987cda82574318c3bf49c3c7a6787d1
---

 include/vlc_block.h |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/include/vlc_block.h b/include/vlc_block.h
index a17530e..4cca0ac 100644
--- a/include/vlc_block.h
+++ b/include/vlc_block.h
@@ -79,8 +79,13 @@ typedef struct block_sys_t block_sys_t;
 /** This block is corrupted and/or there is data loss  */
 #define BLOCK_FLAG_CORRUPTED     0x1000
 
-#define BLOCK_FLAG_PRIVATE_MASK  0xffff0000
-#define BLOCK_FLAG_PRIVATE_SHIFT 16
+/* These are for input core private usage only */
+#define BLOCK_FLAG_CORE_PRIVATE_MASK  0x00ff0000
+#define BLOCK_FLAG_CORE_PRIVATE_SHIFT 16
+
+/* These are for module private usage only */
+#define BLOCK_FLAG_PRIVATE_MASK  0xff000000
+#define BLOCK_FLAG_PRIVATE_SHIFT 24
 
 typedef void (*block_free_t) (block_t *);
 




More information about the vlc-devel mailing list