gst-plugins-mythtv/src/gstmythtvsrc.h
branchtrunk
changeset 29 081274382473
parent 3 265cdb1c59e3
child 40 ba5dc9bff3a1
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.h	Wed Oct 11 22:46:27 2006 +0100
     1.3 @@ -0,0 +1,89 @@
     1.4 +/* vim: set sw=2: -*- Mode: C; tab-width: 2; indent-tabs-mode: t; c-basic-offset: 2; c-indent-level: 2 -*- */
     1.5 +/* GStreamer
     1.6 + * Copyright (C) <2006> Rosfran Borges <rosfran.borges@indt.org.br>
     1.7 + *
     1.8 + * This library is free software; you can redistribute it and/or
     1.9 + * modify it under the terms of the GNU Library General Public
    1.10 + * License as published by the Free Software Foundation; either
    1.11 + * version 2 of the License, or (at your option) any later version.
    1.12 + *
    1.13 + * This library is distributed in the hope that it will be useful,
    1.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 + * Library General Public License for more 
    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/gstpushsrc.h>
    1.24 +#include <stdio.h>
    1.25 +
    1.26 +#include <gmyth/gmyth_socket.h>
    1.27 +#include "myth_file_transfer.h"
    1.28 +#include "myth_livetv.h"
    1.29 +
    1.30 +G_BEGIN_DECLS
    1.31 +
    1.32 +#define GST_TYPE_MYTHTV_SRC \
    1.33 +  (gst_mythtv_src_get_type())
    1.34 +#define GST_MYTHTV_SRC(obj) \
    1.35 +  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MYTHTV_SRC,GstMythtvSrc))
    1.36 +#define GST_MYTHTV_SRC_CLASS(klass) \
    1.37 +  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MYTHTV_SRC,GstMythtvSrcClass))
    1.38 +#define GST_IS_MYTHTV_SRC(obj) \
    1.39 +  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MYTHTV_SRC))
    1.40 +#define GST_IS_MYTHTV_SRC_CLASS(klass) \
    1.41 +  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MYTHTV_SRC))
    1.42 +
    1.43 +typedef struct _GstMythtvSrc GstMythtvSrc;
    1.44 +typedef struct _GstMythtvSrcClass GstMythtvSrcClass;
    1.45 +
    1.46 +struct _GstMythtvSrc {
    1.47 +  GstBaseSrc element;
    1.48 +
    1.49 +  /* MythFileTransfer */
    1.50 +  MythFileTransfer *file_transfer;
    1.51 +
    1.52 +  MythLiveTV *spawn_livetv;
    1.53 +
    1.54 +  gchar *uri_name;
    1.55 +  gchar *user_agent;
    1.56 +
    1.57 +  gchar *live_chain_id;
    1.58 +  
    1.59 +  gint mythtv_version;
    1.60 +
    1.61 +  guint64 content_size;
    1.62 +
    1.63 +  guint64 bytes_read;
    1.64 +
    1.65 +  guint64 read_offset;
    1.66 +
    1.67 +  gboolean eos;
    1.68 +  
    1.69 +  gboolean do_start;
    1.70 +
    1.71 +  gboolean unique_setup;
    1.72 +
    1.73 +  gboolean live_tv;
    1.74 +
    1.75 +  gint live_tv_id;
    1.76 +
    1.77 +  /* MythTV capabilities */
    1.78 +  GstCaps *mythtv_caps;
    1.79 +
    1.80 +  /* enable Myth TV debug messages */
    1.81 +  gboolean mythtv_msgs_dbg;
    1.82 +};
    1.83 +
    1.84 +struct _GstMythtvSrcClass {
    1.85 +  GstBaseSrcClass parent_class;
    1.86 +};
    1.87 +
    1.88 +GType gst_mythtv_src_get_type (void);
    1.89 +
    1.90 +G_END_DECLS
    1.91 +
    1.92 +#endif /* __GST_MYTHTV_SRC_H__ */