1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gst-plugins-mythtv/src/gmyth_livetv.h Mon Oct 23 15:42:46 2006 +0100
1.3 @@ -0,0 +1,59 @@
1.4 +#ifndef GMYTH_LIVETV_H_
1.5 +#define GMYTH_LIVETV_H_
1.6 +
1.7 +#include <glib-object.h>
1.8 +
1.9 +#include <gmyth/gmyth_remote_encoder.h>
1.10 +#include <gmyth/gmyth_tvchain.h>
1.11 +#include <gmyth/gmyth_common.h>
1.12 +
1.13 +#include "gmyth_file_transfer.h"
1.14 +
1.15 +#define G_BEGIN_DECLS
1.16 +
1.17 +#define GMYTH_LIVETV_TYPE (gmyth_livetv_get_type ())
1.18 +#define GMYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE, GMythLiveTV))
1.19 +#define GMYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE, GMythLiveTVClass))
1.20 +#define IS_GMYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE))
1.21 +#define IS_GMYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE))
1.22 +#define GMYTH_LIVETV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_LIVETV_TYPE, GMythLiveTVClass))
1.23 +
1.24 +typedef struct _GMythLiveTV GMythLiveTV;
1.25 +typedef struct _GMythLiveTVClass GMythLiveTVClass;
1.26 +
1.27 +struct _GMythLiveTVClass
1.28 +{
1.29 + GObjectClass parent_class;
1.30 +
1.31 + /* callbacks */
1.32 +};
1.33 +
1.34 +struct _GMythLiveTV
1.35 +{
1.36 + GObject parent;
1.37 +
1.38 + // Backend connection related variables
1.39 + GString *backend_hostname;
1.40 + gint backend_port;
1.41 + GString *local_hostname;
1.42 +
1.43 + GMythRemoteEncoder *remote_encoder;
1.44 + GMythTVChain *tvchain;
1.45 + GMythProgramInfo *proginfo;
1.46 +
1.47 + gboolean is_livetv;
1.48 +
1.49 +};
1.50 +
1.51 +GType gmyth_livetv_get_type (void);
1.52 +
1.53 +GMythLiveTV* gmyth_livetv_new ();
1.54 +
1.55 +void gmyth_livetv_start_playing (GMythLiveTV *livetv);
1.56 +void gmyth_livetv_stop_playing (GMythLiveTV *livetv);
1.57 +
1.58 +gboolean gmyth_livetv_setup (GMythLiveTV *livetv);
1.59 +
1.60 +#define G_END_DECLS
1.61 +
1.62 +#endif /*GMYTH_LIVETV_H_*/