do not export ctcss and dcs data lists if dll does not support it (eg. win32), and then, workaround this

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@682 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.3
Stéphane Fillod, F8CFE 2001-10-16 19:19:46 +00:00
rodzic f0477ac863
commit 197d62af6b
6 zmienionych plików z 19 dodań i 58 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Alinco backend - main file
* Copyright (c) 2001 by Stephane Fillod
*
* $Id: alinco.c,v 1.7 2001-07-14 16:48:03 f4cfe Exp $
* $Id: alinco.c,v 1.8 2001-10-16 19:19:46 f4cfe Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -49,6 +49,8 @@
# include <cal.h>
#endif
#include "tone_tbl.h"
#include "alinco.h"

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Alinco backend - main header
* Copyright (c) 2001 by Stephane Fillod
*
* $Id: alinco.h,v 1.6 2001-07-13 19:08:14 f4cfe Exp $
* $Id: alinco.h,v 1.7 2001-10-16 19:19:46 f4cfe Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -38,6 +38,8 @@ struct alinco_priv_caps {
cal_table_t str_cal;
};
extern const tone_t common_ctcss_list[];
int alinco_set_vfo(RIG *rig, vfo_t vfo);
int alinco_get_vfo(RIG *rig, vfo_t *vfo);
int alinco_set_freq(RIG *rig, vfo_t vfo, freq_t freq);

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib CI-V backend - main file
* Copyright (c) 2000,2001 by Stephane Fillod
*
* $Id: icom.c,v 1.40 2001-10-07 21:48:34 f4cfe Exp $
* $Id: icom.c,v 1.41 2001-10-16 19:19:46 f4cfe Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -49,6 +49,8 @@
# include <cal.h>
#endif
#include "tone_tbl.h"
#include "icom.h"
#include "icom_defs.h"
#include "frame.h"

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib CI-V backend - main header
* Copyright (c) 2000,2001 by Stephane Fillod
*
* $Id: icom.h,v 1.29 2001-09-18 00:37:39 f4cfe Exp $
* $Id: icom.h,v 1.30 2001-10-16 19:19:46 f4cfe Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -61,6 +61,8 @@ extern const struct ts_sc_list r7100_ts_sc_list[];
extern const struct ts_sc_list ic756_ts_sc_list[];
extern const struct ts_sc_list ic706_ts_sc_list[];
extern const tone_t common_ctcss_list[];
int icom_init(RIG *rig);
int icom_cleanup(RIG *rig);
int icom_set_freq(RIG *rig, vfo_t vfo, freq_t freq);

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Interface - API header
* Copyright (c) 2000,2001 by Stephane Fillod and Frank Singleton
*
* $Id: rig.h,v 1.50 2001-08-08 06:07:20 f4cfe Exp $
* $Id: rig.h,v 1.51 2001-10-16 19:19:46 f4cfe Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -66,12 +66,6 @@ extern HAMLIB_EXPORT_VAR(const char) hamlib_copyright[];
typedef unsigned int tone_t;
extern HAMLIB_EXPORT_VAR(const tone_t) full_ctcss_list[];
extern HAMLIB_EXPORT_VAR(const tone_t) common_ctcss_list[];
extern HAMLIB_EXPORT_VAR(const tone_t) full_dcs_list[];
#define CTCSS_LIST_SIZE (sizeof(full_ctcss_list)/sizeof(tone_t)-1)
#define DCS_LIST_SIZE (sizeof(full_dcs_list)/sizeof(tone_t)-1)
/*
* Error codes that can be returned by the Hamlib functions
*/
@ -179,6 +173,7 @@ enum rig_type_e {
#define RIG_FLAG_TRUNKING (1<<7)
#define RIG_FLAG_APRS (1<<8)
#define RIG_FLAG_TNC (1<<9)
#define RIG_FLAG_DXCLUSTER (1<<10)
#define RIG_FLAG_TRANSCEIVER (RIG_FLAG_RECEIVER|RIG_FLAG_TRANSMITTER)
#define RIG_TYPE_MASK (RIG_FLAG_TRANSCEIVER|RIG_FLAG_SCANNER|RIG_FLAG_MOBILE|RIG_FLAG_HANDHELD|RIG_FLAG_COMPUTER|RIG_FLAG_TRUNKING)
@ -993,7 +988,7 @@ struct rig_state {
/*
* Pointer to private data
* tuff like CI_V_address for Icom goes in this *priv 51 area
* stuff like CI_V_address for Icom goes in this *priv 51 area
*/
rig_ptr_t priv;
@ -1030,7 +1025,7 @@ struct rig_callbacks {
* acting as a handle for the controlled rig.
*/
struct rig {
const struct rig_caps *caps;
struct rig_caps *caps;
struct rig_state state;
struct rig_callbacks callbacks;
};

Wyświetl plik

@ -12,7 +12,7 @@
* Hamlib Interface - main file
* Copyright (c) 2000,2001 by Stephane Fillod and Frank Singleton
*
* $Id: rig.c,v 1.44 2001-08-08 06:04:49 f4cfe Exp $
* $Id: rig.c,v 1.45 2001-10-16 19:19:46 f4cfe Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -49,6 +49,8 @@
#include "event.h"
#include "conf.h"
#include "tone_tbl.h"
/**
* \brief Hamlib release number
*/
@ -66,50 +68,6 @@ const char hamlib_copyright[] =
#define DEFAULT_SERIAL_PORT "/dev/ttyS0"
/**
* 52 CTCSS sub-audible tones
*/
const tone_t full_ctcss_list[] = {
600, 670, 693, 719, 744, 770, 797, 825, 854, 885, 915,
948, 974, 1000, 1035, 1072, 1109, 1148, 1188, 1200, 1230, 1273,
1318, 1365, 1413, 1462, 1514, 1567, 1598, 1622, 1655, 1679,
1713, 1738, 1773, 1799, 1835, 1862, 1899, 1928, 1966, 1995,
2035, 2065, 2107, 2181, 2257, 2291, 2336, 2418, 2503, 2541,
0,
};
/**
* 50 CTCSS sub-audible tones, from 67.0Hz to 254.1Hz
*
* \note Don't even think about changing a bit of this array, several
* backends depend on it. If you need to, create a copy for your
* own caps. --SF
*/
const tone_t common_ctcss_list[] = {
670, 693, 719, 744, 770, 797, 825, 854, 885, 915,
948, 974, 1000, 1035, 1072, 1109, 1148, 1188, 1230, 1273,
1318, 1365, 1413, 1462, 1514, 1567, 1598, 1622, 1655, 1679,
1713, 1738, 1773, 1799, 1835, 1862, 1899, 1928, 1966, 1995,
2035, 2065, 2107, 2181, 2257, 2291, 2336, 2418, 2503, 2541,
0,
};
/**
* 106 DCS codes
*/
const tone_t full_dcs_list[] = {
017, 023, 025, 026, 031, 032, 036, 043, 047, 050, 051, 053,
054, 065, 071, 072, 073, 074, 114, 115, 116, 122, 125, 131,
132, 134, 143, 145, 152, 155, 156, 162, 165, 172, 174, 205,
212, 223, 225, 226, 243, 244, 245, 246, 251, 252, 255, 261,
263, 265, 266, 271, 274, 306, 311, 315, 325, 331, 332, 343,
346, 351, 356, 364, 365, 371, 411, 412, 413, 423, 431, 432,
445, 446, 452, 454, 455, 462, 464, 465, 466, 503, 506, 516,
523, 526, 532, 546, 565, 606, 612, 624, 627, 631, 632, 654,
662, 664, 703, 712, 723, 731, 732, 734, 743, 754,
0,
};
/*
* Data structure to track the opened rig (by rig_open)
*/