Logo Search packages:      
Sourcecode: cbmlink version File versions  Download package

int qdisk_install ( const struct comm comm,
const struct hostinfo hostinfo 

install the code for copying 1541 tracks

comm the communication primitives
hostinfo information on the remote host
zero on success, nonzero on error

Definition at line 224 of file qdisk.c.

References B128, B256, C128, C264, C64, ext(), hostinfo::host, m_w(), P500, PET, PET3, PET4, rdfile_remove(), track1541, track_16, track_20, track_64, and Vic.

Referenced by main().

  int status = m_w (comm, track1541, sizeof track1541, 0x300);
  if (!status && !(status = rdfile_remove (comm))) {
    switch (hostinfo->host) {
    case PET: case PET3: case PET4:
    case Vic:
      return ext (comm, hostinfo, track_20, sizeof track_20, 0, 0) ? 2 : 0;
    case C64: case C128:
      return ext (comm, hostinfo, track_64, sizeof track_64, 0, 0) ? 2 : 0;
    case C264:
      return ext (comm, hostinfo, track_16, sizeof track_16, 0, 0) ? 2 : 0;
    case P500: case B128: case B256:
    fprintf (stderr, "qdisk: unsupported server %u\n", hostinfo->host);
    status = 1;
  return status;

Generated by  Doxygen 1.6.0   Back to index