remove autogenerated files from cvs rep

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1138 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.4
Stéphane Fillod, F8CFE 2002-08-24 10:52:55 +00:00
rodzic 30505a7b7e
commit acb2ff113a
8 zmienionych plików z 0 dodań i 3534 usunięć

Wyświetl plik

@ -1,791 +0,0 @@
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _RPCRIG_H_RPCGEN
#define _RPCRIG_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Hamlib Interface - RPC definitions
* Copyright (c) 2000-2002 by Stephane Fillod and Frank Singleton
*
* $Id: rpcrig.h,v 1.4 2002-08-23 20:01:09 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
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#include <rpc/xdr.h>
#include <hamlib/rig.h>
typedef u_int model_x;
typedef int vfo_x;
typedef int64_t freq_x;
typedef u_int rmode_x;
typedef int pbwidth_x;
typedef u_long split_x;
typedef int ptt_x;
typedef int dcd_x;
typedef long vfo_op_x;
typedef long shortfreq_x;
typedef uint64_t setting_x;
typedef long ant_x;
typedef long ann_x;
typedef int rptr_shift_x;
typedef int tone_x;
typedef long scan_x;
typedef long reset_x;
typedef long powerstat_x;
struct mode_s {
rmode_x mode;
pbwidth_x width;
};
typedef struct mode_s mode_s;
struct value_s {
int i;
float f;
};
typedef struct value_s value_s;
struct freq_arg {
vfo_x vfo;
freq_x freq;
};
typedef struct freq_arg freq_arg;
struct freq_res {
int rigstatus;
union {
freq_x freq;
} freq_res_u;
};
typedef struct freq_res freq_res;
struct mode_arg {
vfo_x vfo;
mode_s mw;
};
typedef struct mode_arg mode_arg;
struct mode_res {
int rigstatus;
union {
mode_s mw;
} mode_res_u;
};
typedef struct mode_res mode_res;
struct vfo_res {
int rigstatus;
union {
vfo_x vfo;
} vfo_res_u;
};
typedef struct vfo_res vfo_res;
struct powerstat_res {
int rigstatus;
union {
powerstat_x powerstat;
} powerstat_res_u;
};
typedef struct powerstat_res powerstat_res;
struct split_arg {
vfo_x vfo;
split_x split;
};
typedef struct split_arg split_arg;
struct split_res {
int rigstatus;
union {
split_x split;
} split_res_u;
};
typedef struct split_res split_res;
struct ptt_arg {
vfo_x vfo;
ptt_x ptt;
};
typedef struct ptt_arg ptt_arg;
struct ptt_res {
int rigstatus;
union {
ptt_x ptt;
} ptt_res_u;
};
typedef struct ptt_res ptt_res;
struct dcd_res {
int rigstatus;
union {
dcd_x dcd;
} dcd_res_u;
};
typedef struct dcd_res dcd_res;
struct setting_arg {
vfo_x vfo;
setting_x setting;
value_s val;
};
typedef struct setting_arg setting_arg;
struct val_res {
int rigstatus;
union {
value_s val;
} val_res_u;
};
typedef struct val_res val_res;
struct vfo_op_arg {
vfo_x vfo;
vfo_op_x vfo_op;
};
typedef struct vfo_op_arg vfo_op_arg;
struct rptrshift_res {
int rigstatus;
union {
rptr_shift_x rptrshift;
} rptrshift_res_u;
};
typedef struct rptrshift_res rptrshift_res;
struct rptrshift_arg {
vfo_x vfo;
rptr_shift_x rptrshift;
};
typedef struct rptrshift_arg rptrshift_arg;
struct shortfreq_res {
int rigstatus;
union {
shortfreq_x shortfreq;
} shortfreq_res_u;
};
typedef struct shortfreq_res shortfreq_res;
struct shortfreq_arg {
vfo_x vfo;
shortfreq_x shortfreq;
};
typedef struct shortfreq_arg shortfreq_arg;
struct tone_res {
int rigstatus;
union {
tone_x tone;
} tone_res_u;
};
typedef struct tone_res tone_res;
struct tone_arg {
vfo_x vfo;
tone_x tone;
};
typedef struct tone_arg tone_arg;
struct ant_res {
int rigstatus;
union {
ant_x ant;
} ant_res_u;
};
typedef struct ant_res ant_res;
struct ant_arg {
vfo_x vfo;
ant_x ant;
};
typedef struct ant_arg ant_arg;
struct ch_res {
int rigstatus;
union {
int ch;
} ch_res_u;
};
typedef struct ch_res ch_res;
struct ch_arg {
vfo_x vfo;
int ch;
};
typedef struct ch_arg ch_arg;
struct scan_s {
scan_x scan;
int ch;
};
typedef struct scan_s scan_s;
struct scan_res {
int rigstatus;
union {
scan_s scan;
} scan_res_u;
};
typedef struct scan_res scan_res;
struct scan_arg {
vfo_x vfo;
scan_x scan;
int ch;
};
typedef struct scan_arg scan_arg;
struct freq_range_s {
freq_x start;
freq_x end;
rmode_x modes;
int low_power;
int high_power;
vfo_x vfo;
ant_x ant;
};
typedef struct freq_range_s freq_range_s;
struct tuning_step_s {
rmode_x modes;
shortfreq_x ts;
};
typedef struct tuning_step_s tuning_step_s;
struct filter_s {
rmode_x modes;
pbwidth_x width;
};
typedef struct filter_s filter_s;
struct chan_s {
int start;
int end;
u_int type;
};
typedef struct chan_s chan_s;
struct rigstate_s {
int itu_region;
shortfreq_x max_rit;
shortfreq_x max_xit;
shortfreq_x max_ifshift;
ann_x announces;
setting_x has_get_func;
setting_x has_set_func;
setting_x has_get_level;
setting_x has_set_level;
setting_x has_get_parm;
setting_x has_set_parm;
int preamp[MAXDBLSTSIZ];
int attenuator[MAXDBLSTSIZ];
freq_range_s rx_range_list[FRQRANGESIZ];
freq_range_s tx_range_list[FRQRANGESIZ];
tuning_step_s tuning_steps[TSLSTSIZ];
filter_s filters[FLTLSTSIZ];
chan_s chan_list[CHANLSTSIZ];
};
typedef struct rigstate_s rigstate_s;
struct rigstate_res {
int rigstatus;
union {
rigstate_s state;
} rigstate_res_u;
};
typedef struct rigstate_res rigstate_res;
#define freq_t2x(t, x) do { *(x) = (t); } while(0)
#define freq_x2t(x) ((freq_t)*(x))
#define setting_t2x(t, x) do { *(x) = (t); } while(0)
#define setting_x2t(x) ((setting_t)*(x))
static inline void mode_t2s(rmode_t modet, pbwidth_t widtht, mode_s *modes)
{
modes->mode = modet;
modes->width = widtht;
}
static inline void mode_s2t(mode_s *modes, rmode_t *modet, pbwidth_t *widtht)
{
*modet = modes->mode;
*widtht = modes->width;
}
#define RIGPROG 0x20000099
#define RIGVERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define GETMODEL 1
extern model_x * getmodel_1(void *, CLIENT *);
extern model_x * getmodel_1_svc(void *, struct svc_req *);
#define GETRIGSTATE 3
extern rigstate_res * getrigstate_1(void *, CLIENT *);
extern rigstate_res * getrigstate_1_svc(void *, struct svc_req *);
#define SETFREQ 10
extern int * setfreq_1(freq_arg *, CLIENT *);
extern int * setfreq_1_svc(freq_arg *, struct svc_req *);
#define GETFREQ 11
extern freq_res * getfreq_1(vfo_x *, CLIENT *);
extern freq_res * getfreq_1_svc(vfo_x *, struct svc_req *);
#define SETMODE 12
extern int * setmode_1(mode_arg *, CLIENT *);
extern int * setmode_1_svc(mode_arg *, struct svc_req *);
#define GETMODE 13
extern mode_res * getmode_1(vfo_x *, CLIENT *);
extern mode_res * getmode_1_svc(vfo_x *, struct svc_req *);
#define SETVFO 14
extern int * setvfo_1(vfo_x *, CLIENT *);
extern int * setvfo_1_svc(vfo_x *, struct svc_req *);
#define GETVFO 15
extern vfo_res * getvfo_1(vfo_x *, CLIENT *);
extern vfo_res * getvfo_1_svc(vfo_x *, struct svc_req *);
#define SETSPLITFREQ 16
extern int * setsplitfreq_1(freq_arg *, CLIENT *);
extern int * setsplitfreq_1_svc(freq_arg *, struct svc_req *);
#define GETSPLITFREQ 17
extern freq_res * getsplitfreq_1(vfo_x *, CLIENT *);
extern freq_res * getsplitfreq_1_svc(vfo_x *, struct svc_req *);
#define SETSPLITMODE 18
extern int * setsplitmode_1(mode_arg *, CLIENT *);
extern int * setsplitmode_1_svc(mode_arg *, struct svc_req *);
#define GETSPLITMODE 19
extern mode_res * getsplitmode_1(vfo_x *, CLIENT *);
extern mode_res * getsplitmode_1_svc(vfo_x *, struct svc_req *);
#define SETSPLIT 20
extern int * setsplit_1(split_arg *, CLIENT *);
extern int * setsplit_1_svc(split_arg *, struct svc_req *);
#define GETSPLIT 21
extern split_res * getsplit_1(vfo_x *, CLIENT *);
extern split_res * getsplit_1_svc(vfo_x *, struct svc_req *);
#define SETPTT 22
extern int * setptt_1(ptt_arg *, CLIENT *);
extern int * setptt_1_svc(ptt_arg *, struct svc_req *);
#define GETPTT 23
extern ptt_res * getptt_1(vfo_x *, CLIENT *);
extern ptt_res * getptt_1_svc(vfo_x *, struct svc_req *);
#define GETDCD 24
extern dcd_res * getdcd_1(vfo_x *, CLIENT *);
extern dcd_res * getdcd_1_svc(vfo_x *, struct svc_req *);
#define SETFUNC 25
extern int * setfunc_1(setting_arg *, CLIENT *);
extern int * setfunc_1_svc(setting_arg *, struct svc_req *);
#define GETFUNC 26
extern val_res * getfunc_1(setting_arg *, CLIENT *);
extern val_res * getfunc_1_svc(setting_arg *, struct svc_req *);
#define SETLEVEL 27
extern int * setlevel_1(setting_arg *, CLIENT *);
extern int * setlevel_1_svc(setting_arg *, struct svc_req *);
#define GETLEVEL 28
extern val_res * getlevel_1(setting_arg *, CLIENT *);
extern val_res * getlevel_1_svc(setting_arg *, struct svc_req *);
#define SETPARM 29
extern int * setparm_1(setting_arg *, CLIENT *);
extern int * setparm_1_svc(setting_arg *, struct svc_req *);
#define GETPARM 30
extern val_res * getparm_1(setting_arg *, CLIENT *);
extern val_res * getparm_1_svc(setting_arg *, struct svc_req *);
#define VFOOP 31
extern int * vfoop_1(vfo_op_arg *, CLIENT *);
extern int * vfoop_1_svc(vfo_op_arg *, struct svc_req *);
#define SETRPTRSHIFT 32
extern int * setrptrshift_1(rptrshift_arg *, CLIENT *);
extern int * setrptrshift_1_svc(rptrshift_arg *, struct svc_req *);
#define GETRPTRSHIFT 33
extern rptrshift_res * getrptrshift_1(vfo_x *, CLIENT *);
extern rptrshift_res * getrptrshift_1_svc(vfo_x *, struct svc_req *);
#define SETRPTROFFS 34
extern int * setrptroffs_1(shortfreq_arg *, CLIENT *);
extern int * setrptroffs_1_svc(shortfreq_arg *, struct svc_req *);
#define GETRPTROFFS 35
extern shortfreq_res * getrptroffs_1(vfo_x *, CLIENT *);
extern shortfreq_res * getrptroffs_1_svc(vfo_x *, struct svc_req *);
#define SETCTCSSTONE 36
extern int * setctcsstone_1(tone_arg *, CLIENT *);
extern int * setctcsstone_1_svc(tone_arg *, struct svc_req *);
#define GETCTCSSTONE 37
extern tone_res * getctcsstone_1(vfo_x *, CLIENT *);
extern tone_res * getctcsstone_1_svc(vfo_x *, struct svc_req *);
#define SETCTCSSSQL 38
extern int * setctcsssql_1(tone_arg *, CLIENT *);
extern int * setctcsssql_1_svc(tone_arg *, struct svc_req *);
#define GETCTCSSSQL 39
extern tone_res * getctcsssql_1(vfo_x *, CLIENT *);
extern tone_res * getctcsssql_1_svc(vfo_x *, struct svc_req *);
#define SETDCSCODE 40
extern int * setdcscode_1(tone_arg *, CLIENT *);
extern int * setdcscode_1_svc(tone_arg *, struct svc_req *);
#define GETDCSCODE 41
extern tone_res * getdcscode_1(vfo_x *, CLIENT *);
extern tone_res * getdcscode_1_svc(vfo_x *, struct svc_req *);
#define SETDCSSQL 42
extern int * setdcssql_1(tone_arg *, CLIENT *);
extern int * setdcssql_1_svc(tone_arg *, struct svc_req *);
#define GETDCSSQL 43
extern tone_res * getdcssql_1(vfo_x *, CLIENT *);
extern tone_res * getdcssql_1_svc(vfo_x *, struct svc_req *);
#define SETRIT 44
extern int * setrit_1(shortfreq_arg *, CLIENT *);
extern int * setrit_1_svc(shortfreq_arg *, struct svc_req *);
#define GETRIT 45
extern shortfreq_res * getrit_1(vfo_x *, CLIENT *);
extern shortfreq_res * getrit_1_svc(vfo_x *, struct svc_req *);
#define SETXIT 46
extern int * setxit_1(shortfreq_arg *, CLIENT *);
extern int * setxit_1_svc(shortfreq_arg *, struct svc_req *);
#define GETXIT 47
extern shortfreq_res * getxit_1(vfo_x *, CLIENT *);
extern shortfreq_res * getxit_1_svc(vfo_x *, struct svc_req *);
#define SETTS 48
extern int * setts_1(shortfreq_arg *, CLIENT *);
extern int * setts_1_svc(shortfreq_arg *, struct svc_req *);
#define GETTS 49
extern shortfreq_res * getts_1(vfo_x *, CLIENT *);
extern shortfreq_res * getts_1_svc(vfo_x *, struct svc_req *);
#define SCAN 50
extern int * scan_1(scan_arg *, CLIENT *);
extern int * scan_1_svc(scan_arg *, struct svc_req *);
#define RESET 51
extern int * reset_1(reset_x *, CLIENT *);
extern int * reset_1_svc(reset_x *, struct svc_req *);
#define SETMEM 52
extern int * setmem_1(ch_arg *, CLIENT *);
extern int * setmem_1_svc(ch_arg *, struct svc_req *);
#define GETMEM 53
extern ch_res * getmem_1(vfo_x *, CLIENT *);
extern ch_res * getmem_1_svc(vfo_x *, struct svc_req *);
#define SETANT 54
extern int * setant_1(ant_arg *, CLIENT *);
extern int * setant_1_svc(ant_arg *, struct svc_req *);
#define GETANT 55
extern ant_res * getant_1(vfo_x *, CLIENT *);
extern ant_res * getant_1_svc(vfo_x *, struct svc_req *);
#define SETBANK 56
extern int * setbank_1(ch_arg *, CLIENT *);
extern int * setbank_1_svc(ch_arg *, struct svc_req *);
#define SETPOWERSTAT 58
extern int * setpowerstat_1(powerstat_x *, CLIENT *);
extern int * setpowerstat_1_svc(powerstat_x *, struct svc_req *);
#define GETPOWERSTAT 59
extern powerstat_res * getpowerstat_1(void *, CLIENT *);
extern powerstat_res * getpowerstat_1_svc(void *, struct svc_req *);
extern int rigprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define GETMODEL 1
extern model_x * getmodel_1();
extern model_x * getmodel_1_svc();
#define GETRIGSTATE 3
extern rigstate_res * getrigstate_1();
extern rigstate_res * getrigstate_1_svc();
#define SETFREQ 10
extern int * setfreq_1();
extern int * setfreq_1_svc();
#define GETFREQ 11
extern freq_res * getfreq_1();
extern freq_res * getfreq_1_svc();
#define SETMODE 12
extern int * setmode_1();
extern int * setmode_1_svc();
#define GETMODE 13
extern mode_res * getmode_1();
extern mode_res * getmode_1_svc();
#define SETVFO 14
extern int * setvfo_1();
extern int * setvfo_1_svc();
#define GETVFO 15
extern vfo_res * getvfo_1();
extern vfo_res * getvfo_1_svc();
#define SETSPLITFREQ 16
extern int * setsplitfreq_1();
extern int * setsplitfreq_1_svc();
#define GETSPLITFREQ 17
extern freq_res * getsplitfreq_1();
extern freq_res * getsplitfreq_1_svc();
#define SETSPLITMODE 18
extern int * setsplitmode_1();
extern int * setsplitmode_1_svc();
#define GETSPLITMODE 19
extern mode_res * getsplitmode_1();
extern mode_res * getsplitmode_1_svc();
#define SETSPLIT 20
extern int * setsplit_1();
extern int * setsplit_1_svc();
#define GETSPLIT 21
extern split_res * getsplit_1();
extern split_res * getsplit_1_svc();
#define SETPTT 22
extern int * setptt_1();
extern int * setptt_1_svc();
#define GETPTT 23
extern ptt_res * getptt_1();
extern ptt_res * getptt_1_svc();
#define GETDCD 24
extern dcd_res * getdcd_1();
extern dcd_res * getdcd_1_svc();
#define SETFUNC 25
extern int * setfunc_1();
extern int * setfunc_1_svc();
#define GETFUNC 26
extern val_res * getfunc_1();
extern val_res * getfunc_1_svc();
#define SETLEVEL 27
extern int * setlevel_1();
extern int * setlevel_1_svc();
#define GETLEVEL 28
extern val_res * getlevel_1();
extern val_res * getlevel_1_svc();
#define SETPARM 29
extern int * setparm_1();
extern int * setparm_1_svc();
#define GETPARM 30
extern val_res * getparm_1();
extern val_res * getparm_1_svc();
#define VFOOP 31
extern int * vfoop_1();
extern int * vfoop_1_svc();
#define SETRPTRSHIFT 32
extern int * setrptrshift_1();
extern int * setrptrshift_1_svc();
#define GETRPTRSHIFT 33
extern rptrshift_res * getrptrshift_1();
extern rptrshift_res * getrptrshift_1_svc();
#define SETRPTROFFS 34
extern int * setrptroffs_1();
extern int * setrptroffs_1_svc();
#define GETRPTROFFS 35
extern shortfreq_res * getrptroffs_1();
extern shortfreq_res * getrptroffs_1_svc();
#define SETCTCSSTONE 36
extern int * setctcsstone_1();
extern int * setctcsstone_1_svc();
#define GETCTCSSTONE 37
extern tone_res * getctcsstone_1();
extern tone_res * getctcsstone_1_svc();
#define SETCTCSSSQL 38
extern int * setctcsssql_1();
extern int * setctcsssql_1_svc();
#define GETCTCSSSQL 39
extern tone_res * getctcsssql_1();
extern tone_res * getctcsssql_1_svc();
#define SETDCSCODE 40
extern int * setdcscode_1();
extern int * setdcscode_1_svc();
#define GETDCSCODE 41
extern tone_res * getdcscode_1();
extern tone_res * getdcscode_1_svc();
#define SETDCSSQL 42
extern int * setdcssql_1();
extern int * setdcssql_1_svc();
#define GETDCSSQL 43
extern tone_res * getdcssql_1();
extern tone_res * getdcssql_1_svc();
#define SETRIT 44
extern int * setrit_1();
extern int * setrit_1_svc();
#define GETRIT 45
extern shortfreq_res * getrit_1();
extern shortfreq_res * getrit_1_svc();
#define SETXIT 46
extern int * setxit_1();
extern int * setxit_1_svc();
#define GETXIT 47
extern shortfreq_res * getxit_1();
extern shortfreq_res * getxit_1_svc();
#define SETTS 48
extern int * setts_1();
extern int * setts_1_svc();
#define GETTS 49
extern shortfreq_res * getts_1();
extern shortfreq_res * getts_1_svc();
#define SCAN 50
extern int * scan_1();
extern int * scan_1_svc();
#define RESET 51
extern int * reset_1();
extern int * reset_1_svc();
#define SETMEM 52
extern int * setmem_1();
extern int * setmem_1_svc();
#define GETMEM 53
extern ch_res * getmem_1();
extern ch_res * getmem_1_svc();
#define SETANT 54
extern int * setant_1();
extern int * setant_1_svc();
#define GETANT 55
extern ant_res * getant_1();
extern ant_res * getant_1_svc();
#define SETBANK 56
extern int * setbank_1();
extern int * setbank_1_svc();
#define SETPOWERSTAT 58
extern int * setpowerstat_1();
extern int * setpowerstat_1_svc();
#define GETPOWERSTAT 59
extern powerstat_res * getpowerstat_1();
extern powerstat_res * getpowerstat_1_svc();
extern int rigprog_1_freeresult ();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_model_x (XDR *, model_x*);
extern bool_t xdr_vfo_x (XDR *, vfo_x*);
extern bool_t xdr_freq_x (XDR *, freq_x*);
extern bool_t xdr_rmode_x (XDR *, rmode_x*);
extern bool_t xdr_pbwidth_x (XDR *, pbwidth_x*);
extern bool_t xdr_split_x (XDR *, split_x*);
extern bool_t xdr_ptt_x (XDR *, ptt_x*);
extern bool_t xdr_dcd_x (XDR *, dcd_x*);
extern bool_t xdr_vfo_op_x (XDR *, vfo_op_x*);
extern bool_t xdr_shortfreq_x (XDR *, shortfreq_x*);
extern bool_t xdr_setting_x (XDR *, setting_x*);
extern bool_t xdr_ant_x (XDR *, ant_x*);
extern bool_t xdr_ann_x (XDR *, ann_x*);
extern bool_t xdr_rptr_shift_x (XDR *, rptr_shift_x*);
extern bool_t xdr_tone_x (XDR *, tone_x*);
extern bool_t xdr_scan_x (XDR *, scan_x*);
extern bool_t xdr_reset_x (XDR *, reset_x*);
extern bool_t xdr_powerstat_x (XDR *, powerstat_x*);
extern bool_t xdr_mode_s (XDR *, mode_s*);
extern bool_t xdr_value_s (XDR *, value_s*);
extern bool_t xdr_freq_arg (XDR *, freq_arg*);
extern bool_t xdr_freq_res (XDR *, freq_res*);
extern bool_t xdr_mode_arg (XDR *, mode_arg*);
extern bool_t xdr_mode_res (XDR *, mode_res*);
extern bool_t xdr_vfo_res (XDR *, vfo_res*);
extern bool_t xdr_powerstat_res (XDR *, powerstat_res*);
extern bool_t xdr_split_arg (XDR *, split_arg*);
extern bool_t xdr_split_res (XDR *, split_res*);
extern bool_t xdr_ptt_arg (XDR *, ptt_arg*);
extern bool_t xdr_ptt_res (XDR *, ptt_res*);
extern bool_t xdr_dcd_res (XDR *, dcd_res*);
extern bool_t xdr_setting_arg (XDR *, setting_arg*);
extern bool_t xdr_val_res (XDR *, val_res*);
extern bool_t xdr_vfo_op_arg (XDR *, vfo_op_arg*);
extern bool_t xdr_rptrshift_res (XDR *, rptrshift_res*);
extern bool_t xdr_rptrshift_arg (XDR *, rptrshift_arg*);
extern bool_t xdr_shortfreq_res (XDR *, shortfreq_res*);
extern bool_t xdr_shortfreq_arg (XDR *, shortfreq_arg*);
extern bool_t xdr_tone_res (XDR *, tone_res*);
extern bool_t xdr_tone_arg (XDR *, tone_arg*);
extern bool_t xdr_ant_res (XDR *, ant_res*);
extern bool_t xdr_ant_arg (XDR *, ant_arg*);
extern bool_t xdr_ch_res (XDR *, ch_res*);
extern bool_t xdr_ch_arg (XDR *, ch_arg*);
extern bool_t xdr_scan_s (XDR *, scan_s*);
extern bool_t xdr_scan_res (XDR *, scan_res*);
extern bool_t xdr_scan_arg (XDR *, scan_arg*);
extern bool_t xdr_freq_range_s (XDR *, freq_range_s*);
extern bool_t xdr_tuning_step_s (XDR *, tuning_step_s*);
extern bool_t xdr_filter_s (XDR *, filter_s*);
extern bool_t xdr_chan_s (XDR *, chan_s*);
extern bool_t xdr_rigstate_s (XDR *, rigstate_s*);
extern bool_t xdr_rigstate_res (XDR *, rigstate_res*);
#else /* K&R C */
extern bool_t xdr_model_x ();
extern bool_t xdr_vfo_x ();
extern bool_t xdr_freq_x ();
extern bool_t xdr_rmode_x ();
extern bool_t xdr_pbwidth_x ();
extern bool_t xdr_split_x ();
extern bool_t xdr_ptt_x ();
extern bool_t xdr_dcd_x ();
extern bool_t xdr_vfo_op_x ();
extern bool_t xdr_shortfreq_x ();
extern bool_t xdr_setting_x ();
extern bool_t xdr_ant_x ();
extern bool_t xdr_ann_x ();
extern bool_t xdr_rptr_shift_x ();
extern bool_t xdr_tone_x ();
extern bool_t xdr_scan_x ();
extern bool_t xdr_reset_x ();
extern bool_t xdr_powerstat_x ();
extern bool_t xdr_mode_s ();
extern bool_t xdr_value_s ();
extern bool_t xdr_freq_arg ();
extern bool_t xdr_freq_res ();
extern bool_t xdr_mode_arg ();
extern bool_t xdr_mode_res ();
extern bool_t xdr_vfo_res ();
extern bool_t xdr_powerstat_res ();
extern bool_t xdr_split_arg ();
extern bool_t xdr_split_res ();
extern bool_t xdr_ptt_arg ();
extern bool_t xdr_ptt_res ();
extern bool_t xdr_dcd_res ();
extern bool_t xdr_setting_arg ();
extern bool_t xdr_val_res ();
extern bool_t xdr_vfo_op_arg ();
extern bool_t xdr_rptrshift_res ();
extern bool_t xdr_rptrshift_arg ();
extern bool_t xdr_shortfreq_res ();
extern bool_t xdr_shortfreq_arg ();
extern bool_t xdr_tone_res ();
extern bool_t xdr_tone_arg ();
extern bool_t xdr_ant_res ();
extern bool_t xdr_ant_arg ();
extern bool_t xdr_ch_res ();
extern bool_t xdr_ch_arg ();
extern bool_t xdr_scan_s ();
extern bool_t xdr_scan_res ();
extern bool_t xdr_scan_arg ();
extern bool_t xdr_freq_range_s ();
extern bool_t xdr_tuning_step_s ();
extern bool_t xdr_filter_s ();
extern bool_t xdr_chan_s ();
extern bool_t xdr_rigstate_s ();
extern bool_t xdr_rigstate_res ();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_RPCRIG_H_RPCGEN */

Wyświetl plik

@ -1,796 +0,0 @@
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include <memory.h> /* for memset */
#include "rpcrig.h"
/*
* Hamlib Interface - RPC definitions
* Copyright (c) 2000-2002 by Stephane Fillod and Frank Singleton
*
* $Id: rpcrig_clnt.c,v 1.4 2002-08-23 20:01:09 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
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
/* Default timeout can be changed using clnt_control() */
static struct timeval TIMEOUT = { 25, 0 };
model_x *
getmodel_1(void *argp, CLIENT *clnt)
{
static model_x clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETMODEL,
(xdrproc_t) xdr_void, (caddr_t) argp,
(xdrproc_t) xdr_model_x, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
rigstate_res *
getrigstate_1(void *argp, CLIENT *clnt)
{
static rigstate_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETRIGSTATE,
(xdrproc_t) xdr_void, (caddr_t) argp,
(xdrproc_t) xdr_rigstate_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setfreq_1(freq_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETFREQ,
(xdrproc_t) xdr_freq_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
freq_res *
getfreq_1(vfo_x *argp, CLIENT *clnt)
{
static freq_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETFREQ,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_freq_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setmode_1(mode_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETMODE,
(xdrproc_t) xdr_mode_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
mode_res *
getmode_1(vfo_x *argp, CLIENT *clnt)
{
static mode_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETMODE,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_mode_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setvfo_1(vfo_x *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETVFO,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
vfo_res *
getvfo_1(vfo_x *argp, CLIENT *clnt)
{
static vfo_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETVFO,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_vfo_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setsplitfreq_1(freq_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETSPLITFREQ,
(xdrproc_t) xdr_freq_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
freq_res *
getsplitfreq_1(vfo_x *argp, CLIENT *clnt)
{
static freq_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETSPLITFREQ,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_freq_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setsplitmode_1(mode_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETSPLITMODE,
(xdrproc_t) xdr_mode_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
mode_res *
getsplitmode_1(vfo_x *argp, CLIENT *clnt)
{
static mode_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETSPLITMODE,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_mode_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setsplit_1(split_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETSPLIT,
(xdrproc_t) xdr_split_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
split_res *
getsplit_1(vfo_x *argp, CLIENT *clnt)
{
static split_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETSPLIT,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_split_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setptt_1(ptt_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETPTT,
(xdrproc_t) xdr_ptt_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
ptt_res *
getptt_1(vfo_x *argp, CLIENT *clnt)
{
static ptt_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETPTT,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_ptt_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
dcd_res *
getdcd_1(vfo_x *argp, CLIENT *clnt)
{
static dcd_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETDCD,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_dcd_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setfunc_1(setting_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETFUNC,
(xdrproc_t) xdr_setting_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
val_res *
getfunc_1(setting_arg *argp, CLIENT *clnt)
{
static val_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETFUNC,
(xdrproc_t) xdr_setting_arg, (caddr_t) argp,
(xdrproc_t) xdr_val_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setlevel_1(setting_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETLEVEL,
(xdrproc_t) xdr_setting_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
val_res *
getlevel_1(setting_arg *argp, CLIENT *clnt)
{
static val_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETLEVEL,
(xdrproc_t) xdr_setting_arg, (caddr_t) argp,
(xdrproc_t) xdr_val_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setparm_1(setting_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETPARM,
(xdrproc_t) xdr_setting_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
val_res *
getparm_1(setting_arg *argp, CLIENT *clnt)
{
static val_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETPARM,
(xdrproc_t) xdr_setting_arg, (caddr_t) argp,
(xdrproc_t) xdr_val_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
vfoop_1(vfo_op_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, VFOOP,
(xdrproc_t) xdr_vfo_op_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setrptrshift_1(rptrshift_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETRPTRSHIFT,
(xdrproc_t) xdr_rptrshift_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
rptrshift_res *
getrptrshift_1(vfo_x *argp, CLIENT *clnt)
{
static rptrshift_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETRPTRSHIFT,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_rptrshift_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setrptroffs_1(shortfreq_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETRPTROFFS,
(xdrproc_t) xdr_shortfreq_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
shortfreq_res *
getrptroffs_1(vfo_x *argp, CLIENT *clnt)
{
static shortfreq_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETRPTROFFS,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_shortfreq_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setctcsstone_1(tone_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETCTCSSTONE,
(xdrproc_t) xdr_tone_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
tone_res *
getctcsstone_1(vfo_x *argp, CLIENT *clnt)
{
static tone_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETCTCSSTONE,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_tone_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setctcsssql_1(tone_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETCTCSSSQL,
(xdrproc_t) xdr_tone_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
tone_res *
getctcsssql_1(vfo_x *argp, CLIENT *clnt)
{
static tone_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETCTCSSSQL,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_tone_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setdcscode_1(tone_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETDCSCODE,
(xdrproc_t) xdr_tone_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
tone_res *
getdcscode_1(vfo_x *argp, CLIENT *clnt)
{
static tone_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETDCSCODE,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_tone_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setdcssql_1(tone_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETDCSSQL,
(xdrproc_t) xdr_tone_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
tone_res *
getdcssql_1(vfo_x *argp, CLIENT *clnt)
{
static tone_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETDCSSQL,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_tone_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setrit_1(shortfreq_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETRIT,
(xdrproc_t) xdr_shortfreq_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
shortfreq_res *
getrit_1(vfo_x *argp, CLIENT *clnt)
{
static shortfreq_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETRIT,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_shortfreq_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setxit_1(shortfreq_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETXIT,
(xdrproc_t) xdr_shortfreq_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
shortfreq_res *
getxit_1(vfo_x *argp, CLIENT *clnt)
{
static shortfreq_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETXIT,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_shortfreq_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setts_1(shortfreq_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETTS,
(xdrproc_t) xdr_shortfreq_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
shortfreq_res *
getts_1(vfo_x *argp, CLIENT *clnt)
{
static shortfreq_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETTS,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_shortfreq_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
scan_1(scan_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SCAN,
(xdrproc_t) xdr_scan_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
reset_1(reset_x *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, RESET,
(xdrproc_t) xdr_reset_x, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setmem_1(ch_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETMEM,
(xdrproc_t) xdr_ch_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
ch_res *
getmem_1(vfo_x *argp, CLIENT *clnt)
{
static ch_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETMEM,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_ch_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setant_1(ant_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETANT,
(xdrproc_t) xdr_ant_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
ant_res *
getant_1(vfo_x *argp, CLIENT *clnt)
{
static ant_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETANT,
(xdrproc_t) xdr_vfo_x, (caddr_t) argp,
(xdrproc_t) xdr_ant_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setbank_1(ch_arg *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETBANK,
(xdrproc_t) xdr_ch_arg, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setpowerstat_1(powerstat_x *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETPOWERSTAT,
(xdrproc_t) xdr_powerstat_x, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
powerstat_res *
getpowerstat_1(void *argp, CLIENT *clnt)
{
static powerstat_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETPOWERSTAT,
(xdrproc_t) xdr_void, (caddr_t) argp,
(xdrproc_t) xdr_powerstat_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}

Wyświetl plik

@ -1,426 +0,0 @@
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include "rpcrig.h"
#include <stdio.h>
#include <stdlib.h>
#include <rpc/pmap_clnt.h>
#include <string.h>
#include <memory.h>
#include <sys/socket.h>
#include <netinet/in.h>
#ifndef SIG_PF
#define SIG_PF void(*)(int)
#endif
/*
* Hamlib Interface - RPC definitions
* Copyright (c) 2000-2002 by Stephane Fillod and Frank Singleton
*
* $Id: rpcrig_svc.c,v 1.4 2002-08-23 20:01:09 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
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
void
rigprog_1(struct svc_req *rqstp, register SVCXPRT *transp)
{
union {
freq_arg setfreq_1_arg;
vfo_x getfreq_1_arg;
mode_arg setmode_1_arg;
vfo_x getmode_1_arg;
vfo_x setvfo_1_arg;
vfo_x getvfo_1_arg;
freq_arg setsplitfreq_1_arg;
vfo_x getsplitfreq_1_arg;
mode_arg setsplitmode_1_arg;
vfo_x getsplitmode_1_arg;
split_arg setsplit_1_arg;
vfo_x getsplit_1_arg;
ptt_arg setptt_1_arg;
vfo_x getptt_1_arg;
vfo_x getdcd_1_arg;
setting_arg setfunc_1_arg;
setting_arg getfunc_1_arg;
setting_arg setlevel_1_arg;
setting_arg getlevel_1_arg;
setting_arg setparm_1_arg;
setting_arg getparm_1_arg;
vfo_op_arg vfoop_1_arg;
rptrshift_arg setrptrshift_1_arg;
vfo_x getrptrshift_1_arg;
shortfreq_arg setrptroffs_1_arg;
vfo_x getrptroffs_1_arg;
tone_arg setctcsstone_1_arg;
vfo_x getctcsstone_1_arg;
tone_arg setctcsssql_1_arg;
vfo_x getctcsssql_1_arg;
tone_arg setdcscode_1_arg;
vfo_x getdcscode_1_arg;
tone_arg setdcssql_1_arg;
vfo_x getdcssql_1_arg;
shortfreq_arg setrit_1_arg;
vfo_x getrit_1_arg;
shortfreq_arg setxit_1_arg;
vfo_x getxit_1_arg;
shortfreq_arg setts_1_arg;
vfo_x getts_1_arg;
scan_arg scan_1_arg;
reset_x reset_1_arg;
ch_arg setmem_1_arg;
vfo_x getmem_1_arg;
ant_arg setant_1_arg;
vfo_x getant_1_arg;
ch_arg setbank_1_arg;
powerstat_x setpowerstat_1_arg;
} argument;
char *result;
xdrproc_t _xdr_argument, _xdr_result;
char *(*local)(char *, struct svc_req *);
switch (rqstp->rq_proc) {
case NULLPROC:
(void) svc_sendreply (transp, (xdrproc_t) xdr_void, (char *)NULL);
return;
case GETMODEL:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_model_x;
local = (char *(*)(char *, struct svc_req *)) getmodel_1_svc;
break;
case GETRIGSTATE:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_rigstate_res;
local = (char *(*)(char *, struct svc_req *)) getrigstate_1_svc;
break;
case SETFREQ:
_xdr_argument = (xdrproc_t) xdr_freq_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setfreq_1_svc;
break;
case GETFREQ:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_freq_res;
local = (char *(*)(char *, struct svc_req *)) getfreq_1_svc;
break;
case SETMODE:
_xdr_argument = (xdrproc_t) xdr_mode_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setmode_1_svc;
break;
case GETMODE:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_mode_res;
local = (char *(*)(char *, struct svc_req *)) getmode_1_svc;
break;
case SETVFO:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setvfo_1_svc;
break;
case GETVFO:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_vfo_res;
local = (char *(*)(char *, struct svc_req *)) getvfo_1_svc;
break;
case SETSPLITFREQ:
_xdr_argument = (xdrproc_t) xdr_freq_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setsplitfreq_1_svc;
break;
case GETSPLITFREQ:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_freq_res;
local = (char *(*)(char *, struct svc_req *)) getsplitfreq_1_svc;
break;
case SETSPLITMODE:
_xdr_argument = (xdrproc_t) xdr_mode_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setsplitmode_1_svc;
break;
case GETSPLITMODE:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_mode_res;
local = (char *(*)(char *, struct svc_req *)) getsplitmode_1_svc;
break;
case SETSPLIT:
_xdr_argument = (xdrproc_t) xdr_split_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setsplit_1_svc;
break;
case GETSPLIT:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_split_res;
local = (char *(*)(char *, struct svc_req *)) getsplit_1_svc;
break;
case SETPTT:
_xdr_argument = (xdrproc_t) xdr_ptt_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setptt_1_svc;
break;
case GETPTT:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_ptt_res;
local = (char *(*)(char *, struct svc_req *)) getptt_1_svc;
break;
case GETDCD:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_dcd_res;
local = (char *(*)(char *, struct svc_req *)) getdcd_1_svc;
break;
case SETFUNC:
_xdr_argument = (xdrproc_t) xdr_setting_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setfunc_1_svc;
break;
case GETFUNC:
_xdr_argument = (xdrproc_t) xdr_setting_arg;
_xdr_result = (xdrproc_t) xdr_val_res;
local = (char *(*)(char *, struct svc_req *)) getfunc_1_svc;
break;
case SETLEVEL:
_xdr_argument = (xdrproc_t) xdr_setting_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setlevel_1_svc;
break;
case GETLEVEL:
_xdr_argument = (xdrproc_t) xdr_setting_arg;
_xdr_result = (xdrproc_t) xdr_val_res;
local = (char *(*)(char *, struct svc_req *)) getlevel_1_svc;
break;
case SETPARM:
_xdr_argument = (xdrproc_t) xdr_setting_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setparm_1_svc;
break;
case GETPARM:
_xdr_argument = (xdrproc_t) xdr_setting_arg;
_xdr_result = (xdrproc_t) xdr_val_res;
local = (char *(*)(char *, struct svc_req *)) getparm_1_svc;
break;
case VFOOP:
_xdr_argument = (xdrproc_t) xdr_vfo_op_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) vfoop_1_svc;
break;
case SETRPTRSHIFT:
_xdr_argument = (xdrproc_t) xdr_rptrshift_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setrptrshift_1_svc;
break;
case GETRPTRSHIFT:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_rptrshift_res;
local = (char *(*)(char *, struct svc_req *)) getrptrshift_1_svc;
break;
case SETRPTROFFS:
_xdr_argument = (xdrproc_t) xdr_shortfreq_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setrptroffs_1_svc;
break;
case GETRPTROFFS:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_shortfreq_res;
local = (char *(*)(char *, struct svc_req *)) getrptroffs_1_svc;
break;
case SETCTCSSTONE:
_xdr_argument = (xdrproc_t) xdr_tone_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setctcsstone_1_svc;
break;
case GETCTCSSTONE:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_tone_res;
local = (char *(*)(char *, struct svc_req *)) getctcsstone_1_svc;
break;
case SETCTCSSSQL:
_xdr_argument = (xdrproc_t) xdr_tone_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setctcsssql_1_svc;
break;
case GETCTCSSSQL:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_tone_res;
local = (char *(*)(char *, struct svc_req *)) getctcsssql_1_svc;
break;
case SETDCSCODE:
_xdr_argument = (xdrproc_t) xdr_tone_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setdcscode_1_svc;
break;
case GETDCSCODE:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_tone_res;
local = (char *(*)(char *, struct svc_req *)) getdcscode_1_svc;
break;
case SETDCSSQL:
_xdr_argument = (xdrproc_t) xdr_tone_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setdcssql_1_svc;
break;
case GETDCSSQL:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_tone_res;
local = (char *(*)(char *, struct svc_req *)) getdcssql_1_svc;
break;
case SETRIT:
_xdr_argument = (xdrproc_t) xdr_shortfreq_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setrit_1_svc;
break;
case GETRIT:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_shortfreq_res;
local = (char *(*)(char *, struct svc_req *)) getrit_1_svc;
break;
case SETXIT:
_xdr_argument = (xdrproc_t) xdr_shortfreq_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setxit_1_svc;
break;
case GETXIT:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_shortfreq_res;
local = (char *(*)(char *, struct svc_req *)) getxit_1_svc;
break;
case SETTS:
_xdr_argument = (xdrproc_t) xdr_shortfreq_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setts_1_svc;
break;
case GETTS:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_shortfreq_res;
local = (char *(*)(char *, struct svc_req *)) getts_1_svc;
break;
case SCAN:
_xdr_argument = (xdrproc_t) xdr_scan_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) scan_1_svc;
break;
case RESET:
_xdr_argument = (xdrproc_t) xdr_reset_x;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) reset_1_svc;
break;
case SETMEM:
_xdr_argument = (xdrproc_t) xdr_ch_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setmem_1_svc;
break;
case GETMEM:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_ch_res;
local = (char *(*)(char *, struct svc_req *)) getmem_1_svc;
break;
case SETANT:
_xdr_argument = (xdrproc_t) xdr_ant_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setant_1_svc;
break;
case GETANT:
_xdr_argument = (xdrproc_t) xdr_vfo_x;
_xdr_result = (xdrproc_t) xdr_ant_res;
local = (char *(*)(char *, struct svc_req *)) getant_1_svc;
break;
case SETBANK:
_xdr_argument = (xdrproc_t) xdr_ch_arg;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setbank_1_svc;
break;
case SETPOWERSTAT:
_xdr_argument = (xdrproc_t) xdr_powerstat_x;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setpowerstat_1_svc;
break;
case GETPOWERSTAT:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_powerstat_res;
local = (char *(*)(char *, struct svc_req *)) getpowerstat_1_svc;
break;
default:
svcerr_noproc (transp);
return;
}
memset ((char *)&argument, 0, sizeof (argument));
if (!svc_getargs (transp, _xdr_argument, (caddr_t) &argument)) {
svcerr_decode (transp);
return;
}
result = (*local)((char *)&argument, rqstp);
if (result != NULL && !svc_sendreply(transp, _xdr_result, result)) {
svcerr_systemerr (transp);
}
if (!svc_freeargs (transp, _xdr_argument, (caddr_t) &argument)) {
fprintf (stderr, "%s", "unable to free arguments");
exit (1);
}
return;
}

Wyświetl plik

@ -1,908 +0,0 @@
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include "rpcrig.h"
/*
* Hamlib Interface - RPC definitions
* Copyright (c) 2000-2002 by Stephane Fillod and Frank Singleton
*
* $Id: rpcrig_xdr.c,v 1.4 2002-08-23 20:01:09 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
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
bool_t
xdr_model_x (XDR *xdrs, model_x *objp)
{
register int32_t *buf;
if (!xdr_u_int (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_vfo_x (XDR *xdrs, vfo_x *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_freq_x (XDR *xdrs, freq_x *objp)
{
register int32_t *buf;
if (!xdr_int64_t (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_rmode_x (XDR *xdrs, rmode_x *objp)
{
register int32_t *buf;
if (!xdr_u_int (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_pbwidth_x (XDR *xdrs, pbwidth_x *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_split_x (XDR *xdrs, split_x *objp)
{
register int32_t *buf;
if (!xdr_u_long (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_ptt_x (XDR *xdrs, ptt_x *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_dcd_x (XDR *xdrs, dcd_x *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_vfo_op_x (XDR *xdrs, vfo_op_x *objp)
{
register int32_t *buf;
if (!xdr_long (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_shortfreq_x (XDR *xdrs, shortfreq_x *objp)
{
register int32_t *buf;
if (!xdr_long (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_setting_x (XDR *xdrs, setting_x *objp)
{
register int32_t *buf;
if (!xdr_uint64_t (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_ant_x (XDR *xdrs, ant_x *objp)
{
register int32_t *buf;
if (!xdr_long (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_ann_x (XDR *xdrs, ann_x *objp)
{
register int32_t *buf;
if (!xdr_long (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_rptr_shift_x (XDR *xdrs, rptr_shift_x *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_tone_x (XDR *xdrs, tone_x *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_scan_x (XDR *xdrs, scan_x *objp)
{
register int32_t *buf;
if (!xdr_long (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_reset_x (XDR *xdrs, reset_x *objp)
{
register int32_t *buf;
if (!xdr_long (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_powerstat_x (XDR *xdrs, powerstat_x *objp)
{
register int32_t *buf;
if (!xdr_long (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_mode_s (XDR *xdrs, mode_s *objp)
{
register int32_t *buf;
if (!xdr_rmode_x (xdrs, &objp->mode))
return FALSE;
if (!xdr_pbwidth_x (xdrs, &objp->width))
return FALSE;
return TRUE;
}
bool_t
xdr_value_s (XDR *xdrs, value_s *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->i))
return FALSE;
if (!xdr_float (xdrs, &objp->f))
return FALSE;
return TRUE;
}
bool_t
xdr_freq_arg (XDR *xdrs, freq_arg *objp)
{
register int32_t *buf;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_freq_x (xdrs, &objp->freq))
return FALSE;
return TRUE;
}
bool_t
xdr_freq_res (XDR *xdrs, freq_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_freq_x (xdrs, &objp->freq_res_u.freq))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_mode_arg (XDR *xdrs, mode_arg *objp)
{
register int32_t *buf;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_mode_s (xdrs, &objp->mw))
return FALSE;
return TRUE;
}
bool_t
xdr_mode_res (XDR *xdrs, mode_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_mode_s (xdrs, &objp->mode_res_u.mw))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_vfo_res (XDR *xdrs, vfo_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_vfo_x (xdrs, &objp->vfo_res_u.vfo))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_powerstat_res (XDR *xdrs, powerstat_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_powerstat_x (xdrs, &objp->powerstat_res_u.powerstat))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_split_arg (XDR *xdrs, split_arg *objp)
{
register int32_t *buf;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_split_x (xdrs, &objp->split))
return FALSE;
return TRUE;
}
bool_t
xdr_split_res (XDR *xdrs, split_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_split_x (xdrs, &objp->split_res_u.split))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_ptt_arg (XDR *xdrs, ptt_arg *objp)
{
register int32_t *buf;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_ptt_x (xdrs, &objp->ptt))
return FALSE;
return TRUE;
}
bool_t
xdr_ptt_res (XDR *xdrs, ptt_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_ptt_x (xdrs, &objp->ptt_res_u.ptt))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_dcd_res (XDR *xdrs, dcd_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_dcd_x (xdrs, &objp->dcd_res_u.dcd))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_setting_arg (XDR *xdrs, setting_arg *objp)
{
register int32_t *buf;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->setting))
return FALSE;
if (!xdr_value_s (xdrs, &objp->val))
return FALSE;
return TRUE;
}
bool_t
xdr_val_res (XDR *xdrs, val_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_value_s (xdrs, &objp->val_res_u.val))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_vfo_op_arg (XDR *xdrs, vfo_op_arg *objp)
{
register int32_t *buf;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_vfo_op_x (xdrs, &objp->vfo_op))
return FALSE;
return TRUE;
}
bool_t
xdr_rptrshift_res (XDR *xdrs, rptrshift_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_rptr_shift_x (xdrs, &objp->rptrshift_res_u.rptrshift))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_rptrshift_arg (XDR *xdrs, rptrshift_arg *objp)
{
register int32_t *buf;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_rptr_shift_x (xdrs, &objp->rptrshift))
return FALSE;
return TRUE;
}
bool_t
xdr_shortfreq_res (XDR *xdrs, shortfreq_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_shortfreq_x (xdrs, &objp->shortfreq_res_u.shortfreq))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_shortfreq_arg (XDR *xdrs, shortfreq_arg *objp)
{
register int32_t *buf;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_shortfreq_x (xdrs, &objp->shortfreq))
return FALSE;
return TRUE;
}
bool_t
xdr_tone_res (XDR *xdrs, tone_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_tone_x (xdrs, &objp->tone_res_u.tone))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_tone_arg (XDR *xdrs, tone_arg *objp)
{
register int32_t *buf;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_tone_x (xdrs, &objp->tone))
return FALSE;
return TRUE;
}
bool_t
xdr_ant_res (XDR *xdrs, ant_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_ant_x (xdrs, &objp->ant_res_u.ant))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_ant_arg (XDR *xdrs, ant_arg *objp)
{
register int32_t *buf;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_ant_x (xdrs, &objp->ant))
return FALSE;
return TRUE;
}
bool_t
xdr_ch_res (XDR *xdrs, ch_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_int (xdrs, &objp->ch_res_u.ch))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_ch_arg (XDR *xdrs, ch_arg *objp)
{
register int32_t *buf;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_int (xdrs, &objp->ch))
return FALSE;
return TRUE;
}
bool_t
xdr_scan_s (XDR *xdrs, scan_s *objp)
{
register int32_t *buf;
if (!xdr_scan_x (xdrs, &objp->scan))
return FALSE;
if (!xdr_int (xdrs, &objp->ch))
return FALSE;
return TRUE;
}
bool_t
xdr_scan_res (XDR *xdrs, scan_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_scan_s (xdrs, &objp->scan_res_u.scan))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_scan_arg (XDR *xdrs, scan_arg *objp)
{
register int32_t *buf;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_scan_x (xdrs, &objp->scan))
return FALSE;
if (!xdr_int (xdrs, &objp->ch))
return FALSE;
return TRUE;
}
bool_t
xdr_freq_range_s (XDR *xdrs, freq_range_s *objp)
{
register int32_t *buf;
if (!xdr_freq_x (xdrs, &objp->start))
return FALSE;
if (!xdr_freq_x (xdrs, &objp->end))
return FALSE;
if (!xdr_rmode_x (xdrs, &objp->modes))
return FALSE;
if (!xdr_int (xdrs, &objp->low_power))
return FALSE;
if (!xdr_int (xdrs, &objp->high_power))
return FALSE;
if (!xdr_vfo_x (xdrs, &objp->vfo))
return FALSE;
if (!xdr_ant_x (xdrs, &objp->ant))
return FALSE;
return TRUE;
}
bool_t
xdr_tuning_step_s (XDR *xdrs, tuning_step_s *objp)
{
register int32_t *buf;
if (!xdr_rmode_x (xdrs, &objp->modes))
return FALSE;
if (!xdr_shortfreq_x (xdrs, &objp->ts))
return FALSE;
return TRUE;
}
bool_t
xdr_filter_s (XDR *xdrs, filter_s *objp)
{
register int32_t *buf;
if (!xdr_rmode_x (xdrs, &objp->modes))
return FALSE;
if (!xdr_pbwidth_x (xdrs, &objp->width))
return FALSE;
return TRUE;
}
bool_t
xdr_chan_s (XDR *xdrs, chan_s *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->start))
return FALSE;
if (!xdr_int (xdrs, &objp->end))
return FALSE;
if (!xdr_u_int (xdrs, &objp->type))
return FALSE;
return TRUE;
}
bool_t
xdr_rigstate_s (XDR *xdrs, rigstate_s *objp)
{
register int32_t *buf;
int i;
if (xdrs->x_op == XDR_ENCODE) {
if (!xdr_int (xdrs, &objp->itu_region))
return FALSE;
if (!xdr_shortfreq_x (xdrs, &objp->max_rit))
return FALSE;
if (!xdr_shortfreq_x (xdrs, &objp->max_xit))
return FALSE;
if (!xdr_shortfreq_x (xdrs, &objp->max_ifshift))
return FALSE;
if (!xdr_ann_x (xdrs, &objp->announces))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_get_func))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_set_func))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_get_level))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_set_level))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_get_parm))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_set_parm))
return FALSE;
buf = XDR_INLINE (xdrs, ( MAXDBLSTSIZ + MAXDBLSTSIZ ) * BYTES_PER_XDR_UNIT);
if (buf == NULL) {
if (!xdr_vector (xdrs, (char *)objp->preamp, MAXDBLSTSIZ,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->attenuator, MAXDBLSTSIZ,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
} else {
{
register int *genp;
for (i = 0, genp = objp->preamp;
i < MAXDBLSTSIZ; ++i) {
IXDR_PUT_LONG(buf, *genp++);
}
}
{
register int *genp;
for (i = 0, genp = objp->attenuator;
i < MAXDBLSTSIZ; ++i) {
IXDR_PUT_LONG(buf, *genp++);
}
}
}
if (!xdr_vector (xdrs, (char *)objp->rx_range_list, FRQRANGESIZ,
sizeof (freq_range_s), (xdrproc_t) xdr_freq_range_s))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->tx_range_list, FRQRANGESIZ,
sizeof (freq_range_s), (xdrproc_t) xdr_freq_range_s))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->tuning_steps, TSLSTSIZ,
sizeof (tuning_step_s), (xdrproc_t) xdr_tuning_step_s))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->filters, FLTLSTSIZ,
sizeof (filter_s), (xdrproc_t) xdr_filter_s))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->chan_list, CHANLSTSIZ,
sizeof (chan_s), (xdrproc_t) xdr_chan_s))
return FALSE;
return TRUE;
} else if (xdrs->x_op == XDR_DECODE) {
if (!xdr_int (xdrs, &objp->itu_region))
return FALSE;
if (!xdr_shortfreq_x (xdrs, &objp->max_rit))
return FALSE;
if (!xdr_shortfreq_x (xdrs, &objp->max_xit))
return FALSE;
if (!xdr_shortfreq_x (xdrs, &objp->max_ifshift))
return FALSE;
if (!xdr_ann_x (xdrs, &objp->announces))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_get_func))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_set_func))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_get_level))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_set_level))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_get_parm))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_set_parm))
return FALSE;
buf = XDR_INLINE (xdrs, ( MAXDBLSTSIZ + MAXDBLSTSIZ ) * BYTES_PER_XDR_UNIT);
if (buf == NULL) {
if (!xdr_vector (xdrs, (char *)objp->preamp, MAXDBLSTSIZ,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->attenuator, MAXDBLSTSIZ,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
} else {
{
register int *genp;
for (i = 0, genp = objp->preamp;
i < MAXDBLSTSIZ; ++i) {
*genp++ = IXDR_GET_LONG(buf);
}
}
{
register int *genp;
for (i = 0, genp = objp->attenuator;
i < MAXDBLSTSIZ; ++i) {
*genp++ = IXDR_GET_LONG(buf);
}
}
}
if (!xdr_vector (xdrs, (char *)objp->rx_range_list, FRQRANGESIZ,
sizeof (freq_range_s), (xdrproc_t) xdr_freq_range_s))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->tx_range_list, FRQRANGESIZ,
sizeof (freq_range_s), (xdrproc_t) xdr_freq_range_s))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->tuning_steps, TSLSTSIZ,
sizeof (tuning_step_s), (xdrproc_t) xdr_tuning_step_s))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->filters, FLTLSTSIZ,
sizeof (filter_s), (xdrproc_t) xdr_filter_s))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->chan_list, CHANLSTSIZ,
sizeof (chan_s), (xdrproc_t) xdr_chan_s))
return FALSE;
return TRUE;
}
if (!xdr_int (xdrs, &objp->itu_region))
return FALSE;
if (!xdr_shortfreq_x (xdrs, &objp->max_rit))
return FALSE;
if (!xdr_shortfreq_x (xdrs, &objp->max_xit))
return FALSE;
if (!xdr_shortfreq_x (xdrs, &objp->max_ifshift))
return FALSE;
if (!xdr_ann_x (xdrs, &objp->announces))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_get_func))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_set_func))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_get_level))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_set_level))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_get_parm))
return FALSE;
if (!xdr_setting_x (xdrs, &objp->has_set_parm))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->preamp, MAXDBLSTSIZ,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->attenuator, MAXDBLSTSIZ,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->rx_range_list, FRQRANGESIZ,
sizeof (freq_range_s), (xdrproc_t) xdr_freq_range_s))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->tx_range_list, FRQRANGESIZ,
sizeof (freq_range_s), (xdrproc_t) xdr_freq_range_s))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->tuning_steps, TSLSTSIZ,
sizeof (tuning_step_s), (xdrproc_t) xdr_tuning_step_s))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->filters, FLTLSTSIZ,
sizeof (filter_s), (xdrproc_t) xdr_filter_s))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->chan_list, CHANLSTSIZ,
sizeof (chan_s), (xdrproc_t) xdr_chan_s))
return FALSE;
return TRUE;
}
bool_t
xdr_rigstate_res (XDR *xdrs, rigstate_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rigstatus))
return FALSE;
switch (objp->rigstatus) {
case 0:
if (!xdr_rigstate_s (xdrs, &objp->rigstate_res_u.state))
return FALSE;
break;
default:
break;
}
return TRUE;
}

Wyświetl plik

@ -1,181 +0,0 @@
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _RPCROT_H_RPCGEN
#define _RPCROT_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Hamlib Interface - RPC definitions
* Copyright (c) 2000,2001 by Stephane Fillod and Frank Singleton
* Contributed by Francois Retief <fgretief@sun.ac.za>
*
* $Id: rpcrot.h,v 1.1 2002-01-16 16:45:11 fgretief 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
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#include <rpc/xdr.h>
#include <hamlib/rotator.h>
typedef u_int model_x;
typedef float azimuth_x;
typedef float elevation_x;
typedef u_int rot_reset_x;
struct position_arg {
azimuth_x az;
elevation_x el;
};
typedef struct position_arg position_arg;
struct move_s {
int direction;
int speed;
};
typedef struct move_s move_s;
struct position_s {
azimuth_x az;
elevation_x el;
};
typedef struct position_s position_s;
struct position_res {
int rotstatus;
union {
position_s pos;
} position_res_u;
};
typedef struct position_res position_res;
struct rotstate_s {
azimuth_x az_min;
azimuth_x az_max;
elevation_x el_min;
elevation_x el_max;
};
typedef struct rotstate_s rotstate_s;
struct rotstate_res {
int rotstatus;
union {
rotstate_s state;
} rotstate_res_u;
};
typedef struct rotstate_res rotstate_res;
#define ROTPROG 0x20000999
#define ROTVERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define GETMODEL 1
extern model_x * getmodel_1(void *, CLIENT *);
extern model_x * getmodel_1_svc(void *, struct svc_req *);
#define GETROTSTATE 3
extern rotstate_res * getrotstate_1(void *, CLIENT *);
extern rotstate_res * getrotstate_1_svc(void *, struct svc_req *);
#define SETPOSITION 10
extern int * setposition_1(position_s *, CLIENT *);
extern int * setposition_1_svc(position_s *, struct svc_req *);
#define GETPOSITION 11
extern position_res * getposition_1(void *, CLIENT *);
extern position_res * getposition_1_svc(void *, struct svc_req *);
#define STOP 12
extern int * stop_1(void *, CLIENT *);
extern int * stop_1_svc(void *, struct svc_req *);
#define RESET 13
extern int * reset_1(rot_reset_x *, CLIENT *);
extern int * reset_1_svc(rot_reset_x *, struct svc_req *);
#define PARK 14
extern int * park_1(void *, CLIENT *);
extern int * park_1_svc(void *, struct svc_req *);
#define MOVE 15
extern int * move_1(move_s *, CLIENT *);
extern int * move_1_svc(move_s *, struct svc_req *);
extern int rotprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define GETMODEL 1
extern model_x * getmodel_1();
extern model_x * getmodel_1_svc();
#define GETROTSTATE 3
extern rotstate_res * getrotstate_1();
extern rotstate_res * getrotstate_1_svc();
#define SETPOSITION 10
extern int * setposition_1();
extern int * setposition_1_svc();
#define GETPOSITION 11
extern position_res * getposition_1();
extern position_res * getposition_1_svc();
#define STOP 12
extern int * stop_1();
extern int * stop_1_svc();
#define RESET 13
extern int * reset_1();
extern int * reset_1_svc();
#define PARK 14
extern int * park_1();
extern int * park_1_svc();
#define MOVE 15
extern int * move_1();
extern int * move_1_svc();
extern int rotprog_1_freeresult ();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_model_x (XDR *, model_x*);
extern bool_t xdr_azimuth_x (XDR *, azimuth_x*);
extern bool_t xdr_elevation_x (XDR *, elevation_x*);
extern bool_t xdr_rot_reset_x (XDR *, rot_reset_x*);
extern bool_t xdr_position_arg (XDR *, position_arg*);
extern bool_t xdr_move_s (XDR *, move_s*);
extern bool_t xdr_position_s (XDR *, position_s*);
extern bool_t xdr_position_res (XDR *, position_res*);
extern bool_t xdr_rotstate_s (XDR *, rotstate_s*);
extern bool_t xdr_rotstate_res (XDR *, rotstate_res*);
#else /* K&R C */
extern bool_t xdr_model_x ();
extern bool_t xdr_azimuth_x ();
extern bool_t xdr_elevation_x ();
extern bool_t xdr_rot_reset_x ();
extern bool_t xdr_position_arg ();
extern bool_t xdr_move_s ();
extern bool_t xdr_position_s ();
extern bool_t xdr_position_res ();
extern bool_t xdr_rotstate_s ();
extern bool_t xdr_rotstate_res ();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_RPCROT_H_RPCGEN */

Wyświetl plik

@ -1,152 +0,0 @@
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include <memory.h> /* for memset */
#include "rpcrot.h"
/*
* Hamlib Interface - RPC definitions
* Copyright (c) 2000,2001 by Stephane Fillod and Frank Singleton
* Contributed by Francois Retief <fgretief@sun.ac.za>
*
* $Id: rpcrot_clnt.c,v 1.2 2002-01-16 23:37:31 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
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
/* Default timeout can be changed using clnt_control() */
static struct timeval TIMEOUT = { 25, 0 };
model_x *
getmodel_1(void *argp, CLIENT *clnt)
{
static model_x clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETMODEL,
(xdrproc_t) xdr_void, (caddr_t) argp,
(xdrproc_t) xdr_model_x, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
rotstate_res *
getrotstate_1(void *argp, CLIENT *clnt)
{
static rotstate_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETROTSTATE,
(xdrproc_t) xdr_void, (caddr_t) argp,
(xdrproc_t) xdr_rotstate_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
setposition_1(position_s *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, SETPOSITION,
(xdrproc_t) xdr_position_s, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
position_res *
getposition_1(void *argp, CLIENT *clnt)
{
static position_res clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, GETPOSITION,
(xdrproc_t) xdr_void, (caddr_t) argp,
(xdrproc_t) xdr_position_res, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
stop_1(void *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, STOP,
(xdrproc_t) xdr_void, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
reset_1(rot_reset_x *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, RESET,
(xdrproc_t) xdr_rot_reset_x, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
park_1(void *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, PARK,
(xdrproc_t) xdr_void, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
int *
move_1(move_s *argp, CLIENT *clnt)
{
static int clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, MOVE,
(xdrproc_t) xdr_move_s, (caddr_t) argp,
(xdrproc_t) xdr_int, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}

Wyświetl plik

@ -1,124 +0,0 @@
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include "rpcrot.h"
#include <stdio.h>
#include <stdlib.h>
#include <rpc/pmap_clnt.h>
#include <string.h>
#include <memory.h>
#include <sys/socket.h>
#include <netinet/in.h>
#ifndef SIG_PF
#define SIG_PF void(*)(int)
#endif
/*
* Hamlib Interface - RPC definitions
* Copyright (c) 2000,2001 by Stephane Fillod and Frank Singleton
* Contributed by Francois Retief <fgretief@sun.ac.za>
*
* $Id: rpcrot_svc.c,v 1.2 2002-01-16 23:37:31 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
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
void
rotprog_1(struct svc_req *rqstp, register SVCXPRT *transp)
{
union {
position_s setposition_1_arg;
rot_reset_x reset_1_arg;
move_s move_1_arg;
} argument;
char *result;
xdrproc_t _xdr_argument, _xdr_result;
char *(*local)(char *, struct svc_req *);
switch (rqstp->rq_proc) {
case NULLPROC:
(void) svc_sendreply (transp, (xdrproc_t) xdr_void, (char *)NULL);
return;
case GETMODEL:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_model_x;
local = (char *(*)(char *, struct svc_req *)) getmodel_1_svc;
break;
case GETROTSTATE:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_rotstate_res;
local = (char *(*)(char *, struct svc_req *)) getrotstate_1_svc;
break;
case SETPOSITION:
_xdr_argument = (xdrproc_t) xdr_position_s;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) setposition_1_svc;
break;
case GETPOSITION:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_position_res;
local = (char *(*)(char *, struct svc_req *)) getposition_1_svc;
break;
case STOP:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) stop_1_svc;
break;
case RESET:
_xdr_argument = (xdrproc_t) xdr_rot_reset_x;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) reset_1_svc;
break;
case PARK:
_xdr_argument = (xdrproc_t) xdr_void;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) park_1_svc;
break;
case MOVE:
_xdr_argument = (xdrproc_t) xdr_move_s;
_xdr_result = (xdrproc_t) xdr_int;
local = (char *(*)(char *, struct svc_req *)) move_1_svc;
break;
default:
svcerr_noproc (transp);
return;
}
memset ((char *)&argument, 0, sizeof (argument));
if (!svc_getargs (transp, _xdr_argument, (caddr_t) &argument)) {
svcerr_decode (transp);
return;
}
result = (*local)((char *)&argument, rqstp);
if (result != NULL && !svc_sendreply(transp, _xdr_result, result)) {
svcerr_systemerr (transp);
}
if (!svc_freeargs (transp, _xdr_argument, (caddr_t) &argument)) {
fprintf (stderr, "%s", "unable to free arguments");
exit (1);
}
return;
}

Wyświetl plik

@ -1,156 +0,0 @@
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include "rpcrot.h"
/*
* Hamlib Interface - RPC definitions
* Copyright (c) 2000,2001 by Stephane Fillod and Frank Singleton
* Contributed by Francois Retief <fgretief@sun.ac.za>
*
* $Id: rpcrot_xdr.c,v 1.2 2002-01-16 23:37:31 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
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
bool_t
xdr_model_x (XDR *xdrs, model_x *objp)
{
register int32_t *buf;
if (!xdr_u_int (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_azimuth_x (XDR *xdrs, azimuth_x *objp)
{
register int32_t *buf;
if (!xdr_float (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_elevation_x (XDR *xdrs, elevation_x *objp)
{
register int32_t *buf;
if (!xdr_float (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_rot_reset_x (XDR *xdrs, rot_reset_x *objp)
{
register int32_t *buf;
if (!xdr_u_int (xdrs, objp))
return FALSE;
return TRUE;
}
bool_t
xdr_position_arg (XDR *xdrs, position_arg *objp)
{
register int32_t *buf;
if (!xdr_azimuth_x (xdrs, &objp->az))
return FALSE;
if (!xdr_elevation_x (xdrs, &objp->el))
return FALSE;
return TRUE;
}
bool_t
xdr_move_s (XDR *xdrs, move_s *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->direction))
return FALSE;
if (!xdr_int (xdrs, &objp->speed))
return FALSE;
return TRUE;
}
bool_t
xdr_position_s (XDR *xdrs, position_s *objp)
{
register int32_t *buf;
if (!xdr_azimuth_x (xdrs, &objp->az))
return FALSE;
if (!xdr_elevation_x (xdrs, &objp->el))
return FALSE;
return TRUE;
}
bool_t
xdr_position_res (XDR *xdrs, position_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rotstatus))
return FALSE;
switch (objp->rotstatus) {
case 0:
if (!xdr_position_s (xdrs, &objp->position_res_u.pos))
return FALSE;
break;
default:
break;
}
return TRUE;
}
bool_t
xdr_rotstate_s (XDR *xdrs, rotstate_s *objp)
{
register int32_t *buf;
if (!xdr_azimuth_x (xdrs, &objp->az_min))
return FALSE;
if (!xdr_azimuth_x (xdrs, &objp->az_max))
return FALSE;
if (!xdr_elevation_x (xdrs, &objp->el_min))
return FALSE;
if (!xdr_elevation_x (xdrs, &objp->el_max))
return FALSE;
return TRUE;
}
bool_t
xdr_rotstate_res (XDR *xdrs, rotstate_res *objp)
{
register int32_t *buf;
if (!xdr_int (xdrs, &objp->rotstatus))
return FALSE;
switch (objp->rotstatus) {
case 0:
if (!xdr_rotstate_s (xdrs, &objp->rotstate_res_u.state))
return FALSE;
break;
default:
break;
}
return TRUE;
}