From 3d3cec6e7ed0dc09f68dbb1ca8bc010bb155b4a2 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 22 Jun 2003 03:58:04 +0000 Subject: new "Electric Fence" element, that converts each buffer into an allocated region surrounded by two unmapped pages. Original commit message from CVS: new "Electric Fence" element, that converts each buffer into an allocated region surrounded by two unmapped pages. --- gst/debug/efence.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 gst/debug/efence.h (limited to 'gst/debug/efence.h') diff --git a/gst/debug/efence.h b/gst/debug/efence.h new file mode 100644 index 00000000..bf0790dd --- /dev/null +++ b/gst/debug/efence.h @@ -0,0 +1,49 @@ +/* + * efence.h + */ + +#ifndef __GST_EFENCE_H__ +#define __GST_EFENCE_H__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* #define's don't like whitespacey bits */ +#define GST_TYPE_EFENCE \ + (gst_gst_efence_get_type()) +#define GST_EFENCE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_EFENCE,GstEFence)) +#define GST_EFENCE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_EFENCE,GstEFence)) +#define GST_IS_EFENCE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_EFENCE)) +#define GST_IS_EFENCE_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_EFENCE)) + +typedef struct _GstEFence GstEFence; +typedef struct _GstEFenceClass GstEFenceClass; + +struct _GstEFence +{ + GstElement element; + + GstPad *sinkpad, *srcpad; + + gboolean fence_top; +}; + +struct _GstEFenceClass +{ + GstElementClass parent_class; +}; + +GType gst_gst_efence_get_type (void); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GST_EFENCE_H__ */ -- cgit