diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2007-03-04 20:35:26 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2007-03-04 20:35:26 +0000 |
commit | 3844a3af2066326a1d956d42bd55a974ae2f3d59 (patch) | |
tree | 416950931727f46faf6c914b50bc2470e8a04c1b /ext/nas/nassink.h | |
parent | 6c13003331659d53deda02f631a94b31c95f2f31 (diff) | |
download | gst-plugins-bad-3844a3af2066326a1d956d42bd55a974ae2f3d59.tar.gz gst-plugins-bad-3844a3af2066326a1d956d42bd55a974ae2f3d59.tar.bz2 gst-plugins-bad-3844a3af2066326a1d956d42bd55a974ae2f3d59.zip |
ext/nas/: Bunch of nassink clean-ups: make build by adding the right CFLAGS and LIBS to Makefile.am; rename structure...
Original commit message from CVS:
* ext/nas/Makefile.am:
* ext/nas/README:
* ext/nas/nassink.c: (gst_nas_sink_get_type),
(gst_nas_sink_base_init), (gst_nas_sink_class_init),
(gst_nas_sink_init), (gst_nas_sink_finalize),
(gst_nas_sink_getcaps), (gst_nas_sink_prepare),
(gst_nas_sink_unprepare), (gst_nas_sink_delay),
(gst_nas_sink_reset), (gst_nas_sink_write),
(gst_nas_sink_set_property), (gst_nas_sink_get_property),
(gst_nas_sink_open), (gst_nas_sink_close), (NAS_flush),
(NAS_sendData), (NAS_EventHandler), (gst_nas_sink_sink_get_format),
(NAS_createFlow), (plugin_init):
* ext/nas/nassink.h:
Bunch of nassink clean-ups: make build by adding the right CFLAGS
and LIBS to Makefile.am; rename structure, macros and functions
according to canonical naming scheme; move some things around a bit;
use GST_CAT_DEFAULT instead of GST_CAT_* everywhere; remove README
file that didn't really contain any useful information anyway (the
useful bits have been moved into the 'host' property description).
Diffstat (limited to 'ext/nas/nassink.h')
-rw-r--r-- | ext/nas/nassink.h | 54 |
1 files changed, 22 insertions, 32 deletions
diff --git a/ext/nas/nassink.h b/ext/nas/nassink.h index c78f4192..603176bd 100644 --- a/ext/nas/nassink.h +++ b/ext/nas/nassink.h @@ -18,39 +18,33 @@ */ -#ifndef __GST_NASSINK_H__ -#define __GST_NASSINK_H__ +#ifndef __GST_NAS_SINK_H__ +#define __GST_NAS_SINK_H__ #include <gst/gst.h> #include <gst/audio/gstaudiosink.h> -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ +G_BEGIN_DECLS +#define GST_TYPE_NAS_SINK \ + (gst_nas_sink_get_type()) +#define GST_NAS_SINK(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NAS_SINK,GstNasSink)) +#define GST_NAS_SINK_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NAS_SINK,GstNasSinkClass)) +#define GST_IS_NAS_SINK(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NAS_SINK)) +#define GST_IS_NAS_SINK_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NAS_SINK)) -#define GST_TYPE_NASSINK \ - (gst_nassink_get_type()) -#define GST_NASSINK(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NASSINK,GstNassink)) -#define GST_NASSINK_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NASSINK,GstNassinkClass)) -#define GST_IS_NASSINK(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NASSINK)) -#define GST_IS_NASSINK_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NASSINK)) +typedef struct _GstNasSink GstNasSink; +typedef struct _GstNasSinkClass GstNasSinkClass; -typedef enum { - GST_NASSINK_OPEN = (GST_ELEMENT_FLAG_LAST << 0), - GST_NASSINK_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2) -} GstNasSinkFlags; - -typedef struct _GstNassink GstNassink; -typedef struct _GstNassinkClass GstNassinkClass; - -struct _GstNassink { +struct _GstNasSink { GstAudioSink audiosink; + /*< private >*/ + /* instance properties */ gboolean mute; @@ -67,16 +61,12 @@ struct _GstNassink { AuUint32 need_data; }; -struct _GstNassinkClass { +struct _GstNasSinkClass { GstAudioSinkClass parent_class; }; -GType gst_nassink_get_type(void); - - -#ifdef __cplusplus -} -#endif /* __cplusplus */ +GType gst_nas_sink_get_type(void); +G_END_DECLS -#endif /* __GST_NASSINK_H__ */ +#endif /* __GST_NAS_SINK_H__ */ |