renatofilho@487: #ifndef __GMYTH_STREAM_CLIENT_H__
renatofilho@487: #define __GMYTH_STREAM_CLIENT_H__
renatofilho@487: 
renatofilho@487: #include <glib-object.h>
renatofilho@487: 
renatofilho@487: G_BEGIN_DECLS
renatofilho@487: 
renatofilho@487: typedef struct _GMythStreamClient GMythStreamClient;
renatofilho@487: typedef struct _GMythStreamClientClass GMythStreamClientClass;
renatofilho@487: 
renatofilho@487: struct _GMythStreamClientClass {
renatofilho@487: 	GObjectClass parent_class;
renatofilho@487: };
renatofilho@487: 
renatofilho@487: struct _GMythStreamClient {
renatofilho@487: 	GObject parent;
renatofilho@487: };
renatofilho@487: 
renatofilho@487: /* TYPE MACROS */
renatofilho@487: #define GMYTH_TYPE_STREAM_CLIENT \
renatofilho@487:   (gmyth_stream_client_get_type())
renatofilho@487: #define GMYTH_STREAM_CLIENT(obj) \
renatofilho@487:   (G_TYPE_CHECK_INSTANCE_CAST((obj), GMYTH_TYPE_STREAM_CLIENT, GMythStreamClient))
renatofilho@487: #define GMYTH_STREAM_CLIENT_CLASS(klass) \
renatofilho@487:   (G_TYPE_CHECK_CLASS_CAST((klass), GMYTH_TYPE_STREAM_CLIENT, GMythStreamClientClass))
renatofilho@487: #define GMYTH_IS_STREAM_CLIENT(obj) \
renatofilho@487:   (G_TYPE_CHECK_INSTANCE_TYPE((obj), GMYTH_TYPE_STREAM_CLIENT))
renatofilho@487: #define GMYTH_IS_STREAM_CLIENT_CLASS(klass) \
renatofilho@487:   (G_TYPE_CHECK_CLASS_TYPE((klass), GMYTH_TYPE_STREAM_CLIENT))
renatofilho@487: #define GMYTH_STREAM_CLIENT_GET_CLASS(obj) \
renatofilho@487:   (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_TYPE_STREAM_CLIENT, GMythStreamClientClass))
renatofilho@487: 
renatofilho@487: 
renatofilho@487: GType 		        gmyth_stream_client_get_type 	(void);
renatofilho@487: GMythStreamClient*  gmyth_stream_client_new         (void);
renatofilho@487: gboolean            gmyth_stream_client_connect     (GMythStreamClient *self,
renatofilho@487:                                                      const gchar *server, guint port);
renatofilho@487: void                gmyth_stream_client_disconnect  (GMythStreamClient *self);
renatofilho@487: guint			    gmyth_stream_client_open_stream (GMythStreamClient *self,
renatofilho@487:                                                      const gchar* file_name,
renatofilho@487:                                                      const gchar* mux,
renatofilho@487:                                                      const gchar* vcodec,
renatofilho@487:                                                      guint vbitrate,
renatofilho@487:                                                      gdouble fps,
renatofilho@487:                                                      const gchar* acodec,
renatofilho@487:                                                      guint abitrate,
renatofilho@487:                                     				 guint width, guint height,
renatofilho@487:                                     				 guint port,
renatofilho@487:                                     				 const gchar* opt);
renatofilho@487: gboolean		    gmyth_stream_client_play_stream (GMythStreamClient *self,
renatofilho@487:                         							 guint stream_id);
renatofilho@487: void			    gmyth_stream_client_pause_stream(GMythStreamClient *self,
renatofilho@487:                         							 guint stream_id);
renatofilho@487: void			    gmyth_stream_client_close_stream (GMythStreamClient *self,
renatofilho@487: 							                         guint stream_id);
renatofilho@487: 							                         
renatofilho@487: 
renatofilho@487: G_END_DECLS
renatofilho@487: 
renatofilho@487: #endif