dvd-sector-copy.c: Export device-size machinery to the library.
[dvdrip] / lib.h
diff --git a/lib.h b/lib.h
index bad7c3b..8a63e58 100644 (file)
--- a/lib.h
+++ b/lib.h
@@ -80,6 +80,7 @@ extern void open_file_on_demand(const char *file, FILE **fp_inout,
                                const char *what);
 extern void check_write(FILE *fp, const char *what);
 extern void carefully_fclose(FILE *fp, const char *what);
+extern off_t device_size(int fd, const char *file, int *blksz_out);
 
 enum { RAW, IFO, VOB, BUP };
 typedef uint_least32_t ident;