gst-plugins-mythtv/src/gmyth_livetv.h
author rosfran
Mon Oct 23 15:42:46 2006 +0100 (2006-10-23)
branchtrunk
changeset 40 ba5dc9bff3a1
parent 13 gst-plugins-mythtv/src/myth_livetv.h@f3cdc7844178
permissions -rwxr-xr-x
[svn r41] Changes prior to move some MythTV depedencies to the GMyth library.
     1 #ifndef GMYTH_LIVETV_H_
     2 #define GMYTH_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 "gmyth_file_transfer.h"
    11 
    12 #define G_BEGIN_DECLS
    13 
    14 #define GMYTH_LIVETV_TYPE               (gmyth_livetv_get_type ())
    15 #define GMYTH_LIVETV(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE, GMythLiveTV))
    16 #define GMYTH_LIVETV_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE, GMythLiveTVClass))
    17 #define IS_GMYTH_LIVETV(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE))
    18 #define IS_GMYTH_LIVETV_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE))
    19 #define GMYTH_LIVETV_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_LIVETV_TYPE, GMythLiveTVClass))
    20 
    21 typedef struct _GMythLiveTV         GMythLiveTV;
    22 typedef struct _GMythLiveTVClass    GMythLiveTVClass;
    23 
    24 struct _GMythLiveTVClass
    25 {
    26   GObjectClass parent_class;
    27 
    28   /* callbacks */
    29 };
    30 
    31 struct _GMythLiveTV
    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          gmyth_livetv_get_type (void);
    49 
    50 GMythLiveTV* gmyth_livetv_new ();
    51 
    52 void gmyth_livetv_start_playing (GMythLiveTV *livetv);
    53 void gmyth_livetv_stop_playing (GMythLiveTV *livetv);
    54 
    55 gboolean gmyth_livetv_setup (GMythLiveTV *livetv);
    56 
    57 #define G_END_DECLS
    58 
    59 #endif /*GMYTH_LIVETV_H_*/