home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / useful / os-include / clib / commodities_protos.h < prev    next >
C/C++ Source or Header  |  1992-09-24  |  2KB  |  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 39.108
  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. /*--- functions in V36 or higher (distributed as Release 2.0) ---*/
  28.  
  29. /*  OBJECT UTILITIES */
  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. /*  OBJECT ATTACHMENT */
  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. /*  TYPE SPECIFIC */
  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. /*  COMMON MESSAGE */
  56.  
  57. ULONG CxMsgType( CxMsg *cxm );
  58. APTR CxMsgData( CxMsg *cxm );
  59. LONG CxMsgID( CxMsg *cxm );
  60.  
  61. /*  MESSAGE ROUTING */
  62.  
  63. void DivertCxMsg( CxMsg *cxm, CxObj *headObj, CxObj *returnObj );
  64. void RouteCxMsg( CxMsg *cxm, CxObj *co );
  65. void DisposeCxMsg( CxMsg *cxm );
  66.  
  67. /*  INPUT EVENT HANDLING */
  68.  
  69. BOOL InvertKeyMap( unsigned long ansiCode, struct InputEvent *event,
  70.     struct KeyMap *km );
  71. void AddIEvents( struct InputEvent *events );
  72. /*--- functions in V38 or higher (distributed as Release 2.1) ---*/
  73. /*  MORE INPUT EVENT HANDLING */
  74. BOOL MatchIX( struct InputEvent *event, IX *ix );
  75. #endif     /* CLIB_COMMODITIES_PROTOS_H */
  76.