gmyth-stream/client/src/gmyth-stream-client.h
author melunko
Tue Apr 24 19:45:27 2007 +0100 (2007-04-24)
branchtrunk
changeset 592 0f77fcb97269
parent 487 ab3aa66009de
permissions -rw-r--r--
[svn r598] changed ScheduleInfo attribute from record_id to schedule_id
renatofilho@487
     1
#ifndef __GMYTH_STREAM_CLIENT_H__
renatofilho@487
     2
#define __GMYTH_STREAM_CLIENT_H__
renatofilho@487
     3
renatofilho@487
     4
#include <glib-object.h>
renatofilho@487
     5
renatofilho@487
     6
G_BEGIN_DECLS
renatofilho@487
     7
renatofilho@487
     8
typedef struct _GMythStreamClient GMythStreamClient;
renatofilho@487
     9
typedef struct _GMythStreamClientClass GMythStreamClientClass;
renatofilho@487
    10
renatofilho@487
    11
struct _GMythStreamClientClass {
morphbr@534
    12
    GObjectClass parent_class;
renatofilho@487
    13
};
renatofilho@487
    14
renatofilho@487
    15
struct _GMythStreamClient {
morphbr@534
    16
    GObject parent;
renatofilho@487
    17
};
renatofilho@487
    18
renatofilho@487
    19
/* TYPE MACROS */
renatofilho@487
    20
#define GMYTH_TYPE_STREAM_CLIENT \
renatofilho@487
    21
  (gmyth_stream_client_get_type())
renatofilho@487
    22
#define GMYTH_STREAM_CLIENT(obj) \
renatofilho@487
    23
  (G_TYPE_CHECK_INSTANCE_CAST((obj), GMYTH_TYPE_STREAM_CLIENT, GMythStreamClient))
renatofilho@487
    24
#define GMYTH_STREAM_CLIENT_CLASS(klass) \
renatofilho@487
    25
  (G_TYPE_CHECK_CLASS_CAST((klass), GMYTH_TYPE_STREAM_CLIENT, GMythStreamClientClass))
renatofilho@487
    26
#define GMYTH_IS_STREAM_CLIENT(obj) \
renatofilho@487
    27
  (G_TYPE_CHECK_INSTANCE_TYPE((obj), GMYTH_TYPE_STREAM_CLIENT))
renatofilho@487
    28
#define GMYTH_IS_STREAM_CLIENT_CLASS(klass) \
renatofilho@487
    29
  (G_TYPE_CHECK_CLASS_TYPE((klass), GMYTH_TYPE_STREAM_CLIENT))
renatofilho@487
    30
#define GMYTH_STREAM_CLIENT_GET_CLASS(obj) \
renatofilho@487
    31
  (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_TYPE_STREAM_CLIENT, GMythStreamClientClass))
renatofilho@487
    32
renatofilho@487
    33
morphbr@534
    34
GType  gmyth_stream_client_get_type(void);
morphbr@534
    35
morphbr@534
    36
GMythStreamClient*  gmyth_stream_client_new(void);
morphbr@534
    37
morphbr@534
    38
gboolean gmyth_stream_client_connect (GMythStreamClient *self,
morphbr@534
    39
                                      const gchar *server, guint port);
morphbr@534
    40
morphbr@534
    41
void gmyth_stream_client_disconnect  (GMythStreamClient *self);
morphbr@534
    42
gint gmyth_stream_client_open_stream (GMythStreamClient *self,
morphbr@534
    43
                                       const gchar* file_name,
morphbr@534
    44
                                       const gchar* mux,
morphbr@534
    45
                                       const gchar* vcodec,
morphbr@534
    46
                                       guint vbitrate,
morphbr@534
    47
                                       gdouble fps,
morphbr@534
    48
                                       const gchar* acodec,
morphbr@534
    49
                                       guint abitrate,
morphbr@534
    50
                                       guint width, guint height,
morphbr@534
    51
                                       const gchar* opt);
morphbr@534
    52
morphbr@534
    53
gint gmyth_stream_client_play_stream (GMythStreamClient *self);
morphbr@534
    54
morphbr@534
    55
void gmyth_stream_client_close_stream (GMythStreamClient *self);
morphbr@534
    56
renatofilho@487
    57
renatofilho@487
    58
G_END_DECLS
renatofilho@487
    59
renatofilho@487
    60
#endif