diff options
author | Thomas White <taw@physics.org> | 2019-05-10 17:26:46 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:39:50 +0200 |
commit | 9a0a25a4c88ad7d5b62bf6b8c285ba957f98b28f (patch) | |
tree | 1d9b407f233d7bdba045661de4719a6d68688418 /libcrystfel/src/datatemplate.h | |
parent | 0e48c77bb04daf4c5dc5d71a74262404edfc049e (diff) |
Sketch out DataTemplate API
Diffstat (limited to 'libcrystfel/src/datatemplate.h')
-rw-r--r-- | libcrystfel/src/datatemplate.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate.h b/libcrystfel/src/datatemplate.h new file mode 100644 index 00000000..01292836 --- /dev/null +++ b/libcrystfel/src/datatemplate.h @@ -0,0 +1,60 @@ +/* + * datatemplate.h + * + * Template for loading data + * + * Copyright © 2019 Deutsches Elektronen-Synchrotron DESY, + * a research centre of the Helmholtz Association. + * + * Authors: + * 2019 Thomas White <taw@physics.org> + * + * 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/>. + * + */ + +#ifndef DATATEMPLATE_H +#define DATATEMPLATE_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + + +/** + * \file datatemplate.h + * Template for loading data. + */ + +/** + * This data structure is opaque. You must use the available accessor functions + * to read and write its contents. + **/ +typedef struct _datatemplate DataTemplate; + + +#ifdef __cplusplus +extern "C" { +#endif + +extern DataTemplate *data_template_new_from_file(const char *filename); +extern void data_template_free(DataTemplate *dt); + +#ifdef __cplusplus +} +#endif + +#endif /* DATATEMPLATE_H */ |