aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/taketwo.c5
-rw-r--r--libcrystfel/src/taketwo.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c
index a012d91a..87da44a1 100644
--- a/libcrystfel/src/taketwo.c
+++ b/libcrystfel/src/taketwo.c
@@ -1459,7 +1459,7 @@ static void cleanup_taketwo_cell(struct TakeTwoCell *ttCell)
* @rot: pointer to be given an assignment (hopefully) if indexing is
* successful.
**/
-static UnitCell *run_taketwo(UnitCell *cell, struct taketwo_options *opts,
+static UnitCell *run_taketwo(UnitCell *cell, const struct taketwo_options *opts,
struct rvec *rlps, int rlp_count)
{
int cell_vec_count = 0;
@@ -1546,7 +1546,8 @@ static UnitCell *run_taketwo(UnitCell *cell, struct taketwo_options *opts,
/* CrystFEL interface hooks */
-int taketwo_index(struct image *image, struct taketwo_options *opts, void *priv)
+int taketwo_index(struct image *image, const struct taketwo_options *opts,
+ void *priv)
{
Crystal *cr;
UnitCell *cell;
diff --git a/libcrystfel/src/taketwo.h b/libcrystfel/src/taketwo.h
index a03292a8..6c9d7513 100644
--- a/libcrystfel/src/taketwo.h
+++ b/libcrystfel/src/taketwo.h
@@ -45,7 +45,8 @@ struct taketwo_options
extern void *taketwo_prepare(IndexingMethod *indm, UnitCell *cell,
struct detector *det, float *ltl);
-extern int taketwo_index(struct image *image, struct taketwo_options *opts, void *priv);
+extern int taketwo_index(struct image *image,
+ const struct taketwo_options *opts, void *priv);
extern void taketwo_cleanup(IndexingPrivate *pp);
#endif /* TAKETWO_H */