gst-plugins-mythtv/src/myth_livetv.h
author rosfran
Wed Oct 18 23:45:17 2006 +0100 (2006-10-18)
branchtrunk
changeset 34 c71d37b93734
parent 3 265cdb1c59e3
permissions -rwxr-xr-x
[svn r35] Performance optimization.
leo_sobral@2
     1
#ifndef MYTH_LIVETV_H_
leo_sobral@2
     2
#define MYTH_LIVETV_H_
leo_sobral@2
     3
leo_sobral@2
     4
#include <glib-object.h>
leo_sobral@2
     5
leo_sobral@2
     6
#include <gmyth/gmyth_remote_encoder.h>
leo_sobral@2
     7
#include <gmyth/gmyth_tvchain.h>
leo_sobral@2
     8
#include <gmyth/gmyth_common.h>
leo_sobral@2
     9
leo_sobral@2
    10
#include "myth_file_transfer.h"
leo_sobral@2
    11
leo_sobral@2
    12
#define G_BEGIN_DECLS
leo_sobral@2
    13
leo_sobral@2
    14
#define MYTH_LIVETV_TYPE               (myth_livetv_get_type ())
leo_sobral@2
    15
#define MYTH_LIVETV(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), MYTH_LIVETV_TYPE, MythLiveTV))
leo_sobral@2
    16
#define MYTH_LIVETV_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), MYTH_LIVETV_TYPE, MythLiveTVClass))
leo_sobral@2
    17
#define IS_MYTH_LIVETV(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), MYTH_LIVETV_TYPE))
leo_sobral@2
    18
#define IS_MYTH_LIVETV_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), MYTH_LIVETV_TYPE))
leo_sobral@2
    19
#define MYTH_LIVETV_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), MYTH_LIVETV_TYPE, MythLiveTVClass))
leo_sobral@2
    20
leo_sobral@2
    21
typedef struct _MythLiveTV         MythLiveTV;
leo_sobral@2
    22
typedef struct _MythLiveTVClass    MythLiveTVClass;
leo_sobral@2
    23
leo_sobral@2
    24
struct _MythLiveTVClass
leo_sobral@2
    25
{
leo_sobral@2
    26
  GObjectClass parent_class;
leo_sobral@2
    27
leo_sobral@2
    28
  /* callbacks */
leo_sobral@2
    29
};
leo_sobral@2
    30
leo_sobral@2
    31
struct _MythLiveTV
leo_sobral@2
    32
{
leo_sobral@2
    33
	GObject parent;
leo_sobral@2
    34
leo_sobral@2
    35
	// Backend connection related variables
leo_sobral@2
    36
	GString *backend_hostname;
leo_sobral@2
    37
	gint backend_port;
leo_sobral@2
    38
	GString *local_hostname;
leo_sobral@2
    39
leo_sobral@2
    40
	GMythRemoteEncoder *remote_encoder;
leo_sobral@2
    41
	GMythTVChain *tvchain;
leo_sobral@2
    42
	GMythProgramInfo *proginfo;
leo_sobral@2
    43
leo_sobral@2
    44
	gboolean is_livetv;
leo_sobral@2
    45
leo_sobral@2
    46
};
leo_sobral@2
    47
leo_sobral@2
    48
GType          myth_livetv_get_type (void);
leo_sobral@2
    49
leo_sobral@2
    50
MythLiveTV* myth_livetv_new ();
leo_sobral@2
    51
leo_sobral@2
    52
void myth_livetv_start_playing (MythLiveTV *livetv);
leo_sobral@2
    53
void myth_livetv_stop_playing (MythLiveTV *livetv);
leo_sobral@2
    54
leo_sobral@2
    55
gboolean myth_livetv_setup (MythLiveTV *livetv);
leo_sobral@2
    56
leo_sobral@2
    57
#define G_END_DECLS
leo_sobral@2
    58
leo_sobral@2
    59
#endif /*MYTH_LIVETV_H_*/