mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-15 16:42:12 -05:00
d5bc774641
Also use correct C binding and have compilers determine sizes and offsets. The wsjtx.exe program now owns the decoder shared data that is shared with symspec. It is now in struct dec_data, still a global variable for now but hopefully a MainWindow member variable soon. The struct dec_data (in both C/C++ and Fortran) has a sub structure with the decoder parameters which enables copying and manipulating a lot cleaner. New of changed types of shared data must still be modified in commons.h and a new file lib/jt9com.f90, they must stay in sync as a pointer to the structure is passed between C and Fortran. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6290 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
20 lines
424 B
C++
20 lines
424 B
C++
// -*- Mode: C++ -*-
|
|
#ifndef GETFILE_H
|
|
#define GETFILE_H
|
|
#include <QString>
|
|
#include <QFile>
|
|
#include <QDebug>
|
|
|
|
void getfile(QString fname, int ntrperiod);
|
|
float gran();
|
|
//int ptt(int* nport, int* ntx, int* iptt);
|
|
int ptt(int nport, int ntx, int* iptt, int* nopen);
|
|
|
|
extern "C" {
|
|
int ptt_(int nport, int ntx, int* iptt, int* nopen);
|
|
void wav12_(short d2[], short d1[], int* nbytes, short* nbitsam2);
|
|
}
|
|
|
|
|
|
#endif // GETFILE_H
|