aboutsummaryrefslogtreecommitdiff
path: root/src/index.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-02 18:12:29 +0100
committerThomas White <taw@physics.org>2010-02-02 18:12:29 +0100
commit7df59f9bc7acedb5f8aa01ad12f2f22d271a0f58 (patch)
tree9bc98ff31e5f37068169cf82cd645877ce22ea5f /src/index.h
parent9fed7cd780eb4912602f76323a0430a48cfd0834 (diff)
Tidy up options
This also simplifies quite a lot of code
Diffstat (limited to 'src/index.h')
-rw-r--r--src/index.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/index.h b/src/index.h
index 6f1fe98c..a3dae020 100644
--- a/src/index.h
+++ b/src/index.h
@@ -18,8 +18,14 @@
#endif
-extern void index_pattern(struct image *image, int no_index, int use_dirax);
+typedef enum {
+ INDEXING_NONE,
+ INDEXING_DIRAX,
+ INDEXING_MATCH
+} IndexingMethod;
+
+extern void index_pattern(struct image *image, IndexingMethod indm);
/* x,y in pixels relative to central beam */
extern int map_position(struct image *image, double x, double y,
double *rx, double *ry, double *rz);