aboutsummaryrefslogtreecommitdiff
path: root/src/im-asapo.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-06-06 13:41:52 +0200
committerThomas White <taw@physics.org>2023-06-06 13:41:52 +0200
commit117ed0d0339163e04290349f9fe468b4bb6982e7 (patch)
treeb96e7dfb22cb27d8272a21f155817f7eec257e3e /src/im-asapo.h
parentde407aa9fa93192aad6773a53fe51295d9c8cb8e (diff)
parentb5550e4399415fe4863057d6cbd406faf3f2df31 (diff)
Merge branch 'asapo-producer'
Diffstat (limited to 'src/im-asapo.h')
-rw-r--r--src/im-asapo.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/im-asapo.h b/src/im-asapo.h
index cda9fbd9..43691700 100644
--- a/src/im-asapo.h
+++ b/src/im-asapo.h
@@ -43,8 +43,11 @@ struct im_asapo_params
char *source;
char *stream;
int wait_for_stream;
+ int write_output_stream;
};
+struct im_asapo;
+
#if defined(HAVE_ASAPO)
extern struct im_asapo *im_asapo_connect(struct im_asapo_params *params);
@@ -53,7 +56,9 @@ extern void im_asapo_shutdown(struct im_asapo *a);
extern void *im_asapo_fetch(struct im_asapo *a, size_t *pdata_size,
char **pmeta, char **pfilename, char **pevent,
- int *pfinished);
+ int *pfinished, int *pmessageid);
+
+extern void im_asapo_send(struct im_asapo *a, struct image *image, int hit);
#else /* defined(HAVE_ASAPO) */
@@ -69,16 +74,21 @@ static UNUSED void im_asapo_shutdown(struct im_asapo *a)
static UNUSED void *im_asapo_fetch(struct im_asapo *a, size_t *psize,
char **pmeta, char **pfilename, char **pevent,
- int *pfinished)
+ int *pfinished, int *pmessageid)
{
*psize = 0;
*pmeta = NULL;
*pfilename = NULL;
*pevent = NULL;
*pfinished = 1;
+ *pmessageid = 0;
return NULL;
}
+static UNUSED void im_asapo_send(struct im_asapo *a, struct image *image, int hit)
+{
+}
+
#endif /* defined(HAVE_ASAPO) */
#endif /* CRYSTFEL_ASAPO_H */