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
This commit is contained in:
gombasg 2006-04-04 13:11:19 +00:00 committed by Adam Visegradi
parent d819db03fa
commit d6f981253b
1 changed files with 9 additions and 1 deletions

View File

@ -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