[svn r826] gmyth-ls and gmyth_query now considers db_port. Thanks to Bastien Nocera for his patch.
2 * GStreamer Copyright (C) <2006> Rosfran Borges
3 * <rosfran.borges@indt.org.br> This library is free software; you can
4 * redistribute it and/or modify it under the terms of the GNU Library
5 * General Public License as published by the Free Software Foundation;
6 * either version 2 of the License, or (at your option) any later version.
7 * This library is distributed in the hope that it will be useful, but
8 * WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
10 * General Public License for more details. You should have received a copy
11 * of the GNU Library General Public License along with this library; if
12 * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite
13 * 330, Boston, MA 02111-1307, USA.
16 #ifndef __GST_MYTHTV_SRC_H__
17 #define __GST_MYTHTV_SRC_H__
20 #include <gst/base/gstbasesrc.h>
21 #include <gst/base/gstpushsrc.h>
24 #include <gmyth/gmyth_socket.h>
25 #include <gmyth/gmyth_file.h>
26 #include <gmyth/gmyth_file_transfer.h>
27 #include <gmyth/gmyth_file_local.h>
28 #include <gmyth/gmyth_livetv.h>
29 #include <gmyth/gmyth_backendinfo.h>
32 #define GST_TYPE_MYTHTV_SRC \
33 (gst_mythtv_src_get_type())
34 #define GST_MYTHTV_SRC(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MYTHTV_SRC,GstMythtvSrc))
36 #define GST_MYTHTV_SRC_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MYTHTV_SRC,GstMythtvSrcClass))
38 #define GST_IS_MYTHTV_SRC(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MYTHTV_SRC))
40 #define GST_IS_MYTHTV_SRC_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MYTHTV_SRC))
42 typedef struct _GstMythtvSrc GstMythtvSrc;
43 typedef struct _GstMythtvSrcClass GstMythtvSrcClass;
46 GST_MYTHTV_SRC_FILE_TRANSFER,
47 GST_MYTHTV_SRC_NEXT_PROGRAM_CHAIN,
48 GST_MYTHTV_SRC_INVALID_DATA
51 struct _GstMythtvSrc {
59 GMythLiveTV *spawn_livetv;
61 GMythBackendInfo *backend_info;
74 gint64 prev_content_size;
76 gint64 content_size_last;
88 gboolean unique_setup;
92 gboolean enable_timing_position;
101 * MythTV capabilities
103 GstCaps *mythtv_caps;
105 GByteArray *bytes_queue;
107 #ifndef GST_DISABLE_GST_DEBUG
109 * enable Myth TV debug messages
111 gboolean mythtv_msgs_dbg;
114 gboolean update_prog_chain;
117 * stablish a maximum iteration value to the IS_RECORDING message
119 guint wait_to_transfer;
122 struct _GstMythtvSrcClass {
123 GstPushSrcClass parent_class;
126 GType gst_mythtv_src_get_type(void);
129 #endif /* __GST_MYTHTV_SRC_H__ */