home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / internet-tools / connect-line / cl / devkit / c / include / cl_ipc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  1.2 KB  |  45 lines

  1. /*
  2. **    cl_ipc.library
  3. **
  4. **  Connectline Inter Process Message Support Library
  5. **
  6. */
  7.  
  8.  
  9. #ifndef _NO_PRAG
  10. extern struct Library *CLIPCBase;
  11. #pragma libcall CLIPCBase CLIPC_Setup 1e 9802
  12. #pragma libcall CLIPCBase CLIPC_SetInfoA 24 A9803
  13. #pragma tagcall CLIPCBase CLIPC_SetInfo 24 A9803
  14. #pragma libcall CLIPCBase CLIPC_AddAccLog 2a 09803
  15. #pragma libcall CLIPCBase CLIPC_GetPortDefs 30 0
  16. #pragma libcall CLIPCBase CLIPC_SendMsg 36 98321006
  17. #pragma libcall CLIPCBase CLIPC_SendOnlineMessage 3c A9803
  18. #pragma libcall CLIPCBase CLIPC_BBSChatMsg 42 801
  19. #endif
  20.  
  21. #ifndef _NO_PROTO
  22. void CLIPC_Setup( APTR, APTR );
  23. void CLIPC_SetInfoA( STRPTR, STRPTR, APTR );
  24. void CLIPC_SetInfo( STRPTR, STRPTR, ... );
  25. void CLIPC_AddAccLog( STRPTR portid, STRPTR name, UBYTE type );
  26. struct portdef * CLIPC_GetPortDefs( void );
  27. int CLIPC_SendMsg( int port, int cmd, int p1, int p2, STRPTR u1, STRPTR u2 );
  28. int CLIPC_SendOnlineMessage( STRPTR touser, STRPTR text, STRPTR fromuser );
  29. void CLIPC_BBSChatMsg( STRPTR msg );
  30. #endif
  31.  
  32. struct ServerMsg
  33. {
  34.     struct Message ExecMessage;
  35.     UWORD pad;
  36.     int Command;
  37.     int Params1;
  38.     int Params2;
  39.     char User1[ 128 ];
  40.     char User2[ 128 ];
  41. };
  42.  
  43. #define SERVERCOMMAND_BASE (0x10000)
  44. #define SERVERCOMMAND_REVIEW (SERVERCOMMAND_BASE+1)
  45.