home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma64.dms / ma64.adf / FTPMount-1.0 / Source / request.h < prev    next >
C/C++ Source or Header  |  1995-09-06  |  1KB  |  53 lines

  1. /*
  2.  * This source file is Copyright 1995 by Evan Scott.
  3.  * All rights reserved.
  4.  * Permission is granted to distribute this file provided no
  5.  * fees beyond distribution costs are levied.
  6.  */
  7.  
  8. struct Window *connect_req(struct site_s *sp, b8 *);
  9. void close_req(struct site_s *sp, struct Window *);
  10. struct gim *make_gim(b8 *name, b32 textpen, b32 lightpen, b32 darkpen, struct Screen *s, 
  11.             struct IntuitionBase *IntuitionBase, struct GfxBase *GfxBase);
  12. void free_gim(struct gim *gim, struct IntuitionBase *IntuitionBase, struct GfxBase *GfxBase);
  13.  
  14. boolean user_pass_request(struct site_s *sp, struct Window *canw);
  15.  
  16. void __saveds status_handler(void);
  17.  
  18. #define V_gim 99040
  19.  
  20. struct gim {
  21.     magic_verify;
  22.  
  23.     struct Image im1;
  24.     struct Image im2;
  25.     struct RastPort *rp1;
  26.     struct RastPort *rp2;
  27. };
  28.  
  29. #define V_Gadget 18273
  30.  
  31. typedef struct status_message {
  32.     struct Message header;
  33.     
  34.     magic_verify;
  35.     
  36.     b16 command;
  37.     b16 data;
  38.     struct site_s *this_site;
  39. } status_message;
  40.  
  41. #define V_status_message 29549
  42.  
  43. #define SM_KILL 1
  44. #define SM_SUSPEND 2
  45. #define SM_RESUME 3
  46. #define SM_NEW_SITE 4
  47. #define SM_DEAD_SITE 5
  48. #define SM_STATE_CHANGE 6
  49. #define SM_PROGRESS 7
  50.  
  51. #define MAX_USER_LENGTH 40
  52. #define MAX_PASS_LENGTH 40
  53.