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