1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gmyth-stream/client/src/gmyth-stream-client.h Wed Apr 11 19:32:57 2007 +0100
1.3 @@ -0,0 +1,60 @@
1.4 +#ifndef __GMYTH_STREAM_CLIENT_H__
1.5 +#define __GMYTH_STREAM_CLIENT_H__
1.6 +
1.7 +#include <glib-object.h>
1.8 +
1.9 +G_BEGIN_DECLS
1.10 +
1.11 +typedef struct _GMythStreamClient GMythStreamClient;
1.12 +typedef struct _GMythStreamClientClass GMythStreamClientClass;
1.13 +
1.14 +struct _GMythStreamClientClass {
1.15 + GObjectClass parent_class;
1.16 +};
1.17 +
1.18 +struct _GMythStreamClient {
1.19 + GObject parent;
1.20 +};
1.21 +
1.22 +/* TYPE MACROS */
1.23 +#define GMYTH_TYPE_STREAM_CLIENT \
1.24 + (gmyth_stream_client_get_type())
1.25 +#define GMYTH_STREAM_CLIENT(obj) \
1.26 + (G_TYPE_CHECK_INSTANCE_CAST((obj), GMYTH_TYPE_STREAM_CLIENT, GMythStreamClient))
1.27 +#define GMYTH_STREAM_CLIENT_CLASS(klass) \
1.28 + (G_TYPE_CHECK_CLASS_CAST((klass), GMYTH_TYPE_STREAM_CLIENT, GMythStreamClientClass))
1.29 +#define GMYTH_IS_STREAM_CLIENT(obj) \
1.30 + (G_TYPE_CHECK_INSTANCE_TYPE((obj), GMYTH_TYPE_STREAM_CLIENT))
1.31 +#define GMYTH_IS_STREAM_CLIENT_CLASS(klass) \
1.32 + (G_TYPE_CHECK_CLASS_TYPE((klass), GMYTH_TYPE_STREAM_CLIENT))
1.33 +#define GMYTH_STREAM_CLIENT_GET_CLASS(obj) \
1.34 + (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_TYPE_STREAM_CLIENT, GMythStreamClientClass))
1.35 +
1.36 +
1.37 +GType gmyth_stream_client_get_type (void);
1.38 +GMythStreamClient* gmyth_stream_client_new (void);
1.39 +gboolean gmyth_stream_client_connect (GMythStreamClient *self,
1.40 + const gchar *server, guint port);
1.41 +void gmyth_stream_client_disconnect (GMythStreamClient *self);
1.42 +guint gmyth_stream_client_open_stream (GMythStreamClient *self,
1.43 + const gchar* file_name,
1.44 + const gchar* mux,
1.45 + const gchar* vcodec,
1.46 + guint vbitrate,
1.47 + gdouble fps,
1.48 + const gchar* acodec,
1.49 + guint abitrate,
1.50 + guint width, guint height,
1.51 + guint port,
1.52 + const gchar* opt);
1.53 +gboolean gmyth_stream_client_play_stream (GMythStreamClient *self,
1.54 + guint stream_id);
1.55 +void gmyth_stream_client_pause_stream(GMythStreamClient *self,
1.56 + guint stream_id);
1.57 +void gmyth_stream_client_close_stream (GMythStreamClient *self,
1.58 + guint stream_id);
1.59 +
1.60 +
1.61 +G_END_DECLS
1.62 +
1.63 +#endif