home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / System / MorphOS / Developer / include / public / quark / semaphore.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-11-02  |  787 b   |  40 lines

  1. #ifndef    QUARK_SEMAPHORE_H
  2. #define    QUARK_SEMAPHORE_H
  3.  
  4. #include <private/quark/tags.h>
  5.  
  6. /* the next line is fixed by SED when the file
  7.  * is copied over to public
  8.  */
  9. typedef void            *q_semaphore_t;
  10.  
  11. #define QSEMAPHORETAG_DUMMY    (0x5000)
  12.  
  13. /* Sequence: QSEMAPHORETAG_ERROR,u_int32_t*
  14.  * Function: Create
  15.  *           Write the error id if an operation failed for some
  16.  *           reason.
  17.  *
  18.  */
  19.  
  20. #define QSEMAPHORETAG_ERROR    (QSEMAPHORETAG_DUMMY+0x0)
  21.  
  22. /* Sequence: QSEMAPHORETAG_NAME,char*
  23.  * Function: Create
  24.  *           Define a public name port
  25.  *
  26.  */
  27.  
  28. #define QSEMAPHORETAG_NAME    (QSEMAPHORETAG_DUMMY+0x1)
  29.  
  30. #define    QSEMAPHOREERROR_OK        0
  31. #define    QSEMAPHOREERROR_MEMORY        1
  32. /* public name collision
  33.  */
  34. #define    QSEMAPHOREERROR_NAMECOLLISION    2
  35.  
  36. #define    QSEMAPHORE_NOTIMPLEMENTED    100
  37.  
  38. #endif
  39.  
  40.