gst-gmyth/mythsrc/gstmythtvsrc.h
branchtrunk
changeset 798 19626dc62c16
parent 751 3cf3c6019e3b
child 812 cf7e02ee3db4
     1.1 --- a/gst-gmyth/mythsrc/gstmythtvsrc.h	Thu Jun 14 18:21:08 2007 +0100
     1.2 +++ b/gst-gmyth/mythsrc/gstmythtvsrc.h	Fri Aug 10 14:45:36 2007 +0100
     1.3 @@ -1,20 +1,16 @@
     1.4 -/* GStreamer
     1.5 - * Copyright (C) <2006> Rosfran Borges <rosfran.borges@indt.org.br>
     1.6 - *
     1.7 - * This library is free software; you can redistribute it and/or
     1.8 - * modify it under the terms of the GNU Library General Public
     1.9 - * License as published by the Free Software Foundation; either
    1.10 - * version 2 of the License, or (at your option) any later version.
    1.11 - *
    1.12 - * This library is distributed in the hope that it will be useful,
    1.13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.15 - * Library General Public License for more details.
    1.16 - *
    1.17 - * You should have received a copy of the GNU Library General Public
    1.18 - * License along with this library; if not, write to the
    1.19 - * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    1.20 - * Boston, MA 02111-1307, USA.
    1.21 +/*
    1.22 + * GStreamer Copyright (C) <2006> Rosfran Borges
    1.23 + * <rosfran.borges@indt.org.br> This library is free software; you can
    1.24 + * redistribute it and/or modify it under the terms of the GNU Library
    1.25 + * General Public License as published by the Free Software Foundation;
    1.26 + * either version 2 of the License, or (at your option) any later version.
    1.27 + * This library is distributed in the hope that it will be useful, but
    1.28 + * WITHOUT ANY WARRANTY; without even the implied warranty of
    1.29 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library 
    1.30 + * General Public License for more details. You should have received a copy 
    1.31 + * of the GNU Library General Public License along with this library; if
    1.32 + * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 
    1.33 + * 330, Boston, MA 02111-1307, USA. 
    1.34   */
    1.35  
    1.36  #ifndef __GST_MYTHTV_SRC_H__
    1.37 @@ -46,88 +42,95 @@
    1.38  typedef struct _GstMythtvSrc GstMythtvSrc;
    1.39  typedef struct _GstMythtvSrcClass GstMythtvSrcClass;
    1.40  
    1.41 -typedef enum
    1.42 -{
    1.43 -  GST_MYTHTV_SRC_FILE_TRANSFER,
    1.44 -  GST_MYTHTV_SRC_NEXT_PROGRAM_CHAIN,
    1.45 -  GST_MYTHTV_SRC_INVALID_DATA
    1.46 +typedef enum {
    1.47 +    GST_MYTHTV_SRC_FILE_TRANSFER,
    1.48 +    GST_MYTHTV_SRC_NEXT_PROGRAM_CHAIN,
    1.49 +    GST_MYTHTV_SRC_INVALID_DATA
    1.50  } GstMythtvState;
    1.51  
    1.52 -struct _GstMythtvSrc
    1.53 -{
    1.54 -  GstPushSrc element;
    1.55 +struct _GstMythtvSrc {
    1.56 +    GstPushSrc      element;
    1.57  
    1.58 - /* MythFileTransfer */
    1.59 -  GMythFile *file;
    1.60 +    /*
    1.61 +     * MythFileTransfer 
    1.62 +     */
    1.63 +    GMythFile      *file;
    1.64  
    1.65 -  GMythLiveTV *spawn_livetv;
    1.66 +    GMythLiveTV    *spawn_livetv;
    1.67  
    1.68 -  GMythBackendInfo *backend_info;
    1.69 +    GMythBackendInfo *backend_info;
    1.70  
    1.71 -  GstMythtvState state;
    1.72 +    GstMythtvState  state;
    1.73  
    1.74 -  gchar *uri_name;
    1.75 -  gchar *user_agent;
    1.76 +    gchar          *uri_name;
    1.77 +    gchar          *user_agent;
    1.78  
    1.79 -  gchar *live_chain_id;
    1.80 +    gchar          *live_chain_id;
    1.81  
    1.82 -  gint mythtv_version;
    1.83 +    gint            mythtv_version;
    1.84  
    1.85 -  gint64 content_size;
    1.86 +    gint64          content_size;
    1.87  
    1.88 -  gint64 prev_content_size;
    1.89 +    gint64          prev_content_size;
    1.90  
    1.91 -  gint64 content_size_last;
    1.92 +    gint64          content_size_last;
    1.93  
    1.94 -  guint64 bytes_read;
    1.95 +    guint64         bytes_read;
    1.96  
    1.97 -  gint64 read_offset;
    1.98 +    gint64          read_offset;
    1.99  
   1.100 -  gint buffer_remain;
   1.101 +    gint            buffer_remain;
   1.102  
   1.103 -  gboolean eos;
   1.104 +    gboolean        eos;
   1.105  
   1.106 -  gboolean do_start;
   1.107 +    gboolean        do_start;
   1.108  
   1.109 -  gboolean unique_setup;
   1.110 +    gboolean        unique_setup;
   1.111  
   1.112 -  gboolean live_tv;
   1.113 +    gboolean        live_tv;
   1.114  
   1.115 -  gboolean enable_timing_position;
   1.116 +    gboolean        enable_timing_position;
   1.117  
   1.118 -  gint live_tv_id;
   1.119 +    gint            live_tv_id;
   1.120  
   1.121 -  gchar *channel_name;
   1.122 +    gchar          *channel_name;
   1.123  
   1.124 -  guint mode;
   1.125 +    guint           mode;
   1.126  
   1.127 - /* MythTV capabilities */
   1.128 -  GstCaps *mythtv_caps;
   1.129 +    /*
   1.130 +     * MythTV capabilities 
   1.131 +     */
   1.132 +    GstCaps        *mythtv_caps;
   1.133  
   1.134 -  GByteArray *bytes_queue;
   1.135 +    GByteArray     *bytes_queue;
   1.136  
   1.137  #ifndef GST_DISABLE_GST_DEBUG
   1.138 - /* enable Myth TV debug messages */
   1.139 -  gboolean mythtv_msgs_dbg;
   1.140 +    /*
   1.141 +     * enable Myth TV debug messages 
   1.142 +     */
   1.143 +    gboolean        mythtv_msgs_dbg;
   1.144  #endif
   1.145  
   1.146 -  gboolean update_prog_chain;
   1.147 +    gboolean        update_prog_chain;
   1.148  
   1.149 - /* stablish a maximum iteration value to the IS_RECORDING message */
   1.150 -  guint wait_to_transfer;
   1.151 +    /*
   1.152 +     * stablish a maximum iteration value to the IS_RECORDING message 
   1.153 +     */
   1.154 +    guint           wait_to_transfer;
   1.155  
   1.156 - /* max try number to get freerecorder */
   1.157 -  gint max_try;
   1.158 -  gint try_number;
   1.159 +    /*
   1.160 +     * max try number to get freerecorder 
   1.161 +     */
   1.162 +    gint            max_try;
   1.163 +    gint            try_number;
   1.164  
   1.165  };
   1.166  
   1.167 -struct _GstMythtvSrcClass
   1.168 -{
   1.169 -  GstPushSrcClass parent_class;
   1.170 +struct _GstMythtvSrcClass {
   1.171 +    GstPushSrcClass parent_class;
   1.172  };
   1.173  
   1.174 -GType gst_mythtv_src_get_type(void);
   1.175 +GType           gst_mythtv_src_get_type(void);
   1.176  
   1.177  G_END_DECLS
   1.178 -#endif /* __GST_MYTHTV_SRC_H__ */
   1.179 +#endif                          /* __GST_MYTHTV_SRC_H__ */