From 548be7934456e116c5a8832c6e8e2f82f165c516 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 6 Jul 2017 17:15:10 +0200 Subject: Use void pointers for indexing engine private stuff --- libcrystfel/src/taketwo.c | 8 ++++---- libcrystfel/src/taketwo.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c index c1011a96..434c5b0d 100644 --- a/libcrystfel/src/taketwo.c +++ b/libcrystfel/src/taketwo.c @@ -1523,7 +1523,7 @@ static UnitCell *run_taketwo(UnitCell *cell, struct rvec *rlps, int rlp_count) /* CrystFEL interface hooks */ -int taketwo_index(struct image *image, IndexingPrivate *ipriv) +int taketwo_index(struct image *image, void *priv) { Crystal *cr; UnitCell *cell; @@ -1575,8 +1575,8 @@ int taketwo_index(struct image *image, IndexingPrivate *ipriv) } -IndexingPrivate *taketwo_prepare(IndexingMethod *indm, UnitCell *cell, - struct detector *det, float *ltl) +void *taketwo_prepare(IndexingMethod *indm, UnitCell *cell, + struct detector *det, float *ltl) { struct taketwo_private *tp; @@ -1624,7 +1624,7 @@ IndexingPrivate *taketwo_prepare(IndexingMethod *indm, UnitCell *cell, tp->cell = cell; tp->indm = *indm; - return (IndexingPrivate *)tp; + return tp; } diff --git a/libcrystfel/src/taketwo.h b/libcrystfel/src/taketwo.h index 35f7cbe3..4c06e334 100644 --- a/libcrystfel/src/taketwo.h +++ b/libcrystfel/src/taketwo.h @@ -33,9 +33,9 @@ #include "cell.h" -extern IndexingPrivate *taketwo_prepare(IndexingMethod *indm, UnitCell *cell, - struct detector *det, float *ltl); -extern int taketwo_index(struct image *image, IndexingPrivate *ipriv); +extern void *taketwo_prepare(IndexingMethod *indm, UnitCell *cell, + struct detector *det, float *ltl); +extern int taketwo_index(struct image *image, void *priv); extern void taketwo_cleanup(IndexingPrivate *pp); #endif /* TAKETWO_H */ -- cgit v1.2.3