home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / software / on-line / amster / src / download.h < prev    next >
C/C++ Source or Header  |  2000-01-21  |  728b  |  41 lines

  1. /*
  2. ** Download Header
  3. */
  4.  
  5. #include <sys/types.h>
  6. #include <libraries/dos.h>
  7.  
  8. typedef struct dldata_struct {
  9.     struct dldata_struct *next;
  10.     int abort;
  11.     long sock;
  12.     u_long ip;
  13.     int state;
  14.     unsigned long size,cur;
  15.     unsigned long *window;
  16.     BPTR f;
  17.     char title[256];
  18.     char user[20];
  19.     char info[1024];
  20. } *dldata, _dldata;
  21.  
  22. struct dl_data {
  23.     dldata song;
  24.     unsigned long *stat,*but,*lvl,*sz;
  25. };
  26.  
  27. extern dldata dl_list;
  28.  
  29. #define DL_SONG 0x1001
  30. #define DL_ABORT 0x1002
  31. #define DL_CLOSE 0x1042
  32. #define DL_UPDATE 0x1003
  33. #define DL_STAT 0x1004
  34. #define DL_GAUGE 0x1005
  35.  
  36. void dl_addq(songdata sd);
  37. void dl_startq(char *title, char *user, u_long ip, int port);
  38. dldata dl_find(char *title, char *user);
  39. void dl_pollall(void);
  40. int dl_flush(void);
  41.