home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 426.lha / ClipFile_v1.02 / src / cf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-10-07  |  1.1 KB  |  38 lines

  1. /* cf.h */
  2.  
  3. /* cbio.c: function prototypes */
  4. STRPTR PrintID (LONG id, STRPTR);
  5. LONG CBOpen ( LONG unit );
  6. VOID CBClose ( void );
  7. LONG CBWrite ( struct Buffer *buff );
  8. LONG CBWriteFTXT ( STRPTR string );
  9. LONG CBWriteA ( STRPTR stream , LONG length );
  10. VOID CBClear (VOID);
  11. struct Buffer *CBRead ( BOOL cook );
  12. LONG writeLong ( LONG *ldata );
  13.  
  14. #define    CF_READ        1
  15. #define    CF_WRITE    2
  16. #define    CF_QUERY    3
  17. #define    CF_NOTIFY    4
  18. #define    CF_CLEAR    5
  19.  
  20. #define    MAKE_ID(a,b,c,d)    ((a<<24L) | (b<<16L) | (c<<8L) | d)
  21. #define    ID_FORM    MAKE_ID('F','O','R','M')
  22. #define    ID_FTXT    MAKE_ID('F','T','X','T')
  23. #define    ID_CHRS    MAKE_ID('C','H','R','S')
  24.  
  25. /* Return the contents of the clipboard */
  26. struct Buffer
  27. {
  28.     LONG b_ClipID;        /* Clip ID of assigned to contents */
  29.     LONG b_Type;        /* Content type of buffer */
  30.     VOID *b_Buff;        /* Pointer to the buffer area */
  31.     LONG b_Size;        /* Size of buffer (plus structure) */
  32.     STRPTR b_Author;        /* Author of the buffer */
  33.     LONG b_ASize;        /* Size of the author buffer */
  34.     STRPTR b_Project;        /* Name of the project */
  35.     LONG b_PSize;        /* Size of the project buffer */
  36. };
  37.  
  38.