make locator/qrb/longlat functions to work from bindings

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2351 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.8
Stéphane Fillod, F8CFE 2008-05-04 21:38:25 +00:00
rodzic 24e179a397
commit 42143f1976
1 zmienionych plików z 15 dodań i 6 usunięć

Wyświetl plik

@ -4,9 +4,9 @@
%{
/*
* Hamlib bindings - swig interface file
* Copyright (c) 2001-2003 by Stephane Fillod
* Copyright (c) 2001-2008 by Stephane Fillod
*
* $Id: hamlib.swg,v 1.5 2003-04-06 18:52:16 fillods Exp $
* $Id: hamlib.swg,v 1.6 2008-05-04 21:38:25 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
@ -40,7 +40,19 @@
*/
%include "ignore.swg"
%rename(Chan) channel;
%include typemaps.i
%include exception.i
%include cstring.i
%apply double *OUTPUT { double *distance, double *azimuth };
%apply int *OUTPUT { int *degrees, int *minutes, double *seconds, int *sw };
%apply int *OUTPUT { int *degrees, double *minutes, int *sw };
%apply double *OUTPUT { double *longitude, double *latitude };
%apply char *OUTPUT { char *locator_res };
/* longlat2locator */
%cstring_bounded_output(char *locator_res, 13)
%include <hamlib/rig_dll.h>
@ -58,9 +70,6 @@
typedef channel_t * const_channel_t_p;
%}
%include typemaps.i
%include exception.i
/*
* The Rig "class"
*/