[farsight2/master] Add unchecked _CAST macros for the RTP plugin
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:03 PST 2008
---
gst/fsrtpconference/fs-rtp-participant.h | 1 +
gst/fsrtpconference/fs-rtp-session.h | 1 +
gst/fsrtpconference/fs-rtp-stream.h | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-participant.h b/gst/fsrtpconference/fs-rtp-participant.h
index 9939299..1a86d31 100644
--- a/gst/fsrtpconference/fs-rtp-participant.h
+++ b/gst/fsrtpconference/fs-rtp-participant.h
@@ -44,6 +44,7 @@ G_BEGIN_DECLS
#define FS_RTP_PARTICIPANT_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), FS_TYPE_RTP_PARTICIPANT, \
FsRtpParticipantClass))
+#define FS_RTP_PARTICIPANT_CAST(obj) ((FsRtpParticipant *) (obj))
typedef struct _FsRtpParticipant FsRtpParticipant;
typedef struct _FsRtpParticipantClass FsRtpParticipantClass;
diff --git a/gst/fsrtpconference/fs-rtp-session.h b/gst/fsrtpconference/fs-rtp-session.h
index 59cd6b4..b23d24a 100644
--- a/gst/fsrtpconference/fs-rtp-session.h
+++ b/gst/fsrtpconference/fs-rtp-session.h
@@ -44,6 +44,7 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_CLASS_TYPE((klass), FS_TYPE_RTP_SESSION))
#define FS_RTP_SESSION_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), FS_TYPE_RTP_SESSION, FsRtpSessionClass))
+#define FS_RTP_SESSION_CAST(obj) ((FsRtpSession *) (obj))
typedef struct _FsRtpSession FsRtpSession;
typedef struct _FsRtpSessionClass FsRtpSessionClass;
diff --git a/gst/fsrtpconference/fs-rtp-stream.h b/gst/fsrtpconference/fs-rtp-stream.h
index 4ebed49..097d783 100644
--- a/gst/fsrtpconference/fs-rtp-stream.h
+++ b/gst/fsrtpconference/fs-rtp-stream.h
@@ -46,6 +46,7 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_CLASS_TYPE((klass), FS_TYPE_RTP_STREAM))
#define FS_RTP_STREAM_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), FS_TYPE_RTP_STREAM, FsRtpStreamClass))
+#define FS_RTP_STREAM_CAST(obj) ((FsRtpStream*) (obj))
typedef struct _FsRtpStream FsRtpStream;
typedef struct _FsRtpStreamClass FsRtpStreamClass;
--
1.5.6.5
More information about the farsight-commits
mailing list