Move includes in the files where they are used

Makes the other files less dependent on being included by
hamlib.swg and more self-contained.
Need to explicitly add %include for amplist.h, riglist.h,
rotlist.h to have the definitions picked up by SWIG even
if they are included by their main file.
Daniele Forsi IU5HKX 2025-05-25 11:55:59 +02:00
rodzic 10895d1abe
commit afc70e2539
4 zmienionych plików z 18 dodań i 12 usunięć

Wyświetl plik

@ -19,6 +19,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
%{
#include <hamlib/amplifier.h>
%}
%include <hamlib/amplist.h>
%include <hamlib/amplifier.h>
%inline %{

Wyświetl plik

@ -29,9 +29,6 @@
#include <hamlib/config.h>
#include <hamlib/rig.h>
#include <hamlib/rotator.h>
#include <hamlib/amplifier.h>
//mdblack98 -- Commented this out -- is anybody using the functions in misc.h?
//If so, then those functions should be moved to rig.h
//#include "misc.h"
@ -222,15 +219,6 @@
%include <hamlib/rig_dll.h>
%include <hamlib/riglist.h>
%include <hamlib/rig.h>
%include <hamlib/rotlist.h>
%include <hamlib/rotator.h>
%include <hamlib/amplist.h>
%include <hamlib/amplifier.h>
%inline {
typedef const char * const_char_string;
}

Wyświetl plik

@ -18,6 +18,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
%{
#include <hamlib/rig.h>
%}
%include <hamlib/riglist.h>
%include <hamlib/rig.h>
%inline %{

Wyświetl plik

@ -18,6 +18,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
%{
#include <hamlib/rotator.h>
%}
%include <hamlib/rotator.h>
%include <hamlib/rotlist.h>
%inline %{