[svn r25] String list cleaning function.
4 #include <glib-object.h>
6 #include <gmyth/gmyth_remote_encoder.h>
7 #include <gmyth/gmyth_tvchain.h>
8 #include <gmyth/gmyth_common.h>
10 #include "myth_file_transfer.h"
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))
21 typedef struct _MythLiveTV MythLiveTV;
22 typedef struct _MythLiveTVClass MythLiveTVClass;
24 struct _MythLiveTVClass
26 GObjectClass parent_class;
35 // Backend connection related variables
36 GString *backend_hostname;
38 GString *local_hostname;
40 GMythRemoteEncoder *remote_encoder;
41 GMythTVChain *tvchain;
42 GMythProgramInfo *proginfo;
48 GType myth_livetv_get_type (void);
50 MythLiveTV* myth_livetv_new ();
52 void myth_livetv_start_playing (MythLiveTV *livetv);
53 void myth_livetv_stop_playing (MythLiveTV *livetv);
55 gboolean myth_livetv_setup (MythLiveTV *livetv);
59 #endif /*MYTH_LIVETV_H_*/