Make fingerprint cache opaque outside fprint.c
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 13 Sep 2012 18:13:47 +0000 (21:13 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 14 Sep 2012 10:31:27 +0000 (13:31 +0300)
- Not that it matters much when everything else is wide open but gotta
  start with something...

lib/fprint.c
lib/fprint.h

index ae37f89..44e4900 100644 (file)
 #define HTDATATYPE const struct fprintCacheEntry_s *
 #include "lib/rpmhash.C"
 
+/**
+ * Finger print cache.
+ */
+struct fprintCache_s {
+    rpmFpEntryHash ht;                 /*!< hashed by dirName */
+};
+
 fingerPrintCache fpCacheCreate(int sizeHint)
 {
     fingerPrintCache fpc;
index 2f997a2..2b91c01 100644 (file)
@@ -49,13 +49,6 @@ struct fprintCacheEntry_s {
     ino_t ino;                         /*!< stat(2) inode number */
 };
 
-/**
- * Finger print cache.
- */
-struct fprintCache_s {
-    rpmFpEntryHash ht;                 /*!< hashed by dirName */
-};
-
 /* Create new hash table data type */
 
 struct rpmffi_s {