Clean up gmxfio includes
[alexxy/gromacs.git] / src / gromacs / fileio / tpxio.c
index 085cd5c9afd8cff0aa8137a18a5a35c4ab6d9bb5..63f76d6f1c7a6aaf67a6bf6aa989b23f683f7cb7 100644 (file)
@@ -46,6 +46,7 @@
 #include "gromacs/fileio/confio.h"
 #include "gromacs/fileio/filenm.h"
 #include "gromacs/fileio/gmxfio.h"
+#include "gromacs/fileio/gmxfio-xdr.h"
 #include "gromacs/legacyheaders/copyrite.h"
 #include "gromacs/legacyheaders/macros.h"
 #include "gromacs/legacyheaders/names.h"
@@ -3221,7 +3222,6 @@ static void do_tpxheader(t_fileio *fio, gmx_bool bRead, t_tpxheader *tpx,
     int       idum = 0;
     real      rdum = 0;
 
-    gmx_fio_checktype(fio);
     gmx_fio_setdebug(fio, bDebugMode());
 
     /* XDR binary topology file */
@@ -3640,22 +3640,22 @@ static int do_tpx(t_fileio *fio, gmx_bool bRead,
     return ePBC;
 }
 
-/************************************************************
- *
- *  The following routines are the exported ones
- *
- ************************************************************/
-
-t_fileio *open_tpx(const char *fn, const char *mode)
+static t_fileio *open_tpx(const char *fn, const char *mode)
 {
     return gmx_fio_open(fn, mode);
 }
 
-void close_tpx(t_fileio *fio)
+static void close_tpx(t_fileio *fio)
 {
     gmx_fio_close(fio);
 }
 
+/************************************************************
+ *
+ *  The following routines are the exported ones
+ *
+ ************************************************************/
+
 void read_tpxheader(const char *fn, t_tpxheader *tpx, gmx_bool TopOnlyOK,
                     int *file_version, int *file_generation)
 {