Makefile: Factor out the `CFLAGS'.
[dvdrip] / lib.h
diff --git a/lib.h b/lib.h
index 0198c34..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;
@@ -93,6 +94,11 @@ static inline unsigned id_part(ident id) { return ((id >> 16)&0x0ff); }
 #define MAXFNSZ (1 + 8 + 1 + 12 + 1)
 extern void store_filename(char *buf, ident id);
 
+#define DIF_MUSTVOLINF 1u
+#define DIF_MUSTIFOHASH 2u
+#define MAXIDSZ 99
+extern int dvd_id(char *p, dvd_reader_t *dvd, unsigned f, const char *file);
+
 struct banner_progress_item {
   struct progress_item _base;
   const char *msg;