1.1 --- a/gmyth/src/gmyth_monitor_handler.h Wed May 23 19:50:41 2007 +0100
1.2 +++ b/gmyth/src/gmyth_monitor_handler.h Thu Jun 14 18:19:52 2007 +0100
1.3 @@ -49,67 +49,67 @@
1.4 #define IS_GMYTH_MONITOR_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_MONITOR_HANDLER_TYPE))
1.5 #define GMYTH_MONITOR_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_MONITOR_HANDLER_TYPE, GMythMonitorHandlerClass))
1.6 #define GMYTHTV_MONITOR_HANDLER_READ_ERROR -314
1.7 - enum
1.8 - {
1.9 - GMYTH_BACKEND_NO_MESSAGE = 0,
1.10 - GMYTH_BACKEND_PROGRAM_INFO_CHANGED,
1.11 - GMYTH_BACKEND_DONE_RECORDING,
1.12 - GMYTH_BACKEND_STOP_LIVETV
1.13 - };
1.14 + enum
1.15 +{
1.16 + GMYTH_BACKEND_NO_MESSAGE = 0,
1.17 + GMYTH_BACKEND_PROGRAM_INFO_CHANGED,
1.18 + GMYTH_BACKEND_DONE_RECORDING,
1.19 + GMYTH_BACKEND_STOP_LIVETV
1.20 +};
1.21
1.22 typedef struct _GMythMonitorHandler GMythMonitorHandler;
1.23 typedef struct _GMythMonitorHandlerClass GMythMonitorHandlerClass;
1.24
1.25 struct _GMythMonitorHandlerClass
1.26 - {
1.27 - GObjectClass parent_class;
1.28 +{
1.29 + GObjectClass parent_class;
1.30
1.31 - /* callbacks */
1.32 - guint backend_events_handler_signal_id;
1.33 + /* callbacks */
1.34 + guint backend_events_handler_signal_id;
1.35
1.36 - /* signal default handlers */
1.37 - void ( *backend_events_handler ) ( GMythMonitorHandler * monitor,
1.38 - gint msg_code, gchar * message );
1.39 - };
1.40 + /* signal default handlers */
1.41 + void (*backend_events_handler) (GMythMonitorHandler * monitor,
1.42 + gint msg_code, gchar * message);
1.43 +};
1.44
1.45 struct _GMythMonitorHandler
1.46 - {
1.47 - GObject parent;
1.48 +{
1.49 + GObject parent;
1.50
1.51 - /* MythTV version number */
1.52 - gint mythtv_version;
1.53 + /* MythTV version number */
1.54 + gint mythtv_version;
1.55
1.56 - /* socket descriptors */
1.57 - GMythSocket *event_sock;
1.58 + /* socket descriptors */
1.59 + GMythSocket *event_sock;
1.60
1.61 - gpointer ( *gmyth_monitor_handler_listener ) ( gpointer data );
1.62 + gpointer(*gmyth_monitor_handler_listener) (gpointer data);
1.63
1.64 - gchar *hostname;
1.65 - gint port;
1.66 + gchar *hostname;
1.67 + gint port;
1.68
1.69 - gint64 actual_index;
1.70 + gint64 actual_index;
1.71
1.72 - gboolean allow_msgs_listener;
1.73 + gboolean allow_msgs_listener;
1.74
1.75 - /* stores the messages coming from the backend */
1.76 - GHashTable *backend_msgs;
1.77 + /* stores the messages coming from the backend */
1.78 + GHashTable *backend_msgs;
1.79
1.80 - GMutex *mutex;
1.81 + GMutex *mutex;
1.82
1.83 - GThread *th;
1.84 + GThread *th;
1.85
1.86 - };
1.87 +};
1.88
1.89 -GType gmyth_monitor_handler_get_type ( void );
1.90 +GType gmyth_monitor_handler_get_type(void);
1.91
1.92 -GMythMonitorHandler *gmyth_monitor_handler_new ( void );
1.93 +GMythMonitorHandler *gmyth_monitor_handler_new(void);
1.94
1.95 -gboolean gmyth_monitor_handler_open ( GMythMonitorHandler * monitor,
1.96 - const gchar * hostname, gint port );
1.97 +gboolean gmyth_monitor_handler_open(GMythMonitorHandler * monitor,
1.98 + const gchar * hostname, gint port);
1.99
1.100 -gboolean gmyth_monitor_handler_start ( GMythMonitorHandler * monitor );
1.101 +gboolean gmyth_monitor_handler_start(GMythMonitorHandler * monitor);
1.102
1.103 -void gmyth_monitor_handler_close ( GMythMonitorHandler * monitor );
1.104 +void gmyth_monitor_handler_close(GMythMonitorHandler * monitor);
1.105
1.106 G_END_DECLS
1.107 #endif /* __GMYTH_MONITOR_HANDLER_H__ */