Remove const from priv_caps to allow kenwood_init to initialize default values if they're missing

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2600 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.9
Alessandro Zummo, IZ1PRB 2009-01-28 23:30:59 +00:00
rodzic 65c49320ec
commit c6cdfe91a8
25 zmienionych plików z 50 dodań i 50 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - Elecraft K2 description
* Copyright (c) 2002-2004 by Stephane Fillod
*
* $Id: k2.c,v 1.5 2009-01-23 03:24:42 n0nb Exp $
* $Id: k2.c,v 1.6 2009-01-28 23:30:46 azummo 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
@ -39,7 +39,7 @@
#define K2_VFO (RIG_VFO_A|RIG_VFO_B)
#define K2_VFO_OP (RIG_OP_UP|RIG_OP_DOWN)
static const struct kenwood_priv_caps k2_priv_caps = {
static struct kenwood_priv_caps k2_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - Elecraft K3 description
* Copyright (c) 2002-2008 by Stephane Fillod
*
* $Id: k3.c,v 1.2 2009-01-23 03:24:42 n0nb Exp $
* $Id: k3.c,v 1.3 2009-01-28 23:30:47 azummo 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
@ -39,7 +39,7 @@
#define K3_VFO (RIG_VFO_A|RIG_VFO_B)
#define K3_VFO_OP (RIG_OP_UP|RIG_OP_DOWN)
static const struct kenwood_priv_caps k3_priv_caps = {
static struct kenwood_priv_caps k3_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - R5000 description
* Copyright (c) 2000-2004 by Stephane Fillod
*
* $Id: r5000.c,v 1.4 2009-01-23 03:24:42 n0nb Exp $
* $Id: r5000.c,v 1.5 2009-01-28 23:30:47 azummo 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
@ -47,7 +47,7 @@
#define R5000_ANTS (RIG_ANT_1|RIG_ANT_2)
static const struct kenwood_priv_caps r5000_priv_caps = {
static struct kenwood_priv_caps r5000_priv_caps = {
.cmdtrm = EOM_KEN,
.if_len = 33,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TH handheld primitives
* Copyright (c) 2001-2008 by Stephane Fillod
*
* $Id: th.c,v 1.36 2009-01-23 03:24:42 n0nb Exp $
* $Id: th.c,v 1.37 2009-01-28 23:30:47 azummo 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
@ -35,7 +35,7 @@
#include "serial.h"
#include "misc.h"
const struct kenwood_priv_caps th_priv_caps = {
static struct kenwood_priv_caps th_priv_caps = {
.cmdtrm = EOM_TH,
};
/* Note: Currently the code assumes the command termination is a

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TH-D7 description
* Copyright (c) 2000-2008 by Stephane Fillod
*
* $Id: thd7.c,v 1.17 2009-01-23 03:24:42 n0nb Exp $
* $Id: thd7.c,v 1.18 2009-01-28 23:30:52 azummo 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
@ -64,7 +64,7 @@
*/
#define THD7_VFO (RIG_VFO_A|RIG_VFO_B)
const struct kenwood_priv_caps thd7_priv_caps = {
static struct kenwood_priv_caps thd7_priv_caps = {
.cmdtrm = EOM_TH, /* Command termination character */
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TH-F7 description
* Copyright (c) 2001-2004 by Stephane Fillod
*
* $Id: thf7.c,v 1.15 2009-01-23 03:24:42 n0nb Exp $
* $Id: thf7.c,v 1.16 2009-01-28 23:30:52 azummo 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
@ -103,7 +103,7 @@ static rmode_t thf7_mode_table[KENWOOD_MODE_TABLE_MAX] = {
*/
#define THF7_VFO (RIG_VFO_A|RIG_VFO_B)
const struct kenwood_priv_caps thf7_priv_caps = {
static struct kenwood_priv_caps thf7_priv_caps = {
.cmdtrm = EOM_TH, /* Command termination character */
.mode_table = thf7_mode_table,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TH-G71 description
* Copyright (c) 2003-2008 by Stephane Fillod
*
* $Id: thg71.c,v 1.22 2009-01-23 03:24:42 n0nb Exp $
* $Id: thg71.c,v 1.23 2009-01-28 23:30:53 azummo 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
@ -57,7 +57,7 @@
#define ACKBUF_LEN 128
const struct kenwood_priv_caps thg71_priv_caps = {
static struct kenwood_priv_caps thg71_priv_caps = {
.cmdtrm = EOM_TH, /* Command termination character */
};
#define EOM "\r" /* XXX */

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TM-D700 description
* Copyright (c) 2000-2008 by Stephane Fillod
*
* $Id: tmd700.c,v 1.9 2009-01-23 03:24:42 n0nb Exp $
* $Id: tmd700.c,v 1.10 2009-01-28 23:30:54 azummo 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
@ -59,7 +59,7 @@
*/
#define TMD700_VFO (RIG_VFO_A|RIG_VFO_B)
const struct kenwood_priv_caps tmd700_priv_caps = {
static struct kenwood_priv_caps tmd700_priv_caps = {
.cmdtrm = EOM_TH, /* Command termination character */
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TM-V7 description
* Copyright (c) 2004-2008 by Stephane Fillod
*
* $Id: tmv7.c,v 1.17 2009-01-23 03:24:42 n0nb Exp $
* $Id: tmv7.c,v 1.18 2009-01-28 23:30:54 azummo 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
@ -69,7 +69,7 @@
#define ACKBUF_LEN 128
const struct kenwood_priv_caps tmv7_priv_caps = {
static struct kenwood_priv_caps tmv7_priv_caps = {
.cmdtrm = EOM_TH, /* Command termination character */
};
#define EOM "\r" /* XXX */

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS140 description
* Copyright (c) 2000-2008 by Stephane Fillod
*
* $Id: ts140.c,v 1.10 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts140.c,v 1.11 2009-01-28 23:30:56 azummo 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
@ -45,7 +45,7 @@
#define VFO_B '1'
#define VFO_MEM '2'
static const struct kenwood_priv_caps ts140_priv_caps = {
static struct kenwood_priv_caps ts140_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS2000 description
* Copyright (c) 2000-2008 by Stephane Fillod
*
* $Id: ts2000.c,v 1.24 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts2000.c,v 1.25 2009-01-28 23:30:56 azummo 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
@ -73,7 +73,7 @@ static const tone_t ts2000_dcs_list[] = {
0,
};
const struct kenwood_priv_caps ts2000_priv_caps = {
static struct kenwood_priv_caps ts2000_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS440 description
* Copyright (c) 2000-2004 by Stephane Fillod
*
* $Id: ts440.c,v 1.14 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts440.c,v 1.15 2009-01-28 23:30:58 azummo 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
@ -44,7 +44,7 @@
#define TS440_VFO_OPS (RIG_OP_UP|RIG_OP_DOWN)
#define TS440_SCAN_OPS (RIG_SCAN_VFO)
static const struct kenwood_priv_caps ts440_priv_caps = {
static struct kenwood_priv_caps ts440_priv_caps = {
.cmdtrm = EOM_KEN,
.if_len = 29,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS480 description
* Copyright (c) 2000-2004 by Stephane Fillod and Juergen Rinas
*
* $Id: ts480.c,v 1.9 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts480.c,v 1.10 2009-01-28 23:30:58 azummo 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
@ -269,7 +269,7 @@ kenwood_ts480_get_level (RIG * rig, vfo_t vfo, setting_t level, value_t * val)
return RIG_OK; /* never reached */
}
static const struct kenwood_priv_caps ts480_priv_caps = {
static struct kenwood_priv_caps ts480_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS50 description
* Copyright (c) 2002-2004 by Stephane Fillod
*
* $Id: ts50s.c,v 1.13 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts50s.c,v 1.14 2009-01-28 23:30:58 azummo 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
@ -41,7 +41,7 @@
#define TS50_VFO (RIG_VFO_A|RIG_VFO_B)
#define TS50_VFO_OP (RIG_OP_UP|RIG_OP_DOWN)
static const struct kenwood_priv_caps ts50_priv_caps = {
static struct kenwood_priv_caps ts50_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS570 description
* Copyright (c) 2001-2005 by Stephane Fillod
*
* $Id: ts570.c,v 1.36 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts570.c,v 1.37 2009-01-28 23:30:58 azummo 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
@ -47,7 +47,7 @@
#define TS570_SCAN_OPS (RIG_SCAN_VFO)
#define TS570_ANTS (RIG_ANT_1|RIG_ANT_2)
static const struct kenwood_priv_caps ts570_priv_caps = {
static struct kenwood_priv_caps ts570_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS680 description
* Copyright (c) 2000-2008 by Stephane Fillod
*
* $Id: ts680.c,v 1.9 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts680.c,v 1.10 2009-01-28 23:30:58 azummo 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
@ -45,7 +45,7 @@
#define VFO_B '1'
#define VFO_MEM '2'
static const struct kenwood_priv_caps ts680_priv_caps = {
static struct kenwood_priv_caps ts680_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS690 description
* Copyright (c) 2000-2004 by Stephane Fillod
*
* $Id: ts690.c,v 1.4 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts690.c,v 1.5 2009-01-28 23:30:59 azummo 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
@ -58,7 +58,7 @@
.flags=RIG_CHFLAG_SKIP \
}
static const struct kenwood_priv_caps ts690_priv_caps = {
static struct kenwood_priv_caps ts690_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS-711 description
* Copyright (c) 2000-2004 by Stephane Fillod
*
* $Id: ts711.c,v 1.6 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts711.c,v 1.7 2009-01-28 23:30:59 azummo 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
@ -43,7 +43,7 @@
#define TS711_VFO_OP (RIG_OP_UP|RIG_OP_DOWN)
#define TS711_SCAN_OP (RIG_SCAN_VFO)
static const struct kenwood_priv_caps ts711_priv_caps = {
static struct kenwood_priv_caps ts711_priv_caps = {
.cmdtrm = EOM_KEN,
.if_len = 29,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS-790 description
* Copyright (c) 2000-2006 by Stephane Fillod
*
* $Id: ts790.c,v 1.17 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts790.c,v 1.18 2009-01-28 23:30:59 azummo 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
@ -46,7 +46,7 @@
* Function definitions below
*/
static const struct kenwood_priv_caps ts790_priv_caps = {
static struct kenwood_priv_caps ts790_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS-811 description
* Copyright (c) 2000-2004 by Stephane Fillod
*
* $Id: ts811.c,v 1.6 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts811.c,v 1.7 2009-01-28 23:30:59 azummo 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
@ -43,7 +43,7 @@
#define TS811_VFO_OP (RIG_OP_UP|RIG_OP_DOWN)
#define TS811_SCAN_OP (RIG_SCAN_VFO)
static const struct kenwood_priv_caps ts811_priv_caps = {
static struct kenwood_priv_caps ts811_priv_caps = {
.cmdtrm = EOM_KEN,
.if_len = 29,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS850 description
* Copyright (c) 2000-2004 by Stephane Fillod
*
* $Id: ts850.c,v 1.26 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts850.c,v 1.27 2009-01-28 23:30:59 azummo 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
@ -64,7 +64,7 @@
} }
static const struct kenwood_priv_caps ts850_priv_caps = {
static struct kenwood_priv_caps ts850_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS870S description
* Copyright (c) 2000-2008 by Stephane Fillod
*
* $Id: ts870s.c,v 1.50 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts870s.c,v 1.51 2009-01-28 23:30:59 azummo 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
@ -54,7 +54,7 @@
#define TS870S_VFO (RIG_VFO_A|RIG_VFO_B)
#define TS870S_ANTS (RIG_ANT_1|RIG_ANT_2)
static const struct kenwood_priv_caps ts870s_priv_caps = {
static struct kenwood_priv_caps ts870s_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS930 description
* Copyright (c) 2000-2003 by Stephane Fillod
*
* $Id: ts930.c,v 1.4 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts930.c,v 1.5 2009-01-28 23:30:59 azummo 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
@ -43,7 +43,7 @@
#define TS930_VFO (RIG_VFO_A|RIG_VFO_B)
#define TS930_ANTS (0)
static const struct kenwood_priv_caps ts930_priv_caps = {
static struct kenwood_priv_caps ts930_priv_caps = {
.cmdtrm = EOM_KEN,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS940 description
* Copyright (c) 2000-2004 by Stephane Fillod
*
* $Id: ts940.c,v 1.7 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts940.c,v 1.8 2009-01-28 23:30:59 azummo 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
@ -46,7 +46,7 @@
#define TS940_VFO_OPS (RIG_OP_UP|RIG_OP_DOWN)
#define TS940_SCAN_OPS (RIG_SCAN_VFO)
static const struct kenwood_priv_caps ts940_priv_caps = {
static struct kenwood_priv_caps ts940_priv_caps = {
.cmdtrm = EOM_KEN,
.if_len = 29,
};

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TS950 description
* Copyright (c) 2002-2004 by Stephane Fillod
*
* $Id: ts950.c,v 1.15 2009-01-23 03:24:42 n0nb Exp $
* $Id: ts950.c,v 1.16 2009-01-28 23:30:59 azummo 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
@ -41,7 +41,7 @@
#define TS950_VFO (RIG_VFO_A|RIG_VFO_B)
#define cmd_trm(rig) ((struct kenwood_priv_caps *)(rig)->caps->priv)->cmdtrm
const struct kenwood_priv_caps ts950_priv_caps = {
static struct kenwood_priv_caps ts950_priv_caps = {
.cmdtrm = EOM_KEN,
};