home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / notify.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-08  |  852 b   |  34 lines

  1. /*
  2.  * Copyright (c) 1995, NeXT Computer, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * Derived from the CMU mach headers.
  6.  */
  7.  
  8. #ifndef _NOTIFY_H
  9. #define _NOTIFY_H
  10.  
  11. /*
  12.  * Notifications sent upon interesting system events.  (Not all of these are
  13.  * implemented by the PDO mach emulation.)
  14.  */
  15.  
  16. #define NOTIFY_FIRST             0100
  17. #define NOTIFY_PORT_DELETED      ( NOTIFY_FIRST + 001 )
  18. #define NOTIFY_MSG_ACCEPTED      ( NOTIFY_FIRST + 002 )
  19. #define NOTIFY_OWNERSHIP_RIGHTS  ( NOTIFY_FIRST + 003 )
  20. #define NOTIFY_RECEIVE_RIGHTS    ( NOTIFY_FIRST + 004 )
  21. #define NOTIFY_PORT_DESTROYED    ( NOTIFY_FIRST + 005 )
  22. #define NOTIFY_NO_MORE_SENDERS   ( NOTIFY_FIRST + 006 )
  23. #define NOTIFY_LAST              ( NOTIFY_FIRST + 015 )
  24.  
  25. typedef struct {
  26.     msg_header_t notify_header;
  27.     msg_type_t notify_type;
  28.     port_t notify_port;
  29. } notification_t;
  30.  
  31.  
  32. #endif _NOTIFY_H
  33.  
  34.