rosfran@40: #ifndef GMYTH_LIVETV_H_ rosfran@40: #define GMYTH_LIVETV_H_ leo_sobral@2: leo_sobral@2: #include leo_sobral@2: leo_sobral@2: #include leo_sobral@2: #include leo_sobral@2: #include leo_sobral@2: rosfran@40: #include "gmyth_file_transfer.h" leo_sobral@2: leo_sobral@2: #define G_BEGIN_DECLS leo_sobral@2: rosfran@40: #define GMYTH_LIVETV_TYPE (gmyth_livetv_get_type ()) rosfran@40: #define GMYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE, GMythLiveTV)) rosfran@40: #define GMYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE, GMythLiveTVClass)) rosfran@40: #define IS_GMYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE)) rosfran@40: #define IS_GMYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE)) rosfran@40: #define GMYTH_LIVETV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_LIVETV_TYPE, GMythLiveTVClass)) leo_sobral@2: rosfran@40: typedef struct _GMythLiveTV GMythLiveTV; rosfran@40: typedef struct _GMythLiveTVClass GMythLiveTVClass; leo_sobral@2: rosfran@40: struct _GMythLiveTVClass leo_sobral@2: { leo_sobral@2: GObjectClass parent_class; leo_sobral@2: leo_sobral@2: /* callbacks */ leo_sobral@2: }; leo_sobral@2: rosfran@40: struct _GMythLiveTV leo_sobral@2: { leo_sobral@2: GObject parent; leo_sobral@2: leo_sobral@2: // Backend connection related variables leo_sobral@2: GString *backend_hostname; leo_sobral@2: gint backend_port; leo_sobral@2: GString *local_hostname; leo_sobral@2: leo_sobral@2: GMythRemoteEncoder *remote_encoder; leo_sobral@2: GMythTVChain *tvchain; leo_sobral@2: GMythProgramInfo *proginfo; leo_sobral@2: leo_sobral@2: gboolean is_livetv; leo_sobral@2: leo_sobral@2: }; leo_sobral@2: rosfran@40: GType gmyth_livetv_get_type (void); leo_sobral@2: rosfran@40: GMythLiveTV* gmyth_livetv_new (); leo_sobral@2: rosfran@40: void gmyth_livetv_start_playing (GMythLiveTV *livetv); rosfran@40: void gmyth_livetv_stop_playing (GMythLiveTV *livetv); leo_sobral@2: rosfran@40: gboolean gmyth_livetv_setup (GMythLiveTV *livetv); leo_sobral@2: leo_sobral@2: #define G_END_DECLS leo_sobral@2: rosfran@40: #endif /*GMYTH_LIVETV_H_*/