diff options
Diffstat (limited to 'src/gui_project.c')
-rw-r--r-- | src/gui_project.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui_project.c b/src/gui_project.c index 3e8eb970..c8257d49 100644 --- a/src/gui_project.c +++ b/src/gui_project.c @@ -1077,6 +1077,20 @@ int add_merge_result(struct crystfelproject *proj, } +struct gui_merge_result *find_merge_result_by_name(struct crystfelproject *proj, + const char *name) +{ + int i; + + for ( i=0; i<proj->n_merge_results; i++ ) { + if ( strcmp(proj->merge_results[i].name, name) == 0 ) { + return &proj->merge_results[i]; + } + } + return NULL; +} + + static void update_result_index(struct gui_indexing_result *result) { int i; |