aboutsummaryrefslogtreecommitdiff
path: root/src/im-asapo.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2022-06-22 14:48:40 +0200
committerThomas White <taw@physics.org>2022-06-22 15:26:10 +0200
commitaaf02b5fe6bec4745e0e88cf345e420715867b2e (patch)
treefc81995fce18d16ee41dc868bf1f8827a31fb389 /src/im-asapo.h
parent60df21975c5cbac190bf1e7b4d2e6627f1685dcf (diff)
indexamajig: Wrap ASAP::O parameters up inside separate structure
Diffstat (limited to 'src/im-asapo.h')
-rw-r--r--src/im-asapo.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/im-asapo.h b/src/im-asapo.h
index 0a11829f..f2e9e40a 100644
--- a/src/im-asapo.h
+++ b/src/im-asapo.h
@@ -34,14 +34,19 @@
#include <config.h>
#endif
+struct im_asapo_params
+{
+ char *endpoint;
+ char *token;
+ char *beamtime;
+ char *group_id;
+ char *source;
+ char *stream;
+};
+
#if defined(HAVE_ASAPO)
-extern struct im_asapo *im_asapo_connect(const char *endpoint,
- const char *token,
- const char *beamtime,
- const char *group_id,
- const char *data_source,
- const char *stream);
+extern struct im_asapo *im_asapo_connect(struct im_asapo_params *params);
extern void im_asapo_shutdown(struct im_asapo *a);
@@ -51,12 +56,7 @@ extern void *im_asapo_fetch(struct im_asapo *a, size_t *pdata_size,
#else /* defined(HAVE_ASAPO) */
-static UNUSED struct im_asapo *im_asapo_connect(const char *endpoint,
- const char *token,
- const char *beamtime,
- const char *group_id,
- const char *data_source,
- const char *stream)
+static UNUSED struct im_asapo *im_asapo_connect(struct im_asapo_params *params)
{
ERROR("This installation of CrystFEL was compiled without ASAP::O support.\n");
return NULL;