From ac669f51d502369b635cf9447abfd0bb94af1700 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 20 Sep 2019 16:02:59 +0200 Subject: Delegate option processing for indexing methods Involves switching from getopt_long to argp. A big improvement! --- libcrystfel/src/xgandalf.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'libcrystfel/src/xgandalf.h') diff --git a/libcrystfel/src/xgandalf.h b/libcrystfel/src/xgandalf.h index 23c5c1b0..7cc85388 100644 --- a/libcrystfel/src/xgandalf.h +++ b/libcrystfel/src/xgandalf.h @@ -34,21 +34,15 @@ #endif #include +#include /** * \file xgandalf.h * XGANDALF indexer interface */ -struct xgandalf_options { - unsigned int sampling_pitch; - unsigned int grad_desc_iterations; - float tolerance; - unsigned int no_deviation_from_provided_cell; - float minLatticeVectorLength_A; - float maxLatticeVectorLength_A; - int maxPeaksForIndexing; -}; +typedef struct xgandalf_options XGandalfOptions; +extern struct argp xgandalf_argp; #include "index.h" -- cgit v1.2.3