
/******************************************************************************/
/******************************************************************************/
/*****************     Copyright 2004, 2005 Chronolytics Inc.   ***************/
/*****************     All Right Reserved                       ***************/
/******************************************************************************/
/******************************************************************************/
#ifndef RTREACTIVERESPONSE_H
#define RTREACTIVERESPONSE_H

#include <RTCommon.h>
#include <RTMagic.h>
#include <RTEvent.h>
#include <RTReactiveTask.h>

static volatile const char __attribute__ ((unused)) rcsid_RTREACTIVERESPONSE_H[]  = "$Id: RTReactiveResponse.h,v 1.8 2005/07/19 00:35:10 dave Exp $";

#define RTReactiveResponse_MAGIC MAGIC("Resp")    /* private struct response  */

/* constructors for getting a response reactive task */
RTReactiveTask *RTReactiveResponse_ReactiveTask(RTClockMicroSecs usec_response,
    const char *event_name, void (*event_callback)(), void *this, void *default_arg);

RTReactiveTask *RTReactiveResponse_ReactiveTask_From_RTEvent(RTClockMicroSecs usec_response,
RTEvent *evp);

void RTReactiveResponse_Suspend(void);

#endif /* RTREACTIVERESPONSE_H */


