Update LGPL header in bindings source files.

TNX to Lucian Laga, YO6PLB, for the notification.
Hamlib-1.2.15
Nate Bargmann 2011-08-20 18:22:51 -05:00
rodzic 9eb74acd14
commit a7f758d582
3 zmienionych plików z 31 dodań i 34 usunięć

Wyświetl plik

@ -6,21 +6,20 @@
* Hamlib bindings - swig interface file * Hamlib bindings - swig interface file
* Copyright (c) 2001-2008 by Stephane Fillod * Copyright (c) 2001-2008 by Stephane Fillod
* *
* $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 * This library is free software; you can redistribute it and/or
* it under the terms of the GNU Library General Public License as * modify it under the terms of the GNU Lesser General Public
* published by the Free Software Foundation; either version 2 of * License as published by the Free Software Foundation; either
* the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
@ -51,7 +50,7 @@
%apply char *OUTPUT { char *locator_res }; %apply char *OUTPUT { char *locator_res };
/* longlat2locator */ /* longlat2locator */
%cstring_bounded_output(char *locator_res, 13) %cstring_bounded_output(char *locator_res, 13)
%include <hamlib/rig_dll.h> %include <hamlib/rig_dll.h>

Wyświetl plik

@ -2,21 +2,20 @@
* Hamlib bindings - Rig interface * Hamlib bindings - Rig interface
* Copyright (c) 2001-2008 by Stephane Fillod * Copyright (c) 2001-2008 by Stephane Fillod
* *
* $Id: rig.swg,v 1.9 2008-05-04 21:42:04 fillods Exp $
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or
* it under the terms of the GNU Library General Public License as * modify it under the terms of the GNU Lesser General Public
* published by the Free Software Foundation; either version 2 of * License as published by the Free Software Foundation; either
* the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
@ -460,7 +459,7 @@ typedef struct Rig {
return s; return s;
} }
int get_func(setting_t func, vfo_t vfo = RIG_VFO_CURR) { int get_func(setting_t func, vfo_t vfo = RIG_VFO_CURR) {
int status; int status;
self->error_status = rig_get_func(self->rig, vfo, func, &status); self->error_status = rig_get_func(self->rig, vfo, func, &status);
return status; return status;
@ -471,7 +470,7 @@ typedef struct Rig {
#ifndef SWIGJAVA #ifndef SWIGJAVA
/* TODO */ /* TODO */
void get_level(setting_t level, vfo_t vfo = RIG_VFO_CURR) void get_level(setting_t level, vfo_t vfo = RIG_VFO_CURR)
{ value_t val; self->error_status = rig_get_level(self->rig, vfo, level, &val); { value_t val; self->error_status = rig_get_level(self->rig, vfo, level, &val);
//if (RIG_LEVEL_IS_FLOAT(level)) //if (RIG_LEVEL_IS_FLOAT(level))
/* TODO: dynamic casting */ /* TODO: dynamic casting */
} }
@ -482,7 +481,7 @@ typedef struct Rig {
%{ %{
/* /*
* these ones returns 2 values, here is a perl example: * these ones returns 2 values, here is a perl example:
* ($mode, $width) = $rig->get_mode(); * ($mode, $width) = $rig->get_mode();
*/ */

Wyświetl plik

@ -2,21 +2,20 @@
* Hamlib bindings - Rotator interface * Hamlib bindings - Rotator interface
* Copyright (c) 2001,2002 by Stephane Fillod * Copyright (c) 2001,2002 by Stephane Fillod
* *
* $Id: rotator.swg,v 1.3 2002-10-07 21:44:51 fillods Exp $
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or
* it under the terms of the GNU Library General Public License as * modify it under the terms of the GNU Lesser General Public
* published by the Free Software Foundation; either version 2 of * License as published by the Free Software Foundation; either
* the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */