renatofilho@487: #ifndef __GMYTH_STREAM_CLIENT_H__ renatofilho@487: #define __GMYTH_STREAM_CLIENT_H__ renatofilho@487: renatofilho@487: #include 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 { morphbr@534: GObjectClass parent_class; renatofilho@487: }; renatofilho@487: renatofilho@487: struct _GMythStreamClient { morphbr@534: 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: morphbr@534: GType gmyth_stream_client_get_type(void); morphbr@534: morphbr@534: GMythStreamClient* gmyth_stream_client_new(void); morphbr@534: morphbr@534: gboolean gmyth_stream_client_connect (GMythStreamClient *self, morphbr@534: const gchar *server, guint port); morphbr@534: morphbr@534: void gmyth_stream_client_disconnect (GMythStreamClient *self); morphbr@534: gint gmyth_stream_client_open_stream (GMythStreamClient *self, morphbr@534: const gchar* file_name, morphbr@534: const gchar* mux, morphbr@534: const gchar* vcodec, morphbr@534: guint vbitrate, morphbr@534: gdouble fps, morphbr@534: const gchar* acodec, morphbr@534: guint abitrate, morphbr@534: guint width, guint height, morphbr@534: const gchar* opt); morphbr@534: morphbr@534: gint gmyth_stream_client_play_stream (GMythStreamClient *self); morphbr@534: morphbr@534: void gmyth_stream_client_close_stream (GMythStreamClient *self); morphbr@534: renatofilho@487: renatofilho@487: G_END_DECLS renatofilho@487: renatofilho@487: #endif