]> git.sesse.net Git - vlc/blobdiff - src/input/input.h
* Big cleanup of the PS input plugin ;
[vlc] / src / input / input.h
index 0c7352552c9d7428fad1c5cb50bbc5dde85998db..848f3f6c14a861e59aa8ee971bf0ee6212be3318 100644 (file)
@@ -1,5 +1,31 @@
-/* Communication plugin -> input */
+/*****************************************************************************
+ * input.h: structures of the input not exported to other modules
+ *****************************************************************************
+ * Copyright (C) 1999, 2000 VideoLAN
+ * $Id: input.h,v 1.4 2000/12/20 16:04:31 massiot Exp $
+ *
+ * Authors:
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ *****************************************************************************/
+
+/*
+ * Communication plugin -> input
+ */
 
+/* FIXME: you've gotta move this move this, you've gotta move this move this */
 #define INPUT_READ_ONCE     7   /* We live in a world dominated by Ethernet. *
                                  * Ethernet MTU is 1500 bytes, so in a UDP   *
                                  * packet we can put : 1500/188 = 7 TS       *
@@ -22,7 +48,7 @@ typedef struct input_capabilities_s
     void                 (* pf_end)( struct input_thread_s * );
 
     /* Read & Demultiplex */
-    void                 (* pf_read)( struct input_thread_s *,
+    int                  (* pf_read)( struct input_thread_s *,
                           struct data_packet_s * pp_packets[INPUT_READ_ONCE] );
     void                 (* pf_demux)( struct input_thread_s *,
                                        struct data_packet_s * );
@@ -54,6 +80,7 @@ void input_InitStream( struct input_thread_s *, size_t );
 struct pgrm_descriptor_s * input_AddProgram( struct input_thread_s *,
                                              u16, size_t );
 void input_DelProgram( struct input_thread_s *, u16 );
+void input_DumpStream( struct input_thread_s * );
 struct es_descriptor_s * input_AddES( struct input_thread_s *,
                                       struct pgrm_descriptor_s *, u16,
                                       size_t );