aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-03-12 16:21:35 +0100
committerThomas White <taw@physics.org>2021-03-12 16:22:46 +0100
commitfdfa088f97aa2525b9b19e9383cbc203b354b61d (patch)
tree9453f0a7a29765c2f3a82243fad90874359ef17e /libcrystfel/src
parent59e3ad349e170b46b670152d0d8729a352105c29 (diff)
FromFile indexer: Add skeleton cleanup procedure
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/index.c2
-rw-r--r--libcrystfel/src/indexers/fromfile.c10
-rw-r--r--libcrystfel/src/indexers/fromfile.h2
3 files changed, 13 insertions, 1 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 341abf58..f9001968 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -510,7 +510,7 @@ void cleanup_indexing(IndexingPrivate *ipriv)
break;
case INDEXING_FILE :
- free(ipriv->engine_private[n]);
+ fromfile_cleanup(ipriv->engine_private[n]);
break;
case INDEXING_TAKETWO :
diff --git a/libcrystfel/src/indexers/fromfile.c b/libcrystfel/src/indexers/fromfile.c
index d43b17c5..73cee547 100644
--- a/libcrystfel/src/indexers/fromfile.c
+++ b/libcrystfel/src/indexers/fromfile.c
@@ -365,3 +365,13 @@ int fromfile_index(struct image *image, void *mpriv, int crystal_number)
return ncryst;
}
+
+
+void fromfile_cleanup(void *mpriv)
+{
+ struct fromfile_private *dp = mpriv;
+
+ /* FIXME: Implementation */
+
+ free(dp);
+}
diff --git a/libcrystfel/src/indexers/fromfile.h b/libcrystfel/src/indexers/fromfile.h
index b91f10ae..deb7b105 100644
--- a/libcrystfel/src/indexers/fromfile.h
+++ b/libcrystfel/src/indexers/fromfile.h
@@ -42,5 +42,7 @@ extern void *fromfile_prepare(char *solution_filename, UnitCell *cell);
extern int fromfile_index(struct image *image, void *mpriv, int crystal_number);
+extern void fromfile_cleanup(void *mpriv);
+
#endif /* FROMFILE_H */