From aaf02b5fe6bec4745e0e88cf345e420715867b2e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 22 Jun 2022 14:48:40 +0200 Subject: indexamajig: Wrap ASAP::O parameters up inside separate structure --- src/im-asapo.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/im-asapo.h') 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 #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; -- cgit v1.2.3