[svn r495] Some more code clean-ups.
1 #ifndef __GMYTH_STREAM_CLIENT_H__
2 #define __GMYTH_STREAM_CLIENT_H__
4 #include <glib-object.h>
8 typedef struct _GMythStreamClient GMythStreamClient;
9 typedef struct _GMythStreamClientClass GMythStreamClientClass;
11 struct _GMythStreamClientClass {
12 GObjectClass parent_class;
15 struct _GMythStreamClient {
20 #define GMYTH_TYPE_STREAM_CLIENT \
21 (gmyth_stream_client_get_type())
22 #define GMYTH_STREAM_CLIENT(obj) \
23 (G_TYPE_CHECK_INSTANCE_CAST((obj), GMYTH_TYPE_STREAM_CLIENT, GMythStreamClient))
24 #define GMYTH_STREAM_CLIENT_CLASS(klass) \
25 (G_TYPE_CHECK_CLASS_CAST((klass), GMYTH_TYPE_STREAM_CLIENT, GMythStreamClientClass))
26 #define GMYTH_IS_STREAM_CLIENT(obj) \
27 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GMYTH_TYPE_STREAM_CLIENT))
28 #define GMYTH_IS_STREAM_CLIENT_CLASS(klass) \
29 (G_TYPE_CHECK_CLASS_TYPE((klass), GMYTH_TYPE_STREAM_CLIENT))
30 #define GMYTH_STREAM_CLIENT_GET_CLASS(obj) \
31 (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_TYPE_STREAM_CLIENT, GMythStreamClientClass))
34 GType gmyth_stream_client_get_type (void);
35 GMythStreamClient* gmyth_stream_client_new (void);
36 gboolean gmyth_stream_client_connect (GMythStreamClient *self,
37 const gchar *server, guint port);
38 void gmyth_stream_client_disconnect (GMythStreamClient *self);
39 guint gmyth_stream_client_open_stream (GMythStreamClient *self,
40 const gchar* file_name,
47 guint width, guint height,
50 gboolean gmyth_stream_client_play_stream (GMythStreamClient *self,
52 void gmyth_stream_client_pause_stream(GMythStreamClient *self,
54 void gmyth_stream_client_close_stream (GMythStreamClient *self,