Add reclist rewind function
[pazpar2-moved-to-github.git] / src / reclists.c
index 817c133..103eefd 100644 (file)
@@ -342,6 +342,12 @@ void reclist_leave(struct reclist *l)
         l->sorted_ptr = l->sorted_list;
 }
 
+void reclist_rewind(struct reclist *l)
+{
+    if (l)
+        l->sorted_ptr = l->sorted_list;
+}
+
 
 struct reclist *reclist_create(NMEM nmem)
 {