Meson: Use library() to build both static and shared libs
[platform/upstream/gstreamer.git] / plugins / elements / gstfdsrc.h
index 889a5a4..bafae48 100644 (file)
@@ -17,8 +17,8 @@
  *
  * You should have received a copy of the GNU Library General Public
  * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
  */
 
 
@@ -49,7 +49,7 @@ typedef struct _GstFdSrcClass GstFdSrcClass;
 /**
  * GstFdSrc:
  *
- * Opaque #GstFdSrc data structure
+ * Opaque #GstFdSrc data structure.
  */
 struct _GstFdSrc {
   GstPushSrc element;
@@ -61,10 +61,14 @@ struct _GstFdSrc {
   /* fd and flag indicating whether fd is seekable */
   gint fd;
   gboolean seekable_fd;
+  guint64 size;
+
+  /* poll timeout */
+  guint64 timeout;
 
   gchar *uri;
 
-  gint control_sock[2];
+  GstPoll *fdset;
 
   gulong curoffset; /* current offset in file */
 };
@@ -76,7 +80,7 @@ struct _GstFdSrcClass {
   void (*timeout) (GstElement *element);
 };
 
-GType gst_fd_src_get_type(void);
+G_GNUC_INTERNAL GType gst_fd_src_get_type(void);
 
 G_END_DECLS