gmyth-stream/client/src/gmyth-stream-client.h
author renatofilho
Wed Apr 04 21:53:33 2007 +0100 (2007-04-04)
branchtrunk
changeset 502 aa932d8bf85b
child 534 cb1c3e2988b9
permissions -rw-r--r--
[svn r507]
     1 #ifndef __GMYTH_STREAM_CLIENT_H__
     2 #define __GMYTH_STREAM_CLIENT_H__
     3 
     4 #include <glib-object.h>
     5 
     6 G_BEGIN_DECLS
     7 
     8 typedef struct _GMythStreamClient GMythStreamClient;
     9 typedef struct _GMythStreamClientClass GMythStreamClientClass;
    10 
    11 struct _GMythStreamClientClass {
    12 	GObjectClass parent_class;
    13 };
    14 
    15 struct _GMythStreamClient {
    16 	GObject parent;
    17 };
    18 
    19 /* TYPE MACROS */
    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))
    32 
    33 
    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,
    41                                                      const gchar* mux,
    42                                                      const gchar* vcodec,
    43                                                      guint vbitrate,
    44                                                      gdouble fps,
    45                                                      const gchar* acodec,
    46                                                      guint abitrate,
    47                                     				 guint width, guint height,
    48                                     				 guint port,
    49                                     				 const gchar* opt);
    50 gboolean		    gmyth_stream_client_play_stream (GMythStreamClient *self,
    51                         							 guint stream_id);
    52 void			    gmyth_stream_client_pause_stream(GMythStreamClient *self,
    53                         							 guint stream_id);
    54 void			    gmyth_stream_client_close_stream (GMythStreamClient *self,
    55 							                         guint stream_id);
    56 							                         
    57 
    58 G_END_DECLS
    59 
    60 #endif