From c9dee7dba94cdd314d2769d30695d995d491b9cb Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 24 Jul 2017 11:54:18 +0200 Subject: Make struct taketwo_options const --- libcrystfel/src/taketwo.c | 5 +++-- libcrystfel/src/taketwo.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'libcrystfel') 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 */ -- cgit v1.2.3