1.1 --- a/maemo-ui/src/mmyth_tvplayer.h Fri Jan 05 19:27:27 2007 +0000
1.2 +++ b/maemo-ui/src/mmyth_tvplayer.h Wed Jul 04 19:37:34 2007 +0100
1.3 @@ -9,22 +9,22 @@
1.4 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
1.5 * @author Hallyson Luiz de Morais Melo <hallyson.melo@indt.org.br>
1.6 *
1.7 - *//*
1.8 - *
1.9 - * This program is free software; you can redistribute it and/or modify
1.10 - * it under the terms of the GNU Lesser General Public License as published by
1.11 - * the Free Software Foundation; either version 2 of the License, or
1.12 - * (at your option) any later version.
1.13 - *
1.14 - * This program is distributed in the hope that it will be useful,
1.15 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.16 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.17 - * GNU General Public License for more details.
1.18 - *
1.19 - * You should have received a copy of the GNU Lesser General Public License
1.20 - * along with this program; if not, write to the Free Software
1.21 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1.22 - */
1.23 + *//*
1.24 + *
1.25 + * This program is free software; you can redistribute it and/or modify
1.26 + * it under the terms of the GNU Lesser General Public License as published by
1.27 + * the Free Software Foundation; either version 2 of the License, or
1.28 + * (at your option) any later version.
1.29 + *
1.30 + * This program is distributed in the hope that it will be useful,
1.31 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.32 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.33 + * GNU General Public License for more details.
1.34 + *
1.35 + * You should have received a copy of the GNU Lesser General Public License
1.36 + * along with this program; if not, write to the Free Software
1.37 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1.38 + */
1.39
1.40 #ifndef MMYTH_TVPLAYER_H_
1.41 #define MMYTH_TVPLAYER_H_
1.42 @@ -32,7 +32,9 @@
1.43 #include <glib-object.h>
1.44 #include <gtk/gtk.h>
1.45
1.46 -/* GStreamer includes */
1.47 +/*
1.48 + * GStreamer includes
1.49 + */
1.50 #include <gst/gst.h>
1.51 #include <gst/interfaces/xoverlay.h>
1.52
1.53 @@ -42,78 +44,79 @@
1.54 #include <gmyth/gmyth_livetv.h>
1.55
1.56 G_BEGIN_DECLS
1.57 -
1.58 #define MMYTH_TVPLAYER_TYPE (mmyth_tvplayer_get_type ())
1.59 #define MMYTH_TVPLAYER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MMYTH_TVPLAYER_TYPE, MMythTVPlayer))
1.60 #define MMYTH_TVPLAYER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MMYTH_TVPLAYER_TYPE, MMythTVPlayerClass))
1.61 #define IS_MMYTH_TVPLAYER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MMYTH_TVPLAYER_TYPE))
1.62 #define IS_MMYTH_TVPLAYER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MMYTH_TVPLAYER_TYPE))
1.63 #define MMYTH_TVPLAYER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MMYTH_TVPLAYER_TYPE, MMythTVPlayerClass))
1.64 +typedef struct _MMythTVPlayer MMythTVPlayer;
1.65 +typedef struct _MMythTVPlayerClass MMythTVPlayerClass;
1.66
1.67 +struct _MMythTVPlayerClass {
1.68 + GObjectClass parent_class;
1.69
1.70 -typedef struct _MMythTVPlayer MMythTVPlayer;
1.71 -typedef struct _MMythTVPlayerClass MMythTVPlayerClass;
1.72 -
1.73 -struct _MMythTVPlayerClass
1.74 -{
1.75 - GObjectClass parent_class;
1.76 -
1.77 - /* callbacks */
1.78 - /* no one for now */
1.79 + /*
1.80 + * callbacks
1.81 + */
1.82 + /*
1.83 + * no one for now
1.84 + */
1.85 };
1.86
1.87 -struct _MMythTVPlayer
1.88 -{
1.89 - GObject parent;
1.90 -
1.91 - GstElement *gst_pipeline;
1.92 - GstElement *gst_source;
1.93 - GstElement *gst_videodec;
1.94 - GstElement *gst_videosink;
1.95 - GstElement *gst_videocolortrs;
1.96 - GstElement *videoqueue1;
1.97 - GstElement *videoqueue2;
1.98 - GstElement *audioqueue1;
1.99 - GstElement *audioqueue2;
1.100 -
1.101 - gulong expose_handler;
1.102 -// GMainLoop *loop;
1.103 -
1.104 - GtkWidget *videow;
1.105 +struct _MMythTVPlayer {
1.106 + GObject parent;
1.107
1.108 - /* Backend connection related variables */
1.109 - GString *backend_hostname;
1.110 - gint backend_port;
1.111 - GString *local_hostname;
1.112 + GstElement *gst_pipeline;
1.113 + GstElement *gst_source;
1.114 + GstElement *gst_videodec;
1.115 + GstElement *gst_videosink;
1.116 + GstElement *gst_videocolortrs;
1.117 + GstElement *videoqueue1;
1.118 + GstElement *videoqueue2;
1.119 + GstElement *audioqueue1;
1.120 + GstElement *audioqueue2;
1.121
1.122 - GMythRecorder *recorder;
1.123 - GMythTVChain *tvchain;
1.124 - GMythProgramInfo *proginfo;
1.125 - GMythLiveTV *livetv;
1.126 + gulong expose_handler;
1.127 + // GMainLoop *loop;
1.128
1.129 - GMythBackendInfo *backend_info;
1.130 -
1.131 - gboolean is_livetv;
1.132 + GtkWidget *videow;
1.133 +
1.134 + /*
1.135 + * Backend connection related variables
1.136 + */
1.137 + GString *backend_hostname;
1.138 + gint backend_port;
1.139 + GString *local_hostname;
1.140 +
1.141 + GMythRecorder *recorder;
1.142 + GMythTVChain *tvchain;
1.143 + GMythProgramInfo *proginfo;
1.144 + GMythLiveTV *livetv;
1.145 +
1.146 + GMythBackendInfo *backend_info;
1.147 +
1.148 + gboolean is_livetv;
1.149 };
1.150
1.151
1.152 -GType mmyth_tvplayer_get_type (void);
1.153 +GType mmyth_tvplayer_get_type(void);
1.154
1.155 -MMythTVPlayer* mmyth_tvplayer_new ();
1.156 -gboolean mmyth_tvplayer_initialize (MMythTVPlayer *tvplayer, GMythBackendInfo *backend_info);
1.157 +MMythTVPlayer *mmyth_tvplayer_new();
1.158 +gboolean mmyth_tvplayer_initialize(MMythTVPlayer * tvplayer,
1.159 + GMythBackendInfo * backend_info);
1.160
1.161 -void mmyth_tvplayer_start_playing (MMythTVPlayer *tvplayer);
1.162 -void mmyth_tvplayer_stop_playing (MMythTVPlayer *tvplayer);
1.163 +void mmyth_tvplayer_start_playing(MMythTVPlayer * tvplayer);
1.164 +void mmyth_tvplayer_stop_playing(MMythTVPlayer * tvplayer);
1.165
1.166 -gboolean mmyth_tvplayer_set_widget (MMythTVPlayer *tvplayer,
1.167 - GtkWidget *videow);
1.168 +gboolean mmyth_tvplayer_set_widget(MMythTVPlayer * tvplayer,
1.169 + GtkWidget * videow);
1.170
1.171 -gboolean mmyth_tvplayer_is_playing (MMythTVPlayer *tvplayer);
1.172 +gboolean mmyth_tvplayer_is_playing(MMythTVPlayer * tvplayer);
1.173
1.174 -gboolean mmyth_tvplayer_record_setup (MMythTVPlayer *tvplayer,
1.175 - const gchar *filename);
1.176 -gboolean mmyth_tvplayer_livetv_setup (MMythTVPlayer *tvplayer);
1.177 +gboolean mmyth_tvplayer_record_setup(MMythTVPlayer * tvplayer,
1.178 + const gchar * filename);
1.179 +gboolean mmyth_tvplayer_livetv_setup(MMythTVPlayer * tvplayer);
1.180
1.181 G_END_DECLS
1.182 -
1.183 -#endif /*MMYTH_TVPLAYER_H_*/
1.184 +#endif /* MMYTH_TVPLAYER_H_ */