diff -r 3cf3c6019e3b -r 45c799bef1f6 gst-gmyth/mythsrc/gstmythtvsrc.h --- a/gst-gmyth/mythsrc/gstmythtvsrc.h Thu Jun 14 18:21:08 2007 +0100 +++ b/gst-gmyth/mythsrc/gstmythtvsrc.h Fri Aug 03 15:37:32 2007 +0100 @@ -1,20 +1,16 @@ -/* 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 details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. +/* + * 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 details. You should have received a copy + * of the GNU Library General Public License along with this library; if + * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite + * 330, Boston, MA 02111-1307, USA. */ #ifndef __GST_MYTHTV_SRC_H__ @@ -46,88 +42,95 @@ typedef struct _GstMythtvSrc GstMythtvSrc; typedef struct _GstMythtvSrcClass GstMythtvSrcClass; -typedef enum -{ - GST_MYTHTV_SRC_FILE_TRANSFER, - GST_MYTHTV_SRC_NEXT_PROGRAM_CHAIN, - GST_MYTHTV_SRC_INVALID_DATA +typedef enum { + GST_MYTHTV_SRC_FILE_TRANSFER, + GST_MYTHTV_SRC_NEXT_PROGRAM_CHAIN, + GST_MYTHTV_SRC_INVALID_DATA } GstMythtvState; -struct _GstMythtvSrc -{ - GstPushSrc element; +struct _GstMythtvSrc { + GstPushSrc element; - /* MythFileTransfer */ - GMythFile *file; + /* + * MythFileTransfer + */ + GMythFile *file; - GMythLiveTV *spawn_livetv; + GMythLiveTV *spawn_livetv; - GMythBackendInfo *backend_info; + GMythBackendInfo *backend_info; - GstMythtvState state; + GstMythtvState state; - gchar *uri_name; - gchar *user_agent; + gchar *uri_name; + gchar *user_agent; - gchar *live_chain_id; + gchar *live_chain_id; - gint mythtv_version; + gint mythtv_version; - gint64 content_size; + gint64 content_size; - gint64 prev_content_size; + gint64 prev_content_size; - gint64 content_size_last; + gint64 content_size_last; - guint64 bytes_read; + guint64 bytes_read; - gint64 read_offset; + gint64 read_offset; - gint buffer_remain; + gint buffer_remain; - gboolean eos; + gboolean eos; - gboolean do_start; + gboolean do_start; - gboolean unique_setup; + gboolean unique_setup; - gboolean live_tv; + gboolean live_tv; - gboolean enable_timing_position; + gboolean enable_timing_position; - gint live_tv_id; + gint live_tv_id; - gchar *channel_name; + gchar *channel_name; - guint mode; + guint mode; - /* MythTV capabilities */ - GstCaps *mythtv_caps; + /* + * MythTV capabilities + */ + GstCaps *mythtv_caps; - GByteArray *bytes_queue; + GByteArray *bytes_queue; #ifndef GST_DISABLE_GST_DEBUG - /* enable Myth TV debug messages */ - gboolean mythtv_msgs_dbg; + /* + * enable Myth TV debug messages + */ + gboolean mythtv_msgs_dbg; #endif - gboolean update_prog_chain; + gboolean update_prog_chain; - /* stablish a maximum iteration value to the IS_RECORDING message */ - guint wait_to_transfer; + /* + * stablish a maximum iteration value to the IS_RECORDING message + */ + guint wait_to_transfer; - /* max try number to get freerecorder */ - gint max_try; - gint try_number; + /* + * max try number to get freerecorder + */ + gint max_try; + gint try_number; }; -struct _GstMythtvSrcClass -{ - GstPushSrcClass parent_class; +struct _GstMythtvSrcClass { + GstPushSrcClass parent_class; }; -GType gst_mythtv_src_get_type(void); +GType gst_mythtv_src_get_type(void); G_END_DECLS -#endif /* __GST_MYTHTV_SRC_H__ */ +#endif /* __GST_MYTHTV_SRC_H__ */