aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/xgandalf.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-09-20 16:02:59 +0200
committerThomas White <taw@physics.org>2019-09-20 17:04:17 +0200
commitac669f51d502369b635cf9447abfd0bb94af1700 (patch)
tree47d4ddc6f5c00f052dee780bfa9b6f37536eab25 /libcrystfel/src/xgandalf.h
parentf901c64ce6ce7b0acfdef5051af350e4b65f8590 (diff)
Delegate option processing for indexing methods
Involves switching from getopt_long to argp. A big improvement!
Diffstat (limited to 'libcrystfel/src/xgandalf.h')
-rw-r--r--libcrystfel/src/xgandalf.h12
1 files changed, 3 insertions, 9 deletions
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 <stddef.h>
+#include <argp.h>
/**
* \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"