home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / clib / commodities_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  1.7 KB  |  76 lines

  1. #ifndef CLIB_COMMODITIES_PROTOS_H
  2. #define CLIB_COMMODITIES_PROTOS_H
  3. /*
  4. ** $VER: commodities_protos.h 38.3 (24.10.91)
  5. ** Includes Release 38.56
  6. **
  7. ** C prototypes. For use with 32 bit integers only.
  8. **
  9. ** (C) Copyright 1990-1992 Commodore-Amiga, Inc.
  10. ** All Rights Reserved
  11. */
  12. #ifndef EXEC_TYPES_H
  13. #include <exec/types.h>
  14. #endif
  15. #ifndef EXEC_NODES_H
  16. #include <exec/nodes.h>
  17. #endif
  18. #ifndef LIBRARIES_COMMODITIES_H
  19. #include <libraries/commodities.h>
  20. #endif
  21. #ifndef DEVICES_INPUTEVENT_H
  22. #include <devices/inputevent.h>
  23. #endif
  24. #ifndef DEVICES_KEYMAP_H
  25. #include <devices/keymap.h>
  26. #endif
  27.  
  28.  
  29.  
  30.  
  31. CxObj *CreateCxObj( unsigned long type, long arg1, long arg2 );
  32. CxObj *CxBroker( struct NewBroker *nb, LONG *error );
  33. LONG ActivateCxObj( CxObj *co, long true );
  34. void DeleteCxObj( CxObj *co );
  35. void DeleteCxObjAll( CxObj *co );
  36. ULONG CxObjType( CxObj *co );
  37. LONG CxObjError( CxObj *co );
  38. void ClearCxObjError( CxObj *co );
  39. LONG SetCxObjPri( CxObj *co, long pri );
  40.  
  41.  
  42.  
  43. void AttachCxObj( CxObj *headObj, CxObj *co );
  44. void EnqueueCxObj( CxObj *headObj, CxObj *co );
  45. void InsertCxObj( CxObj *headObj, CxObj *co, CxObj *pred );
  46. void RemoveCxObj( CxObj *co );
  47.  
  48.  
  49.  
  50. void SetTranslate( CxObj *translator, struct InputEvent *events );
  51. void SetFilter( CxObj *filter, STRPTR text );
  52. void SetFilterIX( CxObj *filter, IX *ix );
  53. LONG ParseIX( STRPTR description, IX *ix );
  54.  
  55.  
  56.  
  57. ULONG CxMsgType( CxMsg *cxm );
  58. APTR CxMsgData( CxMsg *cxm );
  59. LONG CxMsgID( CxMsg *cxm );
  60.  
  61.  
  62.  
  63. void DivertCxMsg( CxMsg *cxm, CxObj *headObj, CxObj *returnObj );
  64. void RouteCxMsg( CxMsg *cxm, CxObj *co );
  65. void DisposeCxMsg( CxMsg *cxm );
  66.  
  67.  
  68.  
  69. BOOL InvertKeyMap( unsigned long ansiCode, struct InputEvent *event,
  70.  struct KeyMap *km );
  71. void AddIEvents( struct InputEvent *events );
  72.  
  73.  
  74. BOOL MatchIX( struct InputEvent *event, IX *ix );
  75. #endif 
  76.