diff options
Diffstat (limited to 'libcrystfel/src/events.h')
-rw-r--r-- | libcrystfel/src/events.h | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/libcrystfel/src/events.h b/libcrystfel/src/events.h deleted file mode 100644 index 4e5782b5..00000000 --- a/libcrystfel/src/events.h +++ /dev/null @@ -1,112 +0,0 @@ -/* - * events.h - * - * Event properties - * - * Copyright © 2012-2020 Deutsches Elektronen-Synchrotron DESY, - * a research centre of the Helmholtz Association. - * - * Authors: - * 2014 Valerio Mariani - * - * This file is part of CrystFEL. - * - * CrystFEL is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * CrystFEL is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with CrystFEL. If not, see <http://www.gnu.org/licenses/>. - * - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#ifndef EVENTS_H -#define EVENTS_H - -/** - * \file events.h - * Event description structures - */ - -struct event -{ - char **path_entries; - int path_length; - int *dim_entries; - int dim_length; -}; - -/* FIXME: Deprecated */ -struct event_list -{ - struct event **events; - int num_events; -}; - -/* FIXME: Deprecated */ -struct filename_plus_event -{ - char *filename; - struct event *ev; -}; - -enum dimension_id -{ - HYSL_UNDEFINED = -99, - HYSL_PLACEHOLDER = -98, - HYSL_FS = -1, - HYSL_SS = -2 -}; - -struct dim_structure -{ - int *dims; - int num_dims; -}; - -extern struct event *initialize_event(void); -extern int push_path_entry_to_event(struct event *ev, const char *entry); -extern int pop_path_entry_from_event(struct event *ev); -extern int push_dim_entry_to_event(struct event *ev, int entry); -extern int pop_dim_entry_from_event(struct event *ev); -extern struct event *copy_event(struct event *ev); -extern void free_event(struct event *ev); -extern char *get_event_string(struct event *ev); -extern struct event *get_event_from_event_string(const char *ev_string); -extern char *event_path_placeholder_subst(const char *ev_name, - const char *data); -extern char *retrieve_full_path(struct event *ev, const char *data); - - -extern struct filename_plus_event *initialize_filename_plus_event(void); -extern void free_filename_plus_event(struct filename_plus_event *fpe); - - -extern struct event_list *initialize_event_list(void); -extern int append_event_to_event_list(struct event_list *ev_list, - struct event *ev); -extern int add_non_existing_event_to_event_list(struct event_list *ev_list, - struct event *ev); -extern struct event_list *copy_event_list(struct event_list *el); -extern int find_event(struct event *ev, struct event_list *el); -extern void free_event_list(struct event_list *el); - - -extern struct dim_structure *initialize_dim_structure(void); -extern struct dim_structure *default_dim_structure(void); -extern int set_dim_structure_entry(struct dim_structure *hsd, - int dim_entry, const char *val_string); -extern void free_dim_structure_entry(struct dim_structure *hsd); -extern void free_dim_structure(struct dim_structure *hsd); - -#endif /* EVENTS_H */ |