diff options
author | Thomas White <taw@physics.org> | 2020-06-16 16:25:20 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:44 +0200 |
commit | 9d958b9db93e2009f403ad81fc7846036914f8fe (patch) | |
tree | be210d70f13488710a445bf7a398167239d13fa2 /src/crystfel_gui.c | |
parent | 43dca1cd95610a2c736e53160ecdbfb04f7a2c1e (diff) |
Remove events.c, part 2
New event parsing, done at the last minute in image-hdf5.c
Diffstat (limited to 'src/crystfel_gui.c')
-rw-r--r-- | src/crystfel_gui.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index 87f57e7c..77a064f3 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -138,19 +138,21 @@ static void add_all_events(struct crystfelproject *proj, const char *filename, const DataTemplate *dtempl) { - struct event_list *events; + char **events; int i; + int n_events; - events = image_expand_frames(dtempl, filename); + events = image_expand_frames(dtempl, filename, &n_events); if ( events == NULL ) { ERROR("Couldn't expand event list\n"); return; } - for ( i=0; i<events->num_events; i++ ) { - add_file_to_project(proj, filename, - get_event_string(events->events[i])); + for ( i=0; i<n_events; i++ ) { + add_file_to_project(proj, filename, events[i]); + free(events[i]); } + free(events); } |