• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) <2006> Andre Moreira Magalhaes <andre.magalhaes@indt.org.br>
3  * Copyright (C) <2004> David A. Schleef <ds@schleef.org>
4  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef __GST_RFB_SRC_H__
23 #define __GST_RFB_SRC_H__
24 
25 #include <gst/gst.h>
26 #include <gst/base/gstpushsrc.h>
27 #include <gst/video/gstvideopool.h>
28 
29 #include "rfbdecoder.h"
30 
31 G_BEGIN_DECLS
32 #define GST_TYPE_RFB_SRC \
33   (gst_rfb_src_get_type())
34 #define GST_RFB_SRC(obj) \
35   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RFB_SRC,GstRfbSrc))
36 #define GST_RFB_SRC_CLASS(klass) \
37   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RFB_SRC,GstRfbSrc))
38 #define GST_IS_RFB_SRC(obj) \
39   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RFB_SRC))
40 #define GST_IS_RFB_SRC_CLASS(klass) \
41   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RFB_SRC))
42 typedef struct _GstRfbSrc GstRfbSrc;
43 typedef struct _GstRfbSrcClass GstRfbSrcClass;
44 
45 struct _GstRfbSrcClass
46 {
47   GstPushSrcClass parent_class;
48 };
49 
50 struct _GstRfbSrc
51 {
52   GstPushSrc element;
53 
54   gchar *host;
55   gint port;
56 
57   RfbDecoder *decoder;
58   gboolean go;
59   gboolean incremental_update;
60   gboolean view_only;
61 
62   guint button_mask;
63 
64   /* protocol version */
65   guint version_major;
66   guint version_minor;
67 
68 };
69 
70 GType gst_rfb_src_get_type (void);
71 GST_ELEMENT_REGISTER_DECLARE (rfbsrc);
72 
73 G_END_DECLS
74 #endif
75