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

int wrfile_install ( const struct comm comm,
const struct hostinfo hostinfo,
unsigned  device,
unsigned  secondary 

install the wrfile extension

comm the communication primitives
hostinfo information on the remote host
device device number
secondary secondary address
zero on success, nonzero on error

Definition at line 45 of file wrfile.c.

References B128, B256, C128, C264, C64, ext(), hostinfo::host, P500, PET, PET3, PET4, Vic, wrfile_cbm, wrfile_cbm2, wrfile_pet3000, and wrfile_pet4000.

Referenced by main().

  switch (hostinfo->host) {
  case PET:
  case PET3:
    return ext (comm, hostinfo, wrfile_pet3000, sizeof wrfile_pet3000,
            device, secondary) ? 2 : 0;
  case PET4:
    return ext (comm, hostinfo, wrfile_pet4000, sizeof wrfile_pet4000,
            device, secondary) ? 2 : 0;
  case Vic: case C64: case C128: case C264:
    return ext (comm, hostinfo, wrfile_cbm, sizeof wrfile_cbm,
            device, secondary) ? 2 : 0;
  case P500: case B128: case B256:
    return ext (comm, hostinfo, wrfile_cbm2, sizeof wrfile_cbm2,
            device, secondary) ? 2 : 0;

  fprintf (stderr, "wrfile: unsupported server %u\n", hostinfo->host);
  return 1;

Generated by  Doxygen 1.6.0   Back to index