diff -r 000000000000 -r bd3829c2e9c9 mythtv_plugin/gstmythtvsrc.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mythtv_plugin/gstmythtvsrc.h Wed Sep 20 23:59:48 2006 +0100 @@ -0,0 +1,89 @@ +/* vim: set sw=2: -*- Mode: C; tab-width: 2; indent-tabs-mode: t; c-basic-offset: 2; c-indent-level: 2 -*- */ +/* GStreamer + * Copyright (C) <2006> Rosfran Borges + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more + */ + +#ifndef __GST_MYTHTV_SRC_H__ +#define __GST_MYTHTV_SRC_H__ + +#include +#include +#include + +#include +#include "myth_file_transfer.h" +#include "myth_livetv.h" + +G_BEGIN_DECLS + +#define GST_TYPE_MYTHTV_SRC \ + (gst_mythtv_src_get_type()) +#define GST_MYTHTV_SRC(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MYTHTV_SRC,GstMythtvSrc)) +#define GST_MYTHTV_SRC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MYTHTV_SRC,GstMythtvSrcClass)) +#define GST_IS_MYTHTV_SRC(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MYTHTV_SRC)) +#define GST_IS_MYTHTV_SRC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MYTHTV_SRC)) + +typedef struct _GstMythtvSrc GstMythtvSrc; +typedef struct _GstMythtvSrcClass GstMythtvSrcClass; + +struct _GstMythtvSrc { + GstBaseSrc element; + + /* MythFileTransfer */ + MythFileTransfer *file_transfer; + + MythLiveTV *spawn_livetv; + + gchar *uri_name; + gchar *user_agent; + + gchar *live_chain_id; + + gint mythtv_version; + + guint64 content_size; + + guint64 bytes_read; + + guint64 read_offset; + + gboolean eos; + + gboolean do_start; + + gboolean unique_setup; + + gboolean live_tv; + + gint live_tv_id; + + /* MythTV capabilities */ + GstCaps *mythtv_caps; + + /* enable Myth TV debug messages */ + gboolean mythtv_msgs_dbg; +}; + +struct _GstMythtvSrcClass { + GstBaseSrcClass parent_class; +}; + +GType gst_mythtv_src_get_type (void); + +G_END_DECLS + +#endif /* __GST_MYTHTV_SRC_H__ */