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

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

install the rdfile 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 rdfile.c.

References B128, B256, C128, C264, C64, ext(), hostinfo::host, P500, PET, PET3, PET4, rdfile_cbm, rdfile_cbm2, rdfile_pet3000, rdfile_pet4000, and Vic.

Referenced by main().

  switch (hostinfo->host) {
  case PET:
  case PET3:
    return ext (comm, hostinfo, rdfile_pet3000, sizeof rdfile_pet3000,
            device, secondary) ? 2 : 0;
  case PET4:
    return ext (comm, hostinfo, rdfile_pet4000, sizeof rdfile_pet4000,
            device, secondary) ? 2 : 0;
  case Vic: case C64: case C128: case C264:
    return ext (comm, hostinfo, rdfile_cbm, sizeof rdfile_cbm,
            device, secondary) ? 2 : 0;
  case P500: case B128: case B256:
    return ext (comm, hostinfo, rdfile_cbm2, sizeof rdfile_cbm2,
            device, secondary) ? 2 : 0;

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

Generated by  Doxygen 1.6.0   Back to index