[farsight2/master] Add unchecked cast macros
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:18:57 PST 2008
---
gst-libs/gst/farsight/fs-participant.h | 1 +
gst-libs/gst/farsight/fs-session.h | 1 +
gst-libs/gst/farsight/fs-stream-transmitter.h | 1 +
gst-libs/gst/farsight/fs-stream.h | 1 +
gst-libs/gst/farsight/fs-transmitter.h | 1 +
5 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/gst-libs/gst/farsight/fs-participant.h b/gst-libs/gst/farsight/fs-participant.h
index e18fb79..b4eb84f 100644
--- a/gst-libs/gst/farsight/fs-participant.h
+++ b/gst-libs/gst/farsight/fs-participant.h
@@ -43,6 +43,7 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_CLASS_TYPE((klass), FS_TYPE_PARTICIPANT))
#define FS_PARTICIPANT_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), FS_TYPE_PARTICIPANT, FsParticipantClass))
+#define FS_PARTICIPANT_CAST(obj) ((FsParticipant *) (obj))
typedef struct _FsParticipant FsParticipant;
typedef struct _FsParticipantClass FsParticipantClass;
diff --git a/gst-libs/gst/farsight/fs-session.h b/gst-libs/gst/farsight/fs-session.h
index 83b8120..52a43dd 100644
--- a/gst-libs/gst/farsight/fs-session.h
+++ b/gst-libs/gst/farsight/fs-session.h
@@ -47,6 +47,7 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_CLASS_TYPE((klass), FS_TYPE_SESSION))
#define FS_SESSION_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), FS_TYPE_SESSION, FsSessionClass))
+#define FS_SESSION_CAST(obj) ((FsSession *) (obj))
typedef struct _FsSession FsSession;
typedef struct _FsSessionClass FsSessionClass;
diff --git a/gst-libs/gst/farsight/fs-stream-transmitter.h b/gst-libs/gst/farsight/fs-stream-transmitter.h
index d2d572a..a860770 100644
--- a/gst-libs/gst/farsight/fs-stream-transmitter.h
+++ b/gst-libs/gst/farsight/fs-stream-transmitter.h
@@ -48,6 +48,7 @@ G_BEGIN_DECLS
#define FS_STREAM_TRANSMITTER_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), FS_TYPE_STREAM_TRANSMITTER, \
FsStreamTransmitterClass))
+#define FS_STREAM_TRANSMITTER_CAST(obj) ((FsStreamTransmitter *) (obj))
typedef struct _FsStreamTransmitter FsStreamTransmitter;
typedef struct _FsStreamTransmitterClass FsStreamTransmitterClass;
diff --git a/gst-libs/gst/farsight/fs-stream.h b/gst-libs/gst/farsight/fs-stream.h
index 96af42d..7acfca5 100644
--- a/gst-libs/gst/farsight/fs-stream.h
+++ b/gst-libs/gst/farsight/fs-stream.h
@@ -66,6 +66,7 @@ typedef enum
(G_TYPE_CHECK_CLASS_TYPE((klass), FS_TYPE_STREAM))
#define FS_STREAM_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), FS_TYPE_STREAM, FsStreamClass))
+#define FS_STREAM_CAST(obj) ((FsStream *) (obj))
typedef struct _FsStream FsStream;
typedef struct _FsStreamClass FsStreamClass;
diff --git a/gst-libs/gst/farsight/fs-transmitter.h b/gst-libs/gst/farsight/fs-transmitter.h
index 4c524a3..a628bb1 100644
--- a/gst-libs/gst/farsight/fs-transmitter.h
+++ b/gst-libs/gst/farsight/fs-transmitter.h
@@ -46,6 +46,7 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_CLASS_TYPE((klass), FS_TYPE_TRANSMITTER))
#define FS_TRANSMITTER_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), FS_TYPE_TRANSMITTER, FsTransmitterClass))
+#define FS_TRANSMITTER_CAST(obj) ((FsTransmitter *) (obj))
typedef struct _FsTransmitter FsTransmitter;
typedef struct _FsTransmitterClass FsTransmitterClass;
--
1.5.6.5
More information about the farsight-commits
mailing list