diff options
author | Thomas White <taw@physics.org> | 2021-05-28 16:59:16 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-05-28 17:00:00 +0200 |
commit | 6dd95c2333dad91539f15f198e3d584f54bcaaa7 (patch) | |
tree | 3f19bb186d0145f8a06ae97fa16499339be6b7b9 /src/gui_project.h | |
parent | 2b07915297c45477b473f4c30feeba0978e0c99a (diff) |
GUI: Store relative paths of results
This allows project folders to be relocated more easily.
At the same time, I fixed the weird ownership semantics of
add_indexing_result and add_merge_result.
Fixes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/31
Diffstat (limited to 'src/gui_project.h')
-rw-r--r-- | src/gui_project.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui_project.h b/src/gui_project.h index 2617c2d8..183c9e75 100644 --- a/src/gui_project.h +++ b/src/gui_project.h @@ -355,7 +355,7 @@ extern void clear_project_files(struct crystfelproject *proj); extern void clear_indexing_results(struct crystfelproject *proj); extern int add_indexing_result(struct crystfelproject *proj, - char *name, + const char *name, char **streams, int n_streams); @@ -370,8 +370,8 @@ extern void update_result_index(struct gui_indexing_result *result); extern struct gui_indexing_result *find_indexing_result_by_name(struct crystfelproject *proj, const char *name); -extern int add_merge_result(struct crystfelproject *proj, char *name, - char *hkl, char *hkl1, char *hkl2); +extern int add_merge_result(struct crystfelproject *proj, const char *name, + const char *hkl, const char *hkl1, const char *hkl2); extern struct gui_merge_result *find_merge_result_by_name(struct crystfelproject *proj, const char *name); |