#ifndef __event_h
#define __event_h
/*
  thevent library, a replacement for Acorn's eventlib

  By Tony Houghton <tonyh@tcp.co.uk>
  271 Upper Weston Lane
  Southampton
  SO19 9HY


  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Library General Public
  License as published by the Free Software Foundation; either
  version 2 of the License, or (at your option) any later version.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Library General Public License for more details.

  You should have received a copy of the GNU Library General Public
  License along with this library; if not, write to the Free
  Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  MA 02111-1307, USA
*/

/*
  Notes
  -----

  This header allows existing eventlib-using code to be recompiled with thevent.
  No rewriting is necessary but it must be recompiled.

  Your include path must be set up so that this file takes precedence over
  Acorn's original "event.h".
*/

/*

$Header: ADFS::Nisu.\044.AcornC_C++.Libraries.thevent.RCS.event,v.h 1.1 1998/05/11 21:54:53 root Exp root $

$Log: event,v.h $
Revision 1.1  1998/05/11 21:54:53  root
Initial revision


*/

#ifndef H_thevent_H
#include "thevent.h"
#endif

typedef thevent_WimpHandler WimpEventHandler;
typedef thevent_ToolboxHandler ToolboxEventHandler;
typedef thevent_MessageHandler WimpMessageHandler;

/*
  The "function" macros don't take parameters just in case you should want to
  take their address for some reason.
*/

#define event_poll thevent_poll
#define event_poll_idle thevent_poll_idle

#define event_set_mask(v) thevent_set_mask(0xffffffff, (v))
#define event_get_mask thevent_get_mask


#define event_register_wimp_handler thevent_claim_wimp
#define event_deregister_wimp_handler thevent_release_wimp

#define event_register_toolbox_handler thevent_claim_toolbox
#define event_deregister_toolbox_handler thevent_release_toolbox

#define event_register_message_handler thevent_claim_message
#define event_deregister_message_handler thevent_release_message


#define event_initialise thevent_initialise



#endif
