kopia lustrzana https://github.com/Hamlib/Hamlib
don't export local functions, make them static
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1927 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.4
rodzic
1316c2c37a
commit
3bfe70ab67
|
@ -2,7 +2,7 @@
|
|||
* Hamlib Kenwood backend - TH-G71 description
|
||||
* Copyright (c) 2003-2005 by Stephane Fillod
|
||||
*
|
||||
* $Id: thg71.c,v 1.15 2005-01-24 23:04:16 fillods Exp $
|
||||
* $Id: thg71.c,v 1.16 2005-02-24 22:35:19 fillods 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,13 +64,12 @@ const struct kenwood_priv_caps thg71_priv_caps = {
|
|||
|
||||
|
||||
/* thg71 procs */
|
||||
int thg71_open(RIG *rig);
|
||||
int thg71_decode_event (RIG *rig);
|
||||
int thg71_set_freq (RIG *rig, vfo_t vfo, freq_t freq);
|
||||
int thg71_get_mode (RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
|
||||
int thg71_set_vfo (RIG *rig, vfo_t vfo);
|
||||
int thg71_get_vfo (RIG *rig, vfo_t *vfo);
|
||||
int thg71_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
||||
static int thg71_open(RIG *rig);
|
||||
static int thg71_decode_event (RIG *rig);
|
||||
static int thg71_get_mode (RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
|
||||
static int thg71_set_vfo (RIG *rig, vfo_t vfo);
|
||||
static int thg71_get_vfo (RIG *rig, vfo_t *vfo);
|
||||
static int thg71_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
||||
|
||||
/*
|
||||
* th-g71 rig capabilities.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Hamlib Kenwood backend - TM-V7 description
|
||||
* Copyright (c) 2004-2005 by Stephane Fillod
|
||||
*
|
||||
* $Id: tmv7.c,v 1.9 2005-01-25 00:20:36 fillods Exp $
|
||||
* $Id: tmv7.c,v 1.10 2005-02-24 22:35:24 fillods 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
|
||||
|
@ -76,13 +76,13 @@ const struct kenwood_priv_caps tmv7_priv_caps = {
|
|||
|
||||
|
||||
/* tmv7 procs */
|
||||
int tmv7_open(RIG *rig);
|
||||
int tmv7_decode_event (RIG *rig);
|
||||
int tmv7_set_vfo (RIG *rig, vfo_t vfo);
|
||||
int tmv7_get_mode (RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
|
||||
int tmv7_get_powerstat (RIG *rig, powerstat_t *status);
|
||||
int tmv7_get_channel(RIG *rig, channel_t *chan);
|
||||
int tmv7_set_channel(RIG *rig, const channel_t *chan);
|
||||
static int tmv7_open(RIG *rig);
|
||||
static int tmv7_decode_event (RIG *rig);
|
||||
static int tmv7_set_vfo (RIG *rig, vfo_t vfo);
|
||||
static int tmv7_get_mode (RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
|
||||
static int tmv7_get_powerstat (RIG *rig, powerstat_t *status);
|
||||
static int tmv7_get_channel(RIG *rig, channel_t *chan);
|
||||
static int tmv7_set_channel(RIG *rig, const channel_t *chan);
|
||||
|
||||
/*
|
||||
* tm-v7 rig capabilities.
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Hamlib Kenwood backend - TS680 description
|
||||
* Copyright (c) 2000-2003 by Stephane Fillod
|
||||
* Copyright (c) 2000-2005 by Stephane Fillod
|
||||
*
|
||||
* $Id: ts680.c,v 1.3 2005-01-31 16:15:56 pa4tu Exp $
|
||||
* $Id: ts680.c,v 1.4 2005-02-24 22:35:24 fillods 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
|
||||
|
@ -60,7 +60,7 @@ static const struct kenwood_priv_caps ts680_priv_caps = {
|
|||
.cmdtrm = EOM_KEN,
|
||||
};
|
||||
|
||||
int ts680_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
||||
static int ts680_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
||||
{
|
||||
unsigned char modebuf[50];
|
||||
int mode_len, retval;
|
||||
|
@ -95,7 +95,7 @@ int ts680_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
|||
return RIG_OK;
|
||||
}
|
||||
|
||||
int ts680_set_vfo(RIG *rig, vfo_t vfo)
|
||||
static int ts680_set_vfo(RIG *rig, vfo_t vfo)
|
||||
{
|
||||
unsigned char cmdbuf[16], ackbuf[16];
|
||||
int cmd_len, ack_len, retval;
|
||||
|
@ -121,7 +121,7 @@ int ts680_set_vfo(RIG *rig, vfo_t vfo)
|
|||
return RIG_OK;
|
||||
}
|
||||
|
||||
int ts680_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|
||||
static int ts680_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|
||||
{
|
||||
unsigned char freqbuf[50];
|
||||
int freq_len, retval;
|
||||
|
@ -149,7 +149,7 @@ int ts680_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|
|||
return RIG_OK;
|
||||
}
|
||||
|
||||
int ts680_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
|
||||
static int ts680_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
|
||||
{
|
||||
unsigned char fctbuf[16], ackbuf[16];
|
||||
int fct_len, ack_len;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Hamlib Kenwood backend - TS870S description
|
||||
* Copyright (c) 2000-2004 by Stephane Fillod
|
||||
* Copyright (c) 2000-2005 by Stephane Fillod
|
||||
*
|
||||
* $Id: ts870s.c,v 1.43 2005-02-03 20:51:19 pa4tu Exp $
|
||||
* $Id: ts870s.c,v 1.44 2005-02-24 22:35:24 fillods 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
|
||||
|
@ -71,7 +71,7 @@ static const struct kenwood_priv_caps ts870s_priv_caps = {
|
|||
|
||||
/* only the ts870s and ts2000 support get_vfo with the 'FR;' command
|
||||
NOTE: using byte 31 in 'IF' will also work. TODO: check other rigs */
|
||||
int ts870s_get_vfo(RIG *rig, vfo_t *vfo)
|
||||
static int ts870s_get_vfo(RIG *rig, vfo_t *vfo)
|
||||
{
|
||||
unsigned char vfobuf[50];
|
||||
int vfo_len, retval;
|
||||
|
@ -102,7 +102,7 @@ int ts870s_get_vfo(RIG *rig, vfo_t *vfo)
|
|||
return RIG_OK;
|
||||
}
|
||||
|
||||
int ts870s_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
||||
static int ts870s_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
||||
{
|
||||
unsigned char buf[50];
|
||||
int buf_len, retval;
|
||||
|
@ -154,7 +154,7 @@ int ts870s_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
|||
return RIG_OK;
|
||||
}
|
||||
|
||||
int ts870s_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
||||
static int ts870s_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
||||
{
|
||||
unsigned char buf[16],ackbuf[16];
|
||||
int buf_len, ack_len, kmode, retval;
|
||||
|
@ -192,7 +192,7 @@ int ts870s_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
|||
return RIG_OK;
|
||||
}
|
||||
|
||||
int ts870s_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
||||
static int ts870s_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
||||
{
|
||||
unsigned char lvlbuf[50];
|
||||
int lvl_len, retval;
|
||||
|
|
Ładowanie…
Reference in New Issue