diff --git a/pcr/Makefile.am b/pcr/Makefile.am index 79d6325a3..7963e9f9b 100644 --- a/pcr/Makefile.am +++ b/pcr/Makefile.am @@ -1,6 +1,6 @@ lib_LTLIBRARIES = libhamlib-pcr.la -libhamlib_pcr_la_SOURCES = pcr.c pcr1000.c +libhamlib_pcr_la_SOURCES = pcr.c pcr1000.c pcr100.c libhamlib_pcr_la_LDFLAGS = -avoid-version # -module lib_LIBRARIES = libhamlib-pcr.a -libhamlib_pcr_a_SOURCES = pcr.c pcr1000.c +libhamlib_pcr_a_SOURCES = pcr.c pcr1000.c pcr100.c noinst_HEADERS = pcr.h diff --git a/pcr/pcr.c b/pcr/pcr.c index 3ccd7b859..128bd12b7 100644 --- a/pcr/pcr.c +++ b/pcr/pcr.c @@ -6,7 +6,7 @@ * via serial interface to an Icom PCR-1xxx radio. * * - * $Id: pcr.c,v 1.3 2001-04-26 21:32:32 f4cfe Exp $ + * $Id: pcr.c,v 1.4 2001-06-02 17:52:55 f4cfe Exp $ * * * @@ -310,7 +310,7 @@ int pcr_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) * pcr_get_info * Assumes rig!=NULL */ -unsigned char *pcr_get_info(RIG *rig) +const char *pcr_get_info(RIG *rig) { struct pcr_priv_data *priv; unsigned char ackbuf[16]; @@ -401,6 +401,7 @@ int init_pcr(void *be_handle) { rig_debug(RIG_DEBUG_VERBOSE, "pcr: _init called\n"); + rig_register(&pcr100_caps); rig_register(&pcr1000_caps); return RIG_OK; diff --git a/pcr/pcr.h b/pcr/pcr.h index 794ad7efc..e54a845b9 100644 --- a/pcr/pcr.h +++ b/pcr/pcr.h @@ -3,10 +3,10 @@ * * pcr.h - Copyright (C) 2001 Stephane Fillod * This shared library provides an API for communicating - * via serial interface to an ICOM using the "CI-V" interface. + * via serial interface to an ICOM using the PCR1000 protocol. * * - * $Id: pcr.h,v 1.1 2001-03-02 18:26:18 f4cfe Exp $ + * $Id: pcr.h,v 1.2 2001-06-02 17:52:55 f4cfe Exp $ * * * This program is free software; you can redistribute it and/or @@ -44,12 +44,13 @@ int pcr_set_freq(RIG *rig, vfo_t vfo, freq_t freq); int pcr_get_freq(RIG *rig, vfo_t vfo, freq_t *freq); int pcr_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width); int pcr_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width); -unsigned char *pcr_get_info(RIG *rig); +const char *pcr_get_info(RIG *rig); extern const struct rig_caps pcr1000_caps; +extern const struct rig_caps pcr100_caps; -extern int init_icom(void *be_handle); +extern int init_pcr(void *be_handle); #endif /* _PCR_H */