leo_sobral@2: #ifndef MYTH_LIVETV_H_ leo_sobral@2: #define MYTH_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: leo_sobral@2: #include "myth_file_transfer.h" leo_sobral@2: leo_sobral@2: #define G_BEGIN_DECLS leo_sobral@2: leo_sobral@2: #define MYTH_LIVETV_TYPE (myth_livetv_get_type ()) leo_sobral@2: #define MYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MYTH_LIVETV_TYPE, MythLiveTV)) leo_sobral@2: #define MYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MYTH_LIVETV_TYPE, MythLiveTVClass)) leo_sobral@2: #define IS_MYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MYTH_LIVETV_TYPE)) leo_sobral@2: #define IS_MYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MYTH_LIVETV_TYPE)) leo_sobral@2: #define MYTH_LIVETV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MYTH_LIVETV_TYPE, MythLiveTVClass)) leo_sobral@2: leo_sobral@2: typedef struct _MythLiveTV MythLiveTV; leo_sobral@2: typedef struct _MythLiveTVClass MythLiveTVClass; leo_sobral@2: leo_sobral@2: struct _MythLiveTVClass leo_sobral@2: { leo_sobral@2: GObjectClass parent_class; leo_sobral@2: leo_sobral@2: /* callbacks */ leo_sobral@2: }; leo_sobral@2: leo_sobral@2: struct _MythLiveTV 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: leo_sobral@2: GType myth_livetv_get_type (void); leo_sobral@2: leo_sobral@2: MythLiveTV* myth_livetv_new (); leo_sobral@2: leo_sobral@2: void myth_livetv_start_playing (MythLiveTV *livetv); leo_sobral@2: void myth_livetv_stop_playing (MythLiveTV *livetv); leo_sobral@2: leo_sobral@2: gboolean myth_livetv_setup (MythLiveTV *livetv); leo_sobral@2: leo_sobral@2: #define G_END_DECLS leo_sobral@2: leo_sobral@2: #endif /*MYTH_LIVETV_H_*/