gmyth-stream/client/src/gmyth-stream-client.h
author melunko
Wed May 16 17:04:46 2007 +0100 (2007-05-16)
branchtrunk
changeset 670 85d9b58f86b0
parent 487 ab3aa66009de
permissions -rw-r--r--
[svn r676] new file transfer flag fixed
     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 
    36 GMythStreamClient*  gmyth_stream_client_new(void);
    37 
    38 gboolean gmyth_stream_client_connect (GMythStreamClient *self,
    39                                       const gchar *server, guint port);
    40 
    41 void gmyth_stream_client_disconnect  (GMythStreamClient *self);
    42 gint gmyth_stream_client_open_stream (GMythStreamClient *self,
    43                                        const gchar* file_name,
    44                                        const gchar* mux,
    45                                        const gchar* vcodec,
    46                                        guint vbitrate,
    47                                        gdouble fps,
    48                                        const gchar* acodec,
    49                                        guint abitrate,
    50                                        guint width, guint height,
    51                                        const gchar* opt);
    52 
    53 gint gmyth_stream_client_play_stream (GMythStreamClient *self);
    54 
    55 void gmyth_stream_client_close_stream (GMythStreamClient *self);
    56 
    57 
    58 G_END_DECLS
    59 
    60 #endif