author | rosfran |
Mon Oct 23 20:02:26 2006 +0100 (2006-10-23) | |
branch | trunk |
changeset 43 | c9e53d7250f8 |
parent 13 | f3cdc7844178 |
permissions | -rwxr-xr-x |
rosfran@40 | 1 |
#ifndef GMYTH_LIVETV_H_ |
rosfran@40 | 2 |
#define GMYTH_LIVETV_H_ |
leo_sobral@2 | 3 |
|
leo_sobral@2 | 4 |
#include <glib-object.h> |
leo_sobral@2 | 5 |
|
leo_sobral@2 | 6 |
#include <gmyth/gmyth_remote_encoder.h> |
leo_sobral@2 | 7 |
#include <gmyth/gmyth_tvchain.h> |
leo_sobral@2 | 8 |
#include <gmyth/gmyth_common.h> |
leo_sobral@2 | 9 |
|
rosfran@40 | 10 |
#include "gmyth_file_transfer.h" |
leo_sobral@2 | 11 |
|
leo_sobral@2 | 12 |
#define G_BEGIN_DECLS |
leo_sobral@2 | 13 |
|
rosfran@40 | 14 |
#define GMYTH_LIVETV_TYPE (gmyth_livetv_get_type ()) |
rosfran@40 | 15 |
#define GMYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE, GMythLiveTV)) |
rosfran@40 | 16 |
#define GMYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE, GMythLiveTVClass)) |
rosfran@40 | 17 |
#define IS_GMYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE)) |
rosfran@40 | 18 |
#define IS_GMYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE)) |
rosfran@40 | 19 |
#define GMYTH_LIVETV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_LIVETV_TYPE, GMythLiveTVClass)) |
leo_sobral@2 | 20 |
|
rosfran@40 | 21 |
typedef struct _GMythLiveTV GMythLiveTV; |
rosfran@40 | 22 |
typedef struct _GMythLiveTVClass GMythLiveTVClass; |
leo_sobral@2 | 23 |
|
rosfran@40 | 24 |
struct _GMythLiveTVClass |
leo_sobral@2 | 25 |
{ |
leo_sobral@2 | 26 |
GObjectClass parent_class; |
leo_sobral@2 | 27 |
|
leo_sobral@2 | 28 |
/* callbacks */ |
leo_sobral@2 | 29 |
}; |
leo_sobral@2 | 30 |
|
rosfran@40 | 31 |
struct _GMythLiveTV |
leo_sobral@2 | 32 |
{ |
leo_sobral@2 | 33 |
GObject parent; |
leo_sobral@2 | 34 |
|
leo_sobral@2 | 35 |
// Backend connection related variables |
leo_sobral@2 | 36 |
GString *backend_hostname; |
leo_sobral@2 | 37 |
gint backend_port; |
leo_sobral@2 | 38 |
GString *local_hostname; |
leo_sobral@2 | 39 |
|
leo_sobral@2 | 40 |
GMythRemoteEncoder *remote_encoder; |
leo_sobral@2 | 41 |
GMythTVChain *tvchain; |
leo_sobral@2 | 42 |
GMythProgramInfo *proginfo; |
leo_sobral@2 | 43 |
|
leo_sobral@2 | 44 |
gboolean is_livetv; |
leo_sobral@2 | 45 |
|
leo_sobral@2 | 46 |
}; |
leo_sobral@2 | 47 |
|
rosfran@40 | 48 |
GType gmyth_livetv_get_type (void); |
leo_sobral@2 | 49 |
|
rosfran@40 | 50 |
GMythLiveTV* gmyth_livetv_new (); |
leo_sobral@2 | 51 |
|
rosfran@40 | 52 |
void gmyth_livetv_start_playing (GMythLiveTV *livetv); |
rosfran@40 | 53 |
void gmyth_livetv_stop_playing (GMythLiveTV *livetv); |
leo_sobral@2 | 54 |
|
rosfran@40 | 55 |
gboolean gmyth_livetv_setup (GMythLiveTV *livetv); |
leo_sobral@2 | 56 |
|
leo_sobral@2 | 57 |
#define G_END_DECLS |
leo_sobral@2 | 58 |
|
rosfran@40 | 59 |
#endif /*GMYTH_LIVETV_H_*/ |