gstreamer/tools/gstcddabasesrc.c
David Schleef f6f9563dc8 tools: Add element-maker
Add a script that creates elements based on any of the GStreamer
base classes.  It isn't very user friendly at the moment, one
needs to edit the script to make it work properly.  Each base class
has a template file describing what to put into the constructed
element.  Eventually, these templates should be moved to reside
with the base class source and installed to a well-known directory,
where an installed script could find them.

The template files use the .c ending so editors know they are C
source, but gst-indent doesn't handle them correctly.  So they
need to be committed with -n.  Ugh.  I'll try to figure out a fix
for that soon.
2010-04-14 16:43:23 -07:00

51 lines
1 KiB
C

% ClassName
GstCddaBaseSrc
% TYPE_CLASS_NAME
GST_TYPE_CDDA_BASE_SRC
% pkg-config
gstreamer-cdda-0.10
% includes
#include <gst/cdda/gstcddabasesrc.h>
% prototypes
static gboolean gst_replace_open (GstCddaBaseSrc * src, const gchar * device);
static void gst_replace_close (GstCddaBaseSrc * src);
static GstBuffer *gst_replace_read_sector (GstCddaBaseSrc * src, gint sector);
static gchar *gst_replace_get_default_device (GstCddaBaseSrc * src);
static gchar **gst_replace_probe_devices (GstCddaBaseSrc * src);
% declare-class
GstcddaBaseSrc *cddabase_src_class = GST_CDDABASE_SRC (klass);
% set-methods
cddabase_src_class-> = GST_DEBUG_FUNCPTR (gst_replace_);
% methods
static gboolean
gst_replace_open (GstCddaBaseSrc * src, const gchar * device)
{
}
static void
gst_replace_close (GstCddaBaseSrc * src)
{
}
static GstBuffer *
gst_replace_read_sector (GstCddaBaseSrc * src, gint sector)
{
}
static gchar *
gst_replace_get_default_device (GstCddaBaseSrc * src)
{
}
static gchar **
gst_replace_probe_devices (GstCddaBaseSrc * src)
{
}
% end