aboutsummaryrefslogtreecommitdiff
path: root/src/reflist.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-02-08 19:10:27 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:13 +0100
commite980ed54dc29e025587aba47390727c500aec8f1 (patch)
treea818f47cf8f00c034c59e7df8d825965d217d1c9 /src/reflist.h
parent606a2cd5432fe342d73ab8f37a1b383142c52fdb (diff)
Work on making iteration work
Diffstat (limited to 'src/reflist.h')
-rw-r--r--src/reflist.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reflist.h b/src/reflist.h
index 78aadf2a..e25a16ad 100644
--- a/src/reflist.h
+++ b/src/reflist.h
@@ -19,6 +19,7 @@
typedef struct _reflist RefList;
typedef struct _reflection Reflection;
+typedef struct _reflistiterator RefListIterator;
#define INDICES signed int h, signed int k, signed int l
@@ -56,8 +57,8 @@ extern Reflection *add_refl(RefList *list, INDICES);
extern void delete_refl(Reflection *refl);
/* Iteration */
-extern Reflection *first_refl(RefList *list);
-extern Reflection *next_refl(Reflection *refl);
+extern Reflection *first_refl(RefList *list, RefListIterator **iterator);
+extern Reflection *next_refl(Reflection *refl, RefListIterator *iter);
/* Voodoo */
extern void optimise_reflist(RefList *list);