1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gst-plugins-mythtv/src/myth_livetv.h Wed Oct 18 23:45:17 2006 +0100
1.3 @@ -0,0 +1,59 @@
1.4 +#ifndef MYTH_LIVETV_H_
1.5 +#define MYTH_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 "myth_file_transfer.h"
1.14 +
1.15 +#define G_BEGIN_DECLS
1.16 +
1.17 +#define MYTH_LIVETV_TYPE (myth_livetv_get_type ())
1.18 +#define MYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MYTH_LIVETV_TYPE, MythLiveTV))
1.19 +#define MYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MYTH_LIVETV_TYPE, MythLiveTVClass))
1.20 +#define IS_MYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MYTH_LIVETV_TYPE))
1.21 +#define IS_MYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MYTH_LIVETV_TYPE))
1.22 +#define MYTH_LIVETV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MYTH_LIVETV_TYPE, MythLiveTVClass))
1.23 +
1.24 +typedef struct _MythLiveTV MythLiveTV;
1.25 +typedef struct _MythLiveTVClass MythLiveTVClass;
1.26 +
1.27 +struct _MythLiveTVClass
1.28 +{
1.29 + GObjectClass parent_class;
1.30 +
1.31 + /* callbacks */
1.32 +};
1.33 +
1.34 +struct _MythLiveTV
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 myth_livetv_get_type (void);
1.52 +
1.53 +MythLiveTV* myth_livetv_new ();
1.54 +
1.55 +void myth_livetv_start_playing (MythLiveTV *livetv);
1.56 +void myth_livetv_stop_playing (MythLiveTV *livetv);
1.57 +
1.58 +gboolean myth_livetv_setup (MythLiveTV *livetv);
1.59 +
1.60 +#define G_END_DECLS
1.61 +
1.62 +#endif /*MYTH_LIVETV_H_*/