From d6f981253bb583ebb42f3c64ab5c64fc67f65cf6 Mon Sep 17 00:00:00 2001 From: gombasg Date: Tue, 4 Apr 2006 13:11:19 +0000 Subject: [PATCH] Add API support for receiving messages git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@409 a7169a2c-3604-0410-bc95-c702d8d87f7a --- dcapi/include/dc_client.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dcapi/include/dc_client.h b/dcapi/include/dc_client.h index 1167bbfbe9..0fdd5d2c2d 100644 --- a/dcapi/include/dc_client.h +++ b/dcapi/include/dc_client.h @@ -37,7 +37,8 @@ typedef enum { typedef enum { DC_EVENT_NONE, DC_EVENT_DO_CHECKPOINT, - DC_EVENT_FINISH + DC_EVENT_FINISH, + DC_EVENT_MESSAGE } DC_Event; @@ -105,6 +106,13 @@ int DC_sendMessage(const char *message); */ DC_Event DC_checkEvent(void **data); +/** Destroys the event-specific data returned by DC_checkEvent() + * + * @event: the received event + * @data: the data returned by DC_checkEvent() + */ +void DC_destroyEvent(DC_Event event, void *data); + /** Indicates that an application-level checkpoint has completed. * * @fileName: the name of the checkpoint file. This should be the value