dvdrip: Check for the device size apparently changing during the copy.
[dvdrip] / lib.h
diff --git a/lib.h b/lib.h
index dc8d7de..bad7c3b 100644 (file)
--- a/lib.h
+++ b/lib.h
@@ -43,6 +43,7 @@
 
 #define STRCMP(a, op, b) (strcmp((a), (b)) op 0)
 #define STRNCMP(a, op, b, n) (strncmp((a), (b), (n)) op 0)
+#define MEMCMP(a, op, b, n) (memcmp((a), (b), (n)) op 0)
 
 #ifdef DEBUG
 #  define D(x) x
@@ -92,6 +93,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;