[farsight2/master] Define FsDirection to have flag-like properties

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:20:15 PST 2008


---
 gst-libs/gst/farsight/fs-stream.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-stream.h b/gst-libs/gst/farsight/fs-stream.h
index ba13a45..434bf0d 100644
--- a/gst-libs/gst/farsight/fs-stream.h
+++ b/gst-libs/gst/farsight/fs-stream.h
@@ -38,19 +38,19 @@ G_BEGIN_DECLS
 /**
  * FsStreamDirection:
  * @FS_DIRECTION_NONE: No direction specified
- * @FS_DIRECTION_BOTH: Send and receive
  * @FS_DIRECTION_SEND: Send only
  * @FS_DIRECTION_RECV: Receive only
+ * @FS_DIRECTION_BOTH: Send and receive
  *
  * An enum for specifying the direction of a stream
  *
  */
 typedef enum
 {
-  FS_DIRECTION_NONE,
-  FS_DIRECTION_BOTH,
-  FS_DIRECTION_SEND,
-  FS_DIRECTION_RECV,
+  FS_DIRECTION_NONE = 0,
+  FS_DIRECTION_SEND = 1,
+  FS_DIRECTION_RECV = 1>>1,
+  FS_DIRECTION_BOTH = FS_DIRECTION_SEND | FS_DIRECTION_RECV
 } FsStreamDirection;
 
 /* TYPE MACROS */
-- 
1.5.6.5




More information about the farsight-commits mailing list