1.1 --- a/gst-gmyth/mythsrc/gstmythtvsrc.h Mon Sep 03 21:14:14 2007 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,118 +0,0 @@
1.4 -/*
1.5 - * GStreamer Copyright (C) <2006> Rosfran Borges
1.6 - * <rosfran.borges@indt.org.br> This library is free software; you can
1.7 - * redistribute it and/or modify it under the terms of the GNU Library
1.8 - * General Public License as published by the Free Software Foundation;
1.9 - * either version 2 of the License, or (at your option) any later version.
1.10 - * This library is distributed in the hope that it will be useful, but
1.11 - * WITHOUT ANY WARRANTY; without even the implied warranty of
1.12 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
1.13 - * General Public License for more details. You should have received a copy
1.14 - * of the GNU Library General Public License along with this library; if
1.15 - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite
1.16 - * 330, Boston, MA 02111-1307, USA.
1.17 - */
1.18 -
1.19 -#ifndef __GST_MYTHTV_SRC_H__
1.20 -#define __GST_MYTHTV_SRC_H__
1.21 -
1.22 -#include <gst/gst.h>
1.23 -#include <gst/base/gstbasesrc.h>
1.24 -#include <gst/base/gstpushsrc.h>
1.25 -#include <stdio.h>
1.26 -
1.27 -#include <gmyth/gmyth_socket.h>
1.28 -#include <gmyth/gmyth_file.h>
1.29 -#include <gmyth/gmyth_file_transfer.h>
1.30 -#include <gmyth/gmyth_file_local.h>
1.31 -#include <gmyth/gmyth_livetv.h>
1.32 -#include <gmyth/gmyth_backendinfo.h>
1.33 -
1.34 -G_BEGIN_DECLS
1.35 -#define GST_TYPE_MYTHTV_SRC \
1.36 - (gst_mythtv_src_get_type())
1.37 -#define GST_MYTHTV_SRC(obj) \
1.38 - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MYTHTV_SRC,GstMythtvSrc))
1.39 -#define GST_MYTHTV_SRC_CLASS(klass) \
1.40 - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MYTHTV_SRC,GstMythtvSrcClass))
1.41 -#define GST_IS_MYTHTV_SRC(obj) \
1.42 - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MYTHTV_SRC))
1.43 -#define GST_IS_MYTHTV_SRC_CLASS(klass) \
1.44 - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MYTHTV_SRC))
1.45 -typedef struct _GstMythtvSrc GstMythtvSrc;
1.46 -typedef struct _GstMythtvSrcClass GstMythtvSrcClass;
1.47 -
1.48 -typedef enum {
1.49 - GST_MYTHTV_SRC_FILE_TRANSFER,
1.50 - GST_MYTHTV_SRC_NEXT_PROGRAM_CHAIN,
1.51 - GST_MYTHTV_SRC_INVALID_DATA
1.52 -} GstMythtvState;
1.53 -
1.54 -struct _GstMythtvSrc {
1.55 - GstPushSrc element;
1.56 -
1.57 - /*
1.58 - * MythFileTransfer
1.59 - */
1.60 - GMythFile *file;
1.61 -
1.62 - GMythLiveTV *spawn_livetv;
1.63 -
1.64 - GMythBackendInfo *backend_info;
1.65 -
1.66 - GstMythtvState state;
1.67 -
1.68 - gchar *uri_name;
1.69 - gchar *user_agent;
1.70 -
1.71 - gchar *live_chain_id;
1.72 -
1.73 - gint mythtv_version;
1.74 -
1.75 - gint64 content_size;
1.76 -
1.77 - gint64 prev_content_size;
1.78 -
1.79 - gint64 content_size_last;
1.80 -
1.81 - guint64 bytes_read;
1.82 -
1.83 - gint64 read_offset;
1.84 -
1.85 - gboolean eos;
1.86 -
1.87 - gboolean do_start;
1.88 -
1.89 - gboolean unique_setup;
1.90 -
1.91 - gboolean live_tv;
1.92 -
1.93 - gboolean enable_timing_position;
1.94 -
1.95 - gint live_tv_id;
1.96 -
1.97 - gchar *channel_name;
1.98 -
1.99 - guint mode;
1.100 -
1.101 - /*
1.102 - * MythTV capabilities
1.103 - */
1.104 - GstCaps *mythtv_caps;
1.105 -
1.106 - gboolean update_prog_chain;
1.107 -
1.108 - /*
1.109 - * stablish a maximum iteration value to the IS_RECORDING message
1.110 - */
1.111 - guint wait_to_transfer;
1.112 -};
1.113 -
1.114 -struct _GstMythtvSrcClass {
1.115 - GstPushSrcClass parent_class;
1.116 -};
1.117 -
1.118 -GType gst_mythtv_src_get_type(void);
1.119 -
1.120 -G_END_DECLS
1.121 -#endif /* __GST_MYTHTV_SRC_H__ */